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
a6e25374baefe42a37c612e4cbe2ecea29c0b05d
374
py
Python
data_view.py
RitvikDayal/D-VAT
86a093d07b0f930aeb090638b2192a60776f47c0
[ "MIT" ]
2
2020-06-20T10:15:50.000Z
2021-02-12T17:16:24.000Z
data_view.py
RitvikDayal/D-VAT
86a093d07b0f930aeb090638b2192a60776f47c0
[ "MIT" ]
null
null
null
data_view.py
RitvikDayal/D-VAT
86a093d07b0f930aeb090638b2192a60776f47c0
[ "MIT" ]
null
null
null
from tkinter import * from pandastable import Table, TableModel bg_color = '#394b5c' '''-------------------------------Window Configuration----------------------------------------''' root = Tk() root.title('Data Visualizer and Analyzer') root.iconbitmap(r'icon.ico') root.config(bg=bg_color) root.resizable(width=False...
20.777778
97
0.606952
035f391fceb2eff64422f1ecca644c6055289b97
3,508
py
Python
src/manual_solve.py
multinucliated/ARC
7c545605eb25ba3d76c2ba12b23b26d548a31373
[ "Apache-2.0" ]
null
null
null
src/manual_solve.py
multinucliated/ARC
7c545605eb25ba3d76c2ba12b23b26d548a31373
[ "Apache-2.0" ]
null
null
null
src/manual_solve.py
multinucliated/ARC
7c545605eb25ba3d76c2ba12b23b26d548a31373
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import json import os import re import numpy as np ### YOUR CODE HERE: write at least three functions which solve ### specific tasks by transforming the input x and returning the ### result. Name them according to the task ID as in the three ### examples below. Delete the three examples. The tasks...
29.233333
92
0.623432
7bff0bae150487a80d4ae001f5102c31b01d36b3
197
py
Python
ex11.py
PhyuAye/Python_exercises-1
3a4049d7af5d0bb3a13b89f3040c9e26a888fea6
[ "MIT" ]
null
null
null
ex11.py
PhyuAye/Python_exercises-1
3a4049d7af5d0bb3a13b89f3040c9e26a888fea6
[ "MIT" ]
null
null
null
ex11.py
PhyuAye/Python_exercises-1
3a4049d7af5d0bb3a13b89f3040c9e26a888fea6
[ "MIT" ]
1
2018-06-26T08:29:44.000Z
2018-06-26T08:29:44.000Z
print("How old are you?"), age=input() print("How tall are you"), height=input() print("How much do you weigh"), weight=input() print("So, you're %r old,%r tall and %r heavy."%(age,height,weight))
24.625
68
0.670051
4f239a0f3ec6d986c16e4f2a0d7305f8c061508e
1,441
py
Python
src/decoders/decoder.py
gmum/wica
8b87531ef89a7c0dadbdcb6cf413bdf7fbb7aa4e
[ "MIT" ]
7
2020-04-29T09:21:07.000Z
2021-09-02T15:17:36.000Z
src/decoders/decoder.py
gmum/wica
8b87531ef89a7c0dadbdcb6cf413bdf7fbb7aa4e
[ "MIT" ]
1
2021-09-08T01:44:10.000Z
2021-09-08T01:44:10.000Z
src/decoders/decoder.py
gmum/wica
8b87531ef89a7c0dadbdcb6cf413bdf7fbb7aa4e
[ "MIT" ]
4
2021-04-04T15:39:25.000Z
2022-01-06T12:07:06.000Z
import torch.nn as nn from torch.nn.modules.container import ModuleList class Decoder(nn.Module): def __init__(self, latent_dim, output_dim): super(Decoder, self).__init__() self.latent_dim = latent_dim self.output_dim = output_dim def forward(self, x): return NotImplementedEr...
32.75
115
0.657183
7f790e7d3c6940c1ed053c555df174fb7c5a68ed
1,614
py
Python
polyutils/polyconversion.py
HypenauticPulse/HypeCAS
ffe0cf9825c870304875e19b0309ab3cad7f39d2
[ "MIT" ]
1
2020-06-08T03:05:35.000Z
2020-06-08T03:05:35.000Z
polyutils/polyconversion.py
HypenauticPulse/HypeCAS
ffe0cf9825c870304875e19b0309ab3cad7f39d2
[ "MIT" ]
null
null
null
polyutils/polyconversion.py
HypenauticPulse/HypeCAS
ffe0cf9825c870304875e19b0309ab3cad7f39d2
[ "MIT" ]
null
null
null
def poly_conversion_string(polyarray, var): polystring = '' powers = [] for _ in polyarray[0][1]: powers.append(0.0) count = 0 for i in polyarray: if i == [0.0, powers]: count += 1 if count == len(polyarray): polystring = '0.0' else: for i in pol...
34.340426
86
0.385378
00bfc8156c688e9f40cfec7b2b0033509c64bf6e
361
py
Python
tests/conftest.py
ctxis/wordinserter
a367a310c0ab466eeb1f6d3357543a33cdbf4ecc
[ "MIT" ]
99
2015-06-03T13:24:18.000Z
2021-11-15T09:30:41.000Z
tests/conftest.py
ctxis/wordinserter
a367a310c0ab466eeb1f6d3357543a33cdbf4ecc
[ "MIT" ]
13
2015-05-26T08:40:00.000Z
2018-11-01T16:54:42.000Z
tests/conftest.py
ctxis/wordinserter
a367a310c0ab466eeb1f6d3357543a33cdbf4ecc
[ "MIT" ]
25
2015-06-13T08:21:15.000Z
2021-11-11T21:35:18.000Z
import pathlib import pytest from wordinserter import parsers docs = pathlib.Path(__file__).parent / 'docs' @pytest.fixture def docs_dir(): return docs @pytest.fixture def html_parser(): return parsers['html']() @pytest.fixture(params=sorted(docs.glob('*.html')), ids=lambda p: str(p.name)) def html_doc...
15.695652
78
0.722992
1a411266911a23385907509af9c4415aefca681b
164
py
Python
example/config.py
featurehub-io/featurehub-python-sdk
d453c91510629e124b2d0c278f438cc35f0671b7
[ "MIT" ]
null
null
null
example/config.py
featurehub-io/featurehub-python-sdk
d453c91510629e124b2d0c278f438cc35f0671b7
[ "MIT" ]
2
2021-09-04T09:00:50.000Z
2021-11-10T09:14:05.000Z
example/config.py
featurehub-io/featurehub-python-sdk
d453c91510629e124b2d0c278f438cc35f0671b7
[ "MIT" ]
1
2021-09-28T09:58:17.000Z
2021-09-28T09:58:17.000Z
edge_url = 'https://zjbisc.demo.featurehub.io' client_eval_key = 'default/806d0fe8-2842-4d17-9e1f-1c33eedc5f31/wFk8qfmJEkLnkkJ8A8ZPTbgZPHPTJJ*heGuAGL6U8EKOUXbbRCL'
54.666667
116
0.847561
37f457ee4aab4fb71c0d9b92c1837da2d8bd7f1c
898
py
Python
aim/cli/cli.py
VkoHov/aim
92567b48437a8c71b4bde3b034fc0e5c61479cf9
[ "Apache-2.0" ]
1
2021-07-19T19:21:30.000Z
2021-07-19T19:21:30.000Z
aim/cli/cli.py
VkoHov/aim
92567b48437a8c71b4bde3b034fc0e5c61479cf9
[ "Apache-2.0" ]
null
null
null
aim/cli/cli.py
VkoHov/aim
92567b48437a8c71b4bde3b034fc0e5c61479cf9
[ "Apache-2.0" ]
null
null
null
import click from click import core from aim.engine.repo import AimRepo from aim.cli.configs import * from aim.cli.init import commands as init_commands from aim.cli.experiment import commands as experiment_commands from aim.cli.version import commands as version_commands from aim.cli.up import commands as up_command...
28.967742
67
0.778396
d2ee1f19db9c6ce5e29c1bb970fd6a61e6a7cc2a
10,022
py
Python
lib/python/flame/examples/mednist/trainer/role.py
justaugustus/flame
b9e87d4ce6f27e1cd1b8d80470c63e66b14e651c
[ "Apache-2.0" ]
null
null
null
lib/python/flame/examples/mednist/trainer/role.py
justaugustus/flame
b9e87d4ce6f27e1cd1b8d80470c63e66b14e651c
[ "Apache-2.0" ]
null
null
null
lib/python/flame/examples/mednist/trainer/role.py
justaugustus/flame
b9e87d4ce6f27e1cd1b8d80470c63e66b14e651c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Cisco Systems, Inc. and its affiliates # 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...
34.798611
97
0.567551
bfc28b3509c7f9587f41d6ae5f4d8b42341c2258
5,841
py
Python
model_image.py
HumaticsLAB/AttentionBasedMultiModalRNN
0c060a97cdddf1348938a5f2d456e83e5f8bf887
[ "MIT" ]
5
2021-09-21T12:32:06.000Z
2022-03-19T05:15:09.000Z
model_image.py
HumaticsLAB/AttentionBasedMultiModalRNN
0c060a97cdddf1348938a5f2d456e83e5f8bf887
[ "MIT" ]
1
2021-11-15T09:14:58.000Z
2021-11-15T09:15:11.000Z
model_image.py
HumaticsLAB/AttentionBasedMultiModalRNN
0c060a97cdddf1348938a5f2d456e83e5f8bf887
[ "MIT" ]
2
2021-09-30T19:22:20.000Z
2021-10-16T08:33:48.000Z
from utils import resize2d import torch import numpy as np from torch.cuda import init import torch.nn as nn import torchvision.models as models import torch.nn.functional as F from Inception import Inception import random import config from PIL import Image device = torch.device(config.DEVICE) class Encoder(nn.Modul...
35.186747
132
0.659305
a9e5563c6cbf2531edbbc2e493b483d4500945ea
17,788
py
Python
checkerista/.env/Lib/site-packages/django/contrib/admin/filters.py
LybaFatimaNasir/CS311S20PID02
bc29a8c4c9ee508c74d231c015a57b1ca4dfcb39
[ "MIT" ]
15
2020-06-04T05:22:47.000Z
2021-07-06T01:37:57.000Z
checkerista/.env/Lib/site-packages/django/contrib/admin/filters.py
LybaFatimaNasir/CS311S20PID02
bc29a8c4c9ee508c74d231c015a57b1ca4dfcb39
[ "MIT" ]
51
2019-10-08T01:53:02.000Z
2021-06-04T22:02:21.000Z
checkerista/.env/Lib/site-packages/django/contrib/admin/filters.py
LybaFatimaNasir/CS311S20PID02
bc29a8c4c9ee508c74d231c015a57b1ca4dfcb39
[ "MIT" ]
11
2019-09-14T20:57:30.000Z
2022-01-19T17:59:26.000Z
""" This encapsulates the logic for displaying filters in the Django admin. Filters are specified in models with the "list_filter" option. Each filter subclass knows how to display a filter for a field that passes a certain test -- e.g. being a DateField or ForeignKey. """ import datetime from django.contrib.admin.op...
41.367442
117
0.638071
a3ac3237fda42adf8838d712b54e5563afb4d694
2,587
py
Python
Codes for baseline/Models/SAR.py
zhengcj1/ChID-Dataset
f7d9b7b75cccd50455987a623c898b490e8450f6
[ "Apache-2.0" ]
72
2019-06-08T13:21:36.000Z
2019-09-24T04:11:29.000Z
Codes for baseline/Models/SAR.py
a626709452/ChID-Dataset
f7d9b7b75cccd50455987a623c898b490e8450f6
[ "Apache-2.0" ]
7
2019-06-12T07:12:30.000Z
2019-10-01T04:11:40.000Z
Codes for baseline/Models/SAR.py
a626709452/ChID-Dataset
f7d9b7b75cccd50455987a623c898b490e8450f6
[ "Apache-2.0" ]
31
2019-06-27T03:38:18.000Z
2019-09-24T04:11:16.000Z
import tensorflow as tf from Models.BasicModel import BasicModel class Model(BasicModel): def __init__(self, learning_rate, init_word_embed, init_idiom_embed, size_embed=200, num_units=100, # make sure that num_units = size_embed ...
58.795455
130
0.636645
2117317078fe21c3ba283c50cfd30198d43d9301
385
py
Python
test/meta_learning/generate_ranknet_keras_model.py
zhengjian2322/soln-ml
ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2
[ "MIT" ]
null
null
null
test/meta_learning/generate_ranknet_keras_model.py
zhengjian2322/soln-ml
ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2
[ "MIT" ]
null
null
null
test/meta_learning/generate_ranknet_keras_model.py
zhengjian2322/soln-ml
ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.getcwd()) from solnml.components.meta_learning.algorithm_recomendation.ranknet_advisor import RankNetAdvisor from solnml.components.utils.constants import MULTICLASS_CLS if __name__ == "__main__": # refit ranknet on all datasets ranker = RankNetAdvisor(task_type=MULTICLA...
38.5
98
0.807792
f3e5ea2909192800c0c54de06e447943cda21515
17,724
py
Python
matminer/datasets/convenience_loaders.py
rpw199912j/matminer
ac954660f8459ae6070c6b19c691b965de7596c9
[ "BSD-3-Clause-LBNL" ]
1
2021-03-28T00:26:01.000Z
2021-03-28T00:26:01.000Z
matminer/datasets/convenience_loaders.py
rpw199912j/matminer
ac954660f8459ae6070c6b19c691b965de7596c9
[ "BSD-3-Clause-LBNL" ]
null
null
null
matminer/datasets/convenience_loaders.py
rpw199912j/matminer
ac954660f8459ae6070c6b19c691b965de7596c9
[ "BSD-3-Clause-LBNL" ]
null
null
null
import pandas as pd from matminer.datasets import load_dataset # Convenience functions provided to make accessing datasets simpler. __author__ = "Daniel Dopp <dbdopp@lbl.gov>" \ "Abhinav Ashar <abhinav_ashar@berkeley.edu>" def load_elastic_tensor(version="2015", include_metadata=False, data_home=None,...
31.259259
81
0.657809
9bce66a2a1f4089385306fdfed6fa7efd33702ca
779
py
Python
descriptor/migrations/0005_auto_20200702_1438.py
alduxx/papirodocker
a1fab0d15ced07c4b03732651cffaa5158c164a4
[ "Unlicense" ]
null
null
null
descriptor/migrations/0005_auto_20200702_1438.py
alduxx/papirodocker
a1fab0d15ced07c4b03732651cffaa5158c164a4
[ "Unlicense" ]
null
null
null
descriptor/migrations/0005_auto_20200702_1438.py
alduxx/papirodocker
a1fab0d15ced07c4b03732651cffaa5158c164a4
[ "Unlicense" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-02 14:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('descriptor', '0004_service_status'), ] operations = [ migrations.AddField( model_name='service', name='iib_service_n...
26.862069
74
0.594352
6cae14c504b2e85824404230983204b36dcc3e2e
2,949
py
Python
flock_numba.py
fywu85/cs267-project
f552888bbd081ec19dff86c64f6389399b76ce3e
[ "MIT" ]
null
null
null
flock_numba.py
fywu85/cs267-project
f552888bbd081ec19dff86c64f6389399b76ce3e
[ "MIT" ]
null
null
null
flock_numba.py
fywu85/cs267-project
f552888bbd081ec19dff86c64f6389399b76ce3e
[ "MIT" ]
null
null
null
import numpy as np np.random.seed(204) from numba import jit import time import os import psutil import argparse # Instantiate the parser parser = argparse.ArgumentParser(description='Number of processors.') parser.add_argument('nproc', nargs='?', type=int, default=4, help='Number of par...
32.766667
79
0.48864
e8f1c617510a91f0bdae731d8e744ac24e5af3c3
2,838
py
Python
day_ok/schedule/views/sources.py
bostud/day_ok
2bcee68252b698f5818808d1766fb3ec3f07fce8
[ "MIT" ]
null
null
null
day_ok/schedule/views/sources.py
bostud/day_ok
2bcee68252b698f5818808d1766fb3ec3f07fce8
[ "MIT" ]
16
2021-02-27T08:36:19.000Z
2021-04-07T11:43:31.000Z
day_ok/schedule/views/sources.py
bostud/day_ok
2bcee68252b698f5818808d1766fb3ec3f07fce8
[ "MIT" ]
null
null
null
from typing import Dict, Any from ..middleware import authenticated from django.http import HttpRequest, HttpResponseRedirect from django.shortcuts import render from ..bl.sources import ( all_sources, add_source, delete_source, get_source, change_source_name, delete_student_source, connect_student...
29.257732
75
0.658915
5ed2996b72cc0ed55318d2f5140ffaaf2a4fd81d
755
py
Python
kadenze_dl/test_utils.py
Gaarv/kadenze-dl
d92c70dc710626499714aa3f0bdfb72ef482f954
[ "MIT" ]
60
2016-11-15T18:29:25.000Z
2022-02-07T08:07:29.000Z
kadenze_dl/test_utils.py
rrosajp/kadenze-dl
6c4a64f6fd48d37f4574be51c9398b7425dc0393
[ "MIT" ]
23
2016-10-31T13:37:20.000Z
2022-03-07T15:13:11.000Z
kadenze_dl/test_utils.py
rrosajp/kadenze-dl
6c4a64f6fd48d37f4574be51c9398b7425dc0393
[ "MIT" ]
17
2017-02-02T19:13:36.000Z
2022-01-02T11:49:02.000Z
import kadenze_dl.utils as utils def test_extract_filename(): video_url = ( "https://cdnc-prod-assets-private.kadenze.com/uploads/lecture_medium/4894/file/Reb_L5_720.mp4?Expires" "=1482662443\u0026Signature=QklHU9hV7z2gwVp9yYfN21IITWxPZnPa7c3QOUByerXthMHnGy7-PfWvw~jrk5bE6sNtj2uee" "gCiGNsu...
50.333333
110
0.796026
0db6db3d3e686c7f4a25d4b3330bbe61b7c4fb0f
55,401
py
Python
rapid7vmconsole/models/role.py
pdeardorff-r7/vm-console-client-python
4bee83aa4db2b328ba6894cebac55743f922ce5a
[ "MIT" ]
null
null
null
rapid7vmconsole/models/role.py
pdeardorff-r7/vm-console-client-python
4bee83aa4db2b328ba6894cebac55743f922ce5a
[ "MIT" ]
null
null
null
rapid7vmconsole/models/role.py
pdeardorff-r7/vm-console-client-python
4bee83aa4db2b328ba6894cebac55743f922ce5a
[ "MIT" ]
null
null
null
# coding: utf-8 """ InsightVM API # Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ...
231.803347
48,045
0.498168
5d09c3d79b7f8be0cef5e9a31c5dbc55efc2fa31
2,831
py
Python
predictor.py
crazycloud/deep-learning-vision
81618c91edbdcfe8c419864043d034220ec4e2bb
[ "Apache-2.0" ]
12
2020-04-11T07:01:27.000Z
2022-03-20T11:36:40.000Z
predictor.py
crazycloud/deep-learning-vision
81618c91edbdcfe8c419864043d034220ec4e2bb
[ "Apache-2.0" ]
3
2020-11-10T15:28:12.000Z
2022-01-23T23:40:12.000Z
predictor.py
crazycloud/deep-learning-vision
81618c91edbdcfe8c419864043d034220ec4e2bb
[ "Apache-2.0" ]
3
2020-11-10T15:25:23.000Z
2022-01-28T16:11:16.000Z
from detectron2.config import get_cfg import detectron2.data.transforms as T from detectron2.checkpoint import DetectionCheckpointer from detectron2.modeling import build_model from detectron2.data import MetadataCatalog import torch import os from detectron2.utils.visualizer import ColorMode, Visualizer c...
37.25
115
0.712116
9a497d8ad5126e37d28f5cc9049cad9a3ea7724f
613
py
Python
3/part1.py
graemeglass/adventofcode
7148fea770d6b4936ba746c1a269387a76aaa22e
[ "MIT" ]
null
null
null
3/part1.py
graemeglass/adventofcode
7148fea770d6b4936ba746c1a269387a76aaa22e
[ "MIT" ]
null
null
null
3/part1.py
graemeglass/adventofcode
7148fea770d6b4936ba746c1a269387a76aaa22e
[ "MIT" ]
null
null
null
#http://adventofcode.com/day/3 unique_location_count = 1 current_address = [0, 0] seen_before = [] with open('input.txt') as fp: data = fp.read() for symbol in data: if symbol == '^': current_address[0] += 1 elif symbol == 'v': current_address[0] -= 1 elif symbo...
25.541667
54
0.5677
39702653473fb78de51568b713e789ce9081714f
176
py
Python
example_project/example_proj/urls.py
m-thielen/django-webdav-storage
c40d2ba53f171e23684769c0b41f0d12da4c9a49
[ "BSD-3-Clause" ]
null
null
null
example_project/example_proj/urls.py
m-thielen/django-webdav-storage
c40d2ba53f171e23684769c0b41f0d12da4c9a49
[ "BSD-3-Clause" ]
null
null
null
example_project/example_proj/urls.py
m-thielen/django-webdav-storage
c40d2ba53f171e23684769c0b41f0d12da4c9a49
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.urls import path from example_app.views import index urlpatterns = [ path('admin/', admin.site.urls), path('', index), ]
17.6
36
0.710227
2f6b7830d6cdeb37ef200cc5bed3cfa6f1dde8e3
14,610
py
Python
python_modules/dagster/dagster/core/storage/intermediate_storage.py
haydarai/dagster
9b9c78e332f976f196d17a38c9840f53679d94cd
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/storage/intermediate_storage.py
haydarai/dagster
9b9c78e332f976f196d17a38c9840f53679d94cd
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/storage/intermediate_storage.py
haydarai/dagster
9b9c78e332f976f196d17a38c9840f53679d94cd
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod, abstractproperty import six from dagster import check from dagster.core.definitions.events import ObjectStoreOperation, ObjectStoreOperationType from dagster.core.errors import DagsterAddressIOError from dagster.core.execution.context.system import SystemExecutionContext from ...
41.505682
100
0.677002
65fc7684058015ee39a1b761b781e10a237ab7a7
4,938
py
Python
python3/koans/about_classes.py
Great-Frosty/koans
b167385a0a604e896f00fc62fabad61c113539ec
[ "MIT" ]
null
null
null
python3/koans/about_classes.py
Great-Frosty/koans
b167385a0a604e896f00fc62fabad61c113539ec
[ "MIT" ]
null
null
null
python3/koans/about_classes.py
Great-Frosty/koans
b167385a0a604e896f00fc62fabad61c113539ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutClasses(Koan): class Dog: "Dogs need regular walkies. Never, ever let them drive." def test_instances_of_classes_can_be_created_adding_parentheses(self): # NOTE: The .__name__ attribute will convert the class ...
29.218935
100
0.571486
6ac457687902539c6c168382148954000537dfb5
2,818
py
Python
docs/code-docs/source/conf.py
vidushv/DeepSpeed
c7863d97d2a529fba605b148222ccb34c5b409d8
[ "MIT" ]
1
2020-05-11T03:24:15.000Z
2020-05-11T03:24:15.000Z
docs/code-docs/source/conf.py
vidushv/DeepSpeed
c7863d97d2a529fba605b148222ccb34c5b409d8
[ "MIT" ]
null
null
null
docs/code-docs/source/conf.py
vidushv/DeepSpeed
c7863d97d2a529fba605b148222ccb34c5b409d8
[ "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...
29.354167
79
0.661817
4d2f5afd5803ff092fe1647148b7d2cca6923e05
850
py
Python
cifar_new.py
harshita-555/OSSL
5b365b314f81d3477f2c9bae0a555b12d5b41241
[ "MIT" ]
null
null
null
cifar_new.py
harshita-555/OSSL
5b365b314f81d3477f2c9bae0a555b12d5b41241
[ "MIT" ]
null
null
null
cifar_new.py
harshita-555/OSSL
5b365b314f81d3477f2c9bae0a555b12d5b41241
[ "MIT" ]
null
null
null
import numpy as np import torch.utils.data as data from PIL import Image class CIFAR_New(data.Dataset): def __init__(self, root, transform=None, target_transform=None, version='v6'): self.data = np.load('%s/cifar10.1_%s_data.npy' % (root, version)) self.targets = np.load('%s/cifar10.1_%s_l...
36.956522
94
0.637647
2462668e1eb532703e091f4d23d4bbfde6a231fb
2,682
py
Python
actions/update.py
nfstein/serverless-app-python
32317ab4f6bea646abcbbb62684d4919e44aab61
[ "Apache-2.0" ]
3
2018-12-29T09:51:49.000Z
2019-06-15T09:51:50.000Z
actions/update.py
nfstein/serverless-app-python
32317ab4f6bea646abcbbb62684d4919e44aab61
[ "Apache-2.0" ]
null
null
null
actions/update.py
nfstein/serverless-app-python
32317ab4f6bea646abcbbb62684d4919e44aab61
[ "Apache-2.0" ]
3
2019-11-02T15:42:37.000Z
2020-10-01T10:23:33.000Z
## # Copyright 2018 IBM Corp. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
28.83871
121
0.682699
ca203b792177f6185e5c7f5c543ac6713071cef7
2,204
py
Python
userbot/__main__.py
mahajant99/ProjectFizilion
9179d63aebcb6672b0b3ea4c51a05915f508f4f7
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2021-08-24T15:48:13.000Z
2021-09-20T23:20:07.000Z
userbot/__main__.py
mahajant99/ProjectFizilion
9179d63aebcb6672b0b3ea4c51a05915f508f4f7
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2021-12-15T19:36:59.000Z
2021-12-20T12:15:57.000Z
userbot/__main__.py
mahajant99/ProjectFizilion
9179d63aebcb6672b0b3ea4c51a05915f508f4f7
[ "Naumen", "Condor-1.1", "MS-PL" ]
18
2021-07-03T15:12:28.000Z
2021-08-13T07:27:24.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # """ Userbot start point """ from importlib import import_module from sys import argv from asyncio import sleep from te...
34.4375
125
0.665608
3317eeb6fd588cc6e2dd877dfaebe345b8457884
574
py
Python
LAB ASSIGN/findScore.py
Amarnathpg123/MLFAHandsOnPython
c3592195b4a81752723783b4625c0c39ac5ff4b5
[ "MIT" ]
1
2021-09-19T16:41:59.000Z
2021-09-19T16:41:59.000Z
LAB ASSIGN/findScore.py
Amarnathpg123/Machine_Learning_KGP
c3592195b4a81752723783b4625c0c39ac5ff4b5
[ "MIT" ]
null
null
null
LAB ASSIGN/findScore.py
Amarnathpg123/Machine_Learning_KGP
c3592195b4a81752723783b4625c0c39ac5ff4b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """unit4_Evaluator.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1iKlb6b3HyOJTZRbSCh4bgULNFLKE5TCa """ import ast def main(ans): res = {} res["status"] = 'Success' res["Comments"] = "Please make sure the Py...
21.259259
129
0.675958
d80eaa7148c41602ce1195081a94c97e2160c01c
47,212
py
Python
tencentcloud/solar/v20181011/models.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
465
2018-04-27T09:54:59.000Z
2022-03-29T02:18:01.000Z
tencentcloud/solar/v20181011/models.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
91
2018-04-27T09:48:11.000Z
2022-03-12T08:04:04.000Z
tencentcloud/solar/v20181011/models.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
232
2018-05-02T08:02:46.000Z
2022-03-30T08:02:48.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
29.125231
95
0.604232
07429cb96397196d89775cd8a9bef2510f4c2c11
11,151
py
Python
textacy/datasets/imdb.py
arianpasquali/textacy
b08b1585237154b95e1dfb3e07e830eddb45d1a4
[ "Apache-2.0" ]
null
null
null
textacy/datasets/imdb.py
arianpasquali/textacy
b08b1585237154b95e1dfb3e07e830eddb45d1a4
[ "Apache-2.0" ]
null
null
null
textacy/datasets/imdb.py
arianpasquali/textacy
b08b1585237154b95e1dfb3e07e830eddb45d1a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ IMDB Reviews ------------ A collection of 50k highly polar movie reviews posted to IMDB, split evenly into training and testing sets, with 25k positive and 25k negative sentiment labels, as well as some unlabeled reviews. Records include the following key fields (plus a few others): *...
39.264085
191
0.598422
f6ffec4567f90288a1d265c3fb46b49679d1a557
1,854
py
Python
OCT2019/ReverseAList.py
dexterchan/DailyChallenge
1f38dc3b22983835836a84d6281777d8e20fce7a
[ "Apache-2.0" ]
null
null
null
OCT2019/ReverseAList.py
dexterchan/DailyChallenge
1f38dc3b22983835836a84d6281777d8e20fce7a
[ "Apache-2.0" ]
null
null
null
OCT2019/ReverseAList.py
dexterchan/DailyChallenge
1f38dc3b22983835836a84d6281777d8e20fce7a
[ "Apache-2.0" ]
null
null
null
# Given a singly-linked list, reverse the list. This can be done iteratively or recursively. Can you get both solutions? #Input: 4 -> 3 -> 2 -> 1 -> 0 -> NULL #Output: 0 -> 1 -> 2 -> 3 -> 4 -> NULL class ListNode(object): def __init__(self, x): self.val = x self.next = None # Function to prin...
26.112676
120
0.575512
0f633503892154f70ac63a399b243bb837e5b825
1,243
py
Python
sa/profiles/Generic/get_portchannel.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
sa/profiles/Generic/get_portchannel.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
sa/profiles/Generic/get_portchannel.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Generic.get_portchannel # --------------------------------------------------------------------- # Copyright (C) 2007-2018 The NOC Project # See LICENSE for details # --------------------------------------------------------...
32.710526
78
0.526146
67dd43780b07a1b6cd4d3c130e7bd8bacba40470
1,302
py
Python
dialogue_system/language_understanding/attribute_extraction/rule_based_extractor.py
tknmk/slack_bot2
ed2eab93ecb3cf988d53042ffebf3d5847c464a4
[ "MIT" ]
null
null
null
dialogue_system/language_understanding/attribute_extraction/rule_based_extractor.py
tknmk/slack_bot2
ed2eab93ecb3cf988d53042ffebf3d5847c464a4
[ "MIT" ]
null
null
null
dialogue_system/language_understanding/attribute_extraction/rule_based_extractor.py
tknmk/slack_bot2
ed2eab93ecb3cf988d53042ffebf3d5847c464a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re from dialogue_system.knowledge.reader import read_genres, read_locations from dialogue_system.language_understanding.utils.utils import kansuji2arabic class RuleBasedAttributeExtractor(object): def __init__(self): self.__locations = read_locations() self.__genr...
31
100
0.64977
ba4cdbaf65acab02779c574fa4368ab42d4dc3d8
11,321
py
Python
apps/posts/views.py
cmput404F21/CMPUT404-project-socialdistribution
47f108b43886a4e482c6b6f9c6fdef6dcc005c3f
[ "W3C-20150513" ]
null
null
null
apps/posts/views.py
cmput404F21/CMPUT404-project-socialdistribution
47f108b43886a4e482c6b6f9c6fdef6dcc005c3f
[ "W3C-20150513" ]
48
2021-10-12T21:41:39.000Z
2021-12-08T19:40:25.000Z
apps/posts/views.py
cmput404F21/CMPUT404-project-socialdistribution
47f108b43886a4e482c6b6f9c6fdef6dcc005c3f
[ "W3C-20150513" ]
1
2022-01-11T04:07:43.000Z
2022-01-11T04:07:43.000Z
from django.core.exceptions import MultipleObjectsReturned from django.shortcuts import render, redirect, get_object_or_404 from django.http.request import HttpRequest from django.core.paginator import Paginator from django.urls.base import reverse from apps.core.views import author from .models import Post, Like, Co...
37.363036
111
0.684745
a375c854824f073f66dacb35ed01b38c7243ad99
4,523
py
Python
src/envrd/gesture_detector/training/soft_SVM.py
180D-FW-2020/Team8
ba439a2e65d759d0abd8d4fa827601b16228d841
[ "MIT" ]
2
2020-10-13T09:07:45.000Z
2020-10-15T21:04:28.000Z
src/envrd/gesture_detector/training/soft_SVM.py
180D-FW-2020/Team8
ba439a2e65d759d0abd8d4fa827601b16228d841
[ "MIT" ]
49
2020-10-16T00:00:53.000Z
2021-03-11T23:49:47.000Z
src/envrd/gesture_detector/training/soft_SVM.py
180D-FW-2020/Team8
ba439a2e65d759d0abd8d4fa827601b16228d841
[ "MIT" ]
1
2021-07-08T04:24:01.000Z
2021-07-08T04:24:01.000Z
## # File: soft_SVM.py # # Author: Thomas Kost # # Date: 15 November 2020 # # @brief object for a soft SVM Classifier, designed for use with arbitrary data and classes # supports One vs. One classification # import pandas as pd import numpy as np import cvxpy as cp class soft_SVM: def __...
36.475806
140
0.556489
cdc3e3c0733f4bd7f2e0b06229e157f3d9db66e8
1,244
py
Python
3.7.0/lldb-3.7.0.src/test/expression_command/radar_9531204/TestPrintfAfterUp.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
3
2016-02-10T14:18:40.000Z
2018-02-05T03:15:56.000Z
3.7.0/lldb-3.7.0.src/test/expression_command/radar_9531204/TestPrintfAfterUp.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
1
2016-02-10T15:40:03.000Z
2016-02-10T15:40:03.000Z
3.7.0/lldb-3.7.0.src/test/expression_command/radar_9531204/TestPrintfAfterUp.py
androm3da/clang_sles
2ba6d0711546ad681883c42dfb8661b842806695
[ "MIT" ]
null
null
null
""" The evaluating printf(...) after break stop and then up a stack frame. """ import os, time import unittest2 import lldb from lldbtest import * import lldbutil class Radar9531204TestCase(TestBase): mydir = TestBase.compute_mydir(__file__) # rdar://problem/9531204 def test_expr_commands(self): ...
27.043478
96
0.663183
361332190cf8f3d5d40ef3b3c8bec874bca2a059
20,432
py
Python
clearml/utilities/plotlympl/mpltools.py
harrywang/clearml
d72a42b89feba761115103c51b73897f04ae61d7
[ "Apache-2.0" ]
1
2022-01-20T11:05:01.000Z
2022-01-20T11:05:01.000Z
clearml/utilities/plotlympl/mpltools.py
harrywang/clearml
d72a42b89feba761115103c51b73897f04ae61d7
[ "Apache-2.0" ]
null
null
null
clearml/utilities/plotlympl/mpltools.py
harrywang/clearml
d72a42b89feba761115103c51b73897f04ae61d7
[ "Apache-2.0" ]
null
null
null
""" Tools A module for converting from mpl language to plotly language. """ import math import warnings import matplotlib.dates def check_bar_match(old_bar, new_bar): """Check if two bars belong in the same collection (bar chart). Positional arguments: old_bar -- a previously sorted bar dictionary. ...
33.996672
89
0.604836
4177777a1fbfeaa7c4f7a9d6e235d940ad0c7b4f
326
py
Python
books/migrations/0015_remove_book_file_url.py
asommer70/bookpila
6ed7b6ee1866daeb3820e958a5d8115d76e9269d
[ "MIT" ]
1
2020-04-14T01:14:30.000Z
2020-04-14T01:14:30.000Z
books/migrations/0015_remove_book_file_url.py
asommer70/bookpila
6ed7b6ee1866daeb3820e958a5d8115d76e9269d
[ "MIT" ]
null
null
null
books/migrations/0015_remove_book_file_url.py
asommer70/bookpila
6ed7b6ee1866daeb3820e958a5d8115d76e9269d
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-01-07 10:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('books', '0014_auto_20180107_0518'), ] operations = [ migrations.RemoveField( model_name='book', name='file_url', ), ...
18.111111
47
0.588957
7d511ca93bcd171fadf39fbecbf1e983eba2492d
13,915
py
Python
tensorflow_datasets/core/features/image_feature.py
elda27/datasets
9653c3eaeb4f320cf50034543925061e0e5c98a3
[ "Apache-2.0" ]
1
2021-08-05T12:47:25.000Z
2021-08-05T12:47:25.000Z
tensorflow_datasets/core/features/image_feature.py
elda27/datasets
9653c3eaeb4f320cf50034543925061e0e5c98a3
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/features/image_feature.py
elda27/datasets
9653c3eaeb4f320cf50034543925061e0e5c98a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets 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 appl...
32.511682
95
0.67977
793b1f569c38dd989bedb9312fc5cbfbe92086b6
31,775
py
Python
Lib/test/test_deque.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/test/test_deque.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/test/test_deque.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
z collections zaimportuj deque zaimportuj unittest z test zaimportuj support, seq_tests zaimportuj gc zaimportuj weakref zaimportuj copy zaimportuj pickle z io zaimportuj StringIO zaimportuj random zaimportuj struct BIG = 100000 def fail(): podnieś SyntaxError uzyskaj 1 klasa BadCmp: def __eq__(self, oth...
31.743257
85
0.518584
7d7f79157661738ea95015d82366617cb5ba93c3
238
py
Python
py/src/myapp.py
gilbertfrancois/qt-camera-template
8cb595b1593a53dc9a93c48a40465f6ed112024d
[ "Apache-2.0" ]
3
2020-02-26T13:16:57.000Z
2021-06-05T01:02:25.000Z
py/src/myapp.py
gilbertfrancois/qt-camera-template
8cb595b1593a53dc9a93c48a40465f6ed112024d
[ "Apache-2.0" ]
null
null
null
py/src/myapp.py
gilbertfrancois/qt-camera-template
8cb595b1593a53dc9a93c48a40465f6ed112024d
[ "Apache-2.0" ]
2
2020-02-26T13:16:59.000Z
2020-11-10T06:52:53.000Z
from PySide2.QtWidgets import * class MyApp(QApplication): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.setApplicationName("My Camera App") self.setApplicationVersion("0.1")
19.833333
48
0.655462
558f067ac899a8fb124e18e9f739c48a2174068f
4,237
py
Python
tasks/_iblrig_calibration_screen/session_params.py
jennan/iblrig
46591429951f5cec6deb307318c7c63616c240f3
[ "MIT" ]
null
null
null
tasks/_iblrig_calibration_screen/session_params.py
jennan/iblrig
46591429951f5cec6deb307318c7c63616c240f3
[ "MIT" ]
null
null
null
tasks/_iblrig_calibration_screen/session_params.py
jennan/iblrig
46591429951f5cec6deb307318c7c63616c240f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Author: Niccolò Bonacchi # @Date: Thursday, June 6th 2019, 11:42:40 am import logging from pythonosc import udp_client import iblrig.iotasks as iotasks from iblrig.path_helper import SessionPathCreator log = logging.getLogger('iblrig') class SessionPara...
44.6
109
0.423885
3d6e6bacf2ca21c8cbcbab78e3f55d91b11d20cd
76,052
py
Python
rpython/rlib/runicode.py
bxtkezhan/rpython
10d53fe95495c3be5933320c277f6dd26238408b
[ "MIT" ]
11
2020-07-02T13:57:46.000Z
2022-01-23T18:04:42.000Z
rlib/runicode.py
rafi16jan/rpython-wasm
a9739d498c2812d56636d69307719082ec8cd8a2
[ "MIT" ]
1
2021-11-05T06:29:33.000Z
2021-11-06T12:33:46.000Z
rlib/runicode.py
rafi16jan/rpython-wasm
a9739d498c2812d56636d69307719082ec8cd8a2
[ "MIT" ]
2
2020-12-17T09:35:36.000Z
2021-11-24T15:34:08.000Z
import sys from rpython.rlib.objectmodel import specialize, we_are_translated, enforceargs from rpython.rlib.rstring import StringBuilder, UnicodeBuilder from rpython.rlib.rarithmetic import r_uint, intmask, widen from rpython.rlib.unicodedata import unicodedb from rpython.tool.sourcetools import func_with_new_name fro...
37.482504
87
0.497186
2b2e99611f859063fc24b0c6beb0a85fd07bfc40
110
py
Python
nxted/files/test4.py
xlcteam/nxtIDE
659ace68b060682aeeb6d789d88a7b6899a56f9a
[ "MIT" ]
8
2015-02-16T23:11:30.000Z
2021-01-16T00:15:25.000Z
nxted/files/test4.py
xlcteam/nxtIDE
659ace68b060682aeeb6d789d88a7b6899a56f9a
[ "MIT" ]
3
2016-07-16T20:47:48.000Z
2021-03-25T21:27:11.000Z
nxted/files/test4.py
xlcteam/nxtIDE
659ace68b060682aeeb6d789d88a7b6899a56f9a
[ "MIT" ]
3
2015-08-30T18:23:51.000Z
2016-10-28T15:07:59.000Z
def main(): OnFwd(OUT_AB, 100) Wait(2000) OnRev(OUT_AB, 100) Wait(2000) Off(OUT_AB)
12.222222
22
0.545455
fd4134c98a76144872be22b100b15146e80ae3fd
31
py
Python
data-science/scikit-learn/module/FirstML.py
le3t/ko-repo
50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5
[ "Apache-2.0" ]
4
2019-10-26T01:25:30.000Z
2020-01-12T08:10:25.000Z
data-science/scikit-learn/module/FirstML.py
Artister/tutorials-java
50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5
[ "Apache-2.0" ]
3
2019-08-26T13:41:57.000Z
2019-08-26T13:44:21.000Z
data-science/scikit-learn/module/FirstML.py
Artister/tutorials-java
50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5
[ "Apache-2.0" ]
1
2019-12-30T12:27:38.000Z
2019-12-30T12:27:38.000Z
def predict(x): print("?")
10.333333
15
0.516129
e6076ac1cf7cbfd56c773f8a924e47ff521a6e22
17,532
py
Python
Bio/PDB/PDBParser.py
ProteinQure/biopython
a8569f03bd18f1aa5258b1da0e21f5efd805a4c0
[ "BSD-3-Clause" ]
1
2022-02-08T23:44:30.000Z
2022-02-08T23:44:30.000Z
Bio/PDB/PDBParser.py
ProteinQure/biopython
a8569f03bd18f1aa5258b1da0e21f5efd805a4c0
[ "BSD-3-Clause" ]
null
null
null
Bio/PDB/PDBParser.py
ProteinQure/biopython
a8569f03bd18f1aa5258b1da0e21f5efd805a4c0
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Parser for PDB files.""" import warnings try: import numpy except ImportError: ...
40.962617
85
0.504905
c25a02869aa6de58f8e31cc2acdfaf65ff0ae744
11,876
py
Python
tfjs-converter/python/tensorflowjs/converters/keras_h5_conversion.py
nicholasio/tfjs
dc29a283ac2520ad9d484acab711dfd589d9577c
[ "Apache-2.0" ]
1
2020-07-12T10:21:49.000Z
2020-07-12T10:21:49.000Z
tfjs-converter/python/tensorflowjs/converters/keras_h5_conversion.py
OmriGM/tfjs
26bccc44133ae14d98f3ac6f217a4ee8d51055f0
[ "Apache-2.0" ]
null
null
null
tfjs-converter/python/tensorflowjs/converters/keras_h5_conversion.py
OmriGM/tfjs
26bccc44133ae14d98f3ac6f217a4ee8d51055f0
[ "Apache-2.0" ]
1
2020-06-04T23:28:38.000Z
2020-06-04T23:28:38.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.931429
80
0.711014
8c67d4d313eaba4fb9ddc05a996a375c6d98d1b7
4,194
py
Python
sdk/python/pulumi_aws/waf/regex_pattern_set.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/waf/regex_pattern_set.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/waf/regex_pattern_set.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class RegexP...
46.6
164
0.679304
51fbdda4858c396a0e21ad9f9a7a2df79ff838f3
50,095
py
Python
lnt/server/db/testsuitedb.py
sx-aurora-dev/llvm-lnt
1befd8e072138ca843305a0b5e20e0883d19eafd
[ "Apache-2.0" ]
19
2019-01-15T03:04:00.000Z
2021-12-08T00:09:01.000Z
lnt/server/db/testsuitedb.py
sx-aurora-dev/llvm-lnt
1befd8e072138ca843305a0b5e20e0883d19eafd
[ "Apache-2.0" ]
5
2019-04-11T06:22:18.000Z
2021-09-13T17:41:14.000Z
lnt/server/db/testsuitedb.py
sx-aurora-dev/llvm-lnt
1befd8e072138ca843305a0b5e20e0883d19eafd
[ "Apache-2.0" ]
21
2019-02-10T02:47:55.000Z
2022-03-31T14:16:36.000Z
""" Database models for the TestSuite databases themselves. These are a bit magical because the models themselves are driven by the test suite metadata, so we only create the classes at runtime. """ from __future__ import absolute_import import datetime import json import os import itertools import aniso8601 import ...
41.298434
87
0.550893
d401da931a3855b3ba38fc4ea65782db7e986fc0
53,377
py
Python
trac/versioncontrol/api.py
clubturbo/Trac-1.4.2
254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78
[ "BSD-3-Clause" ]
null
null
null
trac/versioncontrol/api.py
clubturbo/Trac-1.4.2
254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78
[ "BSD-3-Clause" ]
null
null
null
trac/versioncontrol/api.py
clubturbo/Trac-1.4.2
254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2020 Edgewall Software # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http...
39.075403
81
0.56826
268b1afdd6d0424a701a388adbb1e9a29656d93c
6,175
py
Python
app/tests.py
eason-lee/fastapi-demo
89f0b6be6c6038d90179cf8772895b337642a717
[ "Apache-2.0" ]
null
null
null
app/tests.py
eason-lee/fastapi-demo
89f0b6be6c6038d90179cf8772895b337642a717
[ "Apache-2.0" ]
null
null
null
app/tests.py
eason-lee/fastapi-demo
89f0b6be6c6038d90179cf8772895b337642a717
[ "Apache-2.0" ]
null
null
null
import asyncio from typing import Generator import pytest from faker import Faker from fastapi.testclient import TestClient from tortoise.contrib.test import finalizer, initializer from app import create_app from app.models import StatisticsData fake = Faker() @pytest.fixture def client() -> Generator: app = c...
27.941176
67
0.483077
8a82356d480cf56ca18c96b53f5de7ea5fbaa38e
573
py
Python
utils.py
sumeshir26/TimerX
d6ddf01ddab4487d3c24466f89be8188e0be5b28
[ "MIT" ]
8
2021-11-10T06:30:51.000Z
2022-01-06T14:58:12.000Z
utils.py
sumeshir26/TimerX
d6ddf01ddab4487d3c24466f89be8188e0be5b28
[ "MIT" ]
33
2021-11-11T16:10:10.000Z
2022-01-14T18:54:15.000Z
utils.py
sumeshir26/TimerX
d6ddf01ddab4487d3c24466f89be8188e0be5b28
[ "MIT" ]
14
2021-11-10T08:39:13.000Z
2022-01-06T14:53:56.000Z
# CONFIG import json def loadConfig(): with open('config.json') as config_file: config = json.load(config_file) return config def setConfig(config): with open('config.json', 'w') as config_file: json.dump(config, config_file) def createConfig(): with open('config.json', '...
35.8125
231
0.649215
2e3e9d9ff767d398c19c20f217c6d81b2c081a58
3,779
py
Python
cuml_bench/kmeans.py
owerbat/scikit-learn_bench
972efac3779578865424515db2897c4b8c71307a
[ "Apache-2.0" ]
59
2019-06-13T18:25:55.000Z
2022-03-28T19:33:23.000Z
cuml_bench/kmeans.py
owerbat/scikit-learn_bench
972efac3779578865424515db2897c4b8c71307a
[ "Apache-2.0" ]
45
2018-10-10T16:17:21.000Z
2022-03-25T16:00:58.000Z
cuml_bench/kmeans.py
owerbat/scikit-learn_bench
972efac3779578865424515db2897c4b8c71307a
[ "Apache-2.0" ]
38
2018-10-08T17:07:25.000Z
2021-11-10T06:29:37.000Z
# =============================================================================== # Copyright 2020-2021 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.ap...
40.202128
86
0.66896
e4accd7b57d1d44d08de97a69719066c697d5ece
100
py
Python
bitmovin_api_sdk/encoding/encodings/muxings/mp3/customdata/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/encoding/encodings/muxings/mp3/customdata/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/encoding/encodings/muxings/mp3/customdata/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
from bitmovin_api_sdk.encoding.encodings.muxings.mp3.customdata.customdata_api import CustomdataApi
50
99
0.9
0fc232b5a93fd27b1d320b1569b31505310457f5
2,108
py
Python
tests/test_pre_commit_4_sync_execute.py
st--/jupytext
f8e8352859cc22e17b11154d0770fd946c4a430a
[ "MIT" ]
5,378
2018-09-01T22:03:43.000Z
2022-03-31T06:51:42.000Z
tests/test_pre_commit_4_sync_execute.py
st--/jupytext
f8e8352859cc22e17b11154d0770fd946c4a430a
[ "MIT" ]
812
2018-08-31T08:26:13.000Z
2022-03-30T18:12:11.000Z
tests/test_pre_commit_4_sync_execute.py
st--/jupytext
f8e8352859cc22e17b11154d0770fd946c4a430a
[ "MIT" ]
380
2018-09-02T01:40:07.000Z
2022-03-25T13:57:23.000Z
import pytest from git.exc import HookExecutionError from nbformat.v4.nbbase import new_code_cell from pre_commit.main import main as pre_commit from jupytext import read, write from .utils import ( requires_user_kernel_python3, skip_pre_commit_tests_on_windows, skip_pre_commit_tests_when_jupytext_folder_...
28.876712
105
0.707306
bc9b21ab5f53912b4dd7f86dfe2b90d8ff4ce876
6,898
py
Python
alchemyjsonschema/tests/test_dictify.py
mrichar1/alchemyjsonschema
cee81f707b3ebb64e72fd555b9118c76cf127caf
[ "MIT" ]
58
2015-01-11T09:25:59.000Z
2022-01-02T21:03:58.000Z
alchemyjsonschema/tests/test_dictify.py
mrichar1/alchemyjsonschema
cee81f707b3ebb64e72fd555b9118c76cf127caf
[ "MIT" ]
18
2015-10-26T00:49:56.000Z
2021-04-28T14:25:24.000Z
alchemyjsonschema/tests/test_dictify.py
mrichar1/alchemyjsonschema
cee81f707b3ebb64e72fd555b9118c76cf127caf
[ "MIT" ]
13
2015-01-16T15:39:19.000Z
2021-03-29T16:02:46.000Z
# -*- coding:utf-8 -*- def _callFUT(*args, **kwargs): from alchemyjsonschema.dictify import dictify return dictify(*args, **kwargs) def _callFUT2(*args, **kwargs): from alchemyjsonschema.dictify import normalize return normalize(*args, **kwargs) def _callFUT3(*args, **kwargs): from alchemyjson...
30.122271
88
0.613946
05fbee12c24f5f8cbbd064ff9b60bb2049be1dab
1,211
py
Python
nnef_tools/io/tensorflow/tflite_fb/GatherOptions.py
rgiduthuri/NNEF-Tools
8a9971f897fb5a110dd254e0c20077213f257700
[ "Apache-2.0" ]
null
null
null
nnef_tools/io/tensorflow/tflite_fb/GatherOptions.py
rgiduthuri/NNEF-Tools
8a9971f897fb5a110dd254e0c20077213f257700
[ "Apache-2.0" ]
null
null
null
nnef_tools/io/tensorflow/tflite_fb/GatherOptions.py
rgiduthuri/NNEF-Tools
8a9971f897fb5a110dd254e0c20077213f257700
[ "Apache-2.0" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite_fb import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class GatherOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAsGatherOptions(cls, buf, offset): n = flatbuff...
32.72973
114
0.712634
19e1ec0a9fd7bc7d71f7dd1db51e79a606431b41
1,335
py
Python
attune/_note.py
wright-group/WrightTune
e9a4937b6fda24dfd10baf2fc674c15542861aba
[ "MIT" ]
2
2020-08-20T14:26:19.000Z
2021-07-19T22:51:19.000Z
attune/_note.py
wright-group/attune
67b7e5590a11e9b09056e7d334fd7d7286a24c5f
[ "MIT" ]
96
2017-10-12T01:16:01.000Z
2022-02-23T19:43:57.000Z
attune/_note.py
wright-group/WrightTune
e9a4937b6fda24dfd10baf2fc674c15542861aba
[ "MIT" ]
2
2021-08-17T22:22:06.000Z
2021-09-01T02:30:06.000Z
__all__ = ["Note"] from typing import Dict, Union from ._setable import Setable class Note: def __init__( self, setables: Dict[str, Setable], setable_positions: Dict[str, Union[float, str]], arrangement_name: str, ): """A particular set of motor positions. Pa...
28.404255
96
0.618727
ccd27f77773ab99c60e7694d7092f2b92048850e
1,706
py
Python
profiles_api/migrations/0001_initial.py
Kozphy/django_api_learn
9cdbabcdc26438af09ccbd241c0cf9bfaff4138a
[ "MIT" ]
null
null
null
profiles_api/migrations/0001_initial.py
Kozphy/django_api_learn
9cdbabcdc26438af09ccbd241c0cf9bfaff4138a
[ "MIT" ]
null
null
null
profiles_api/migrations/0001_initial.py
Kozphy/django_api_learn
9cdbabcdc26438af09ccbd241c0cf9bfaff4138a
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2021-01-13 06:31 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='UserProfile', ...
50.176471
266
0.638921
f48df764cebe8feec791e61930da32eeedc33e22
40,191
py
Python
reference/bert_model_format.py
Feuoy/sentiment-analysis
d0912381f7230fce5333809d5f2d9ee27c95a076
[ "MIT" ]
25
2021-05-21T06:47:56.000Z
2022-02-27T06:57:37.000Z
reference/bert_model_format.py
Feuoy/sentiment-analysis
d0912381f7230fce5333809d5f2d9ee27c95a076
[ "MIT" ]
3
2021-06-12T09:26:54.000Z
2022-03-23T14:33:15.000Z
reference/bert_model_format.py
Feuoy/sentiment-analysis
d0912381f7230fce5333809d5f2d9ee27c95a076
[ "MIT" ]
1
2021-10-02T03:47:04.000Z
2021-10-02T03:47:04.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
41.137155
139
0.672763
523133d070607d34fe0231cc7930c92a1bb224f6
37,693
py
Python
lib/galaxy/tools/parser/xml.py
igorhollaender/sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
2
2018-10-14T16:42:39.000Z
2018-10-14T16:42:41.000Z
lib/galaxy/tools/parser/xml.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/tools/parser/xml.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
null
null
null
import logging import re import traceback import sys import uuid from math import isinf from .interface import ( ToolSource, PagesSource, PageSource, InputSource, ToolStdioExitCode, ToolStdioRegex, TestCollectionDef, TestCollectionOutputDef, ) from .util import ( error_on_exit_code,...
40.486574
156
0.613217
39ededb0fb9b228422f510417ffc7350054db17c
5,902
py
Python
parsers/NZ.py
oscarmrom/electricitymap-contrib
1fcbb9a9003a50aa0dccc4e4ca703126f76f2c89
[ "MIT" ]
1,582
2018-07-16T10:52:36.000Z
2021-12-06T06:03:32.000Z
parsers/NZ.py
oscarmrom/electricitymap-contrib
1fcbb9a9003a50aa0dccc4e4ca703126f76f2c89
[ "MIT" ]
1,463
2018-07-09T12:23:35.000Z
2021-12-06T08:11:37.000Z
parsers/NZ.py
oscarmrom/electricitymap-contrib
1fcbb9a9003a50aa0dccc4e4ca703126f76f2c89
[ "MIT" ]
650
2018-07-10T02:07:17.000Z
2021-12-03T11:05:45.000Z
#!/usr/bin/env python3 # The arrow library is used to handle datetimes import arrow # The request library is used to fetch content through HTTP import requests import json from bs4 import BeautifulSoup timezone = 'Pacific/Auckland' NZ_NZN_PRICE_REGIONS = set(['region{}'.format(i) for i in range(1, 9)]) NZ_NZS_PRICE...
37.592357
98
0.617079
9b292ba5298384e9b70fcb32268e1ed43faed967
752
py
Python
offer/32-cong-shang-dao-xia-da-yin-er-cha-shu-lcof.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
2
2021-03-14T11:38:26.000Z
2021-03-14T11:38:30.000Z
offer/32-cong-shang-dao-xia-da-yin-er-cha-shu-lcof.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
null
null
null
offer/32-cong-shang-dao-xia-da-yin-er-cha-shu-lcof.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
1
2022-01-17T19:33:23.000Z
2022-01-17T19:33:23.000Z
''' 剑指 Offer 32 - I. 从上到下打印二叉树 从上到下打印出二叉树的每个节点,同一层的节点按照从左到右的顺序打印。 ''' from typing import List # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None ''' 思路:BFS遍历树 广度优先遍历树,使用队列保存待遍历的节点 时间复杂度:O(n) 空间复杂度:O(n) ''' class S...
18.8
54
0.545213
756bb6dbe8d9d3d69c4c609c57d72468e407dcc0
738
py
Python
talks/migrations/0004_auto_20171118_1944.py
manavshrivastavagit/django-restapi
52261c93b58422b0e39cae656ae9409ea03a488d
[ "MIT" ]
5
2017-01-13T08:17:25.000Z
2020-04-07T12:50:51.000Z
talks/migrations/0004_auto_20171118_1944.py
manavshrivastavagit/django-restapi
52261c93b58422b0e39cae656ae9409ea03a488d
[ "MIT" ]
2
2016-10-25T12:51:30.000Z
2017-10-14T18:38:59.000Z
talks/migrations/0004_auto_20171118_1944.py
manavshrivastavagit/django-restapi
52261c93b58422b0e39cae656ae9409ea03a488d
[ "MIT" ]
4
2017-09-05T19:03:13.000Z
2021-03-23T07:47:41.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2017-11-18 17:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('talks', '0003_auto_20171118_1908'), ] operations = [ migrations.AlterModelO...
24.6
57
0.571816
f0508f2552d82b92f9a0022e44d433d2c4e9b70b
845
py
Python
scripts/issues/issue14.py
slamer59/awesome-panel
91c30bd6d6859eadf9c65b1e143952f7e64d5290
[ "Apache-2.0" ]
179
2019-12-04T14:54:53.000Z
2022-03-30T09:08:38.000Z
scripts/issues/issue14.py
slamer59/awesome-panel
91c30bd6d6859eadf9c65b1e143952f7e64d5290
[ "Apache-2.0" ]
62
2019-12-14T16:51:28.000Z
2022-03-19T18:47:12.000Z
scripts/issues/issue14.py
slamer59/awesome-panel
91c30bd6d6859eadf9c65b1e143952f7e64d5290
[ "Apache-2.0" ]
35
2019-12-08T13:19:53.000Z
2022-03-25T10:33:02.000Z
import panel as pn text = """\ ## Wide images in markdown overflows the page A wide image in markdown overflows the page **I think it's a friction point that could be easily solved by setting `max-width: 100%` in the default css of Panel**. Or alternative by default adding `max-width: 100%` to the styling of...
36.73913
192
0.747929
01e5a0473ddc67e83b75dc072883a6b1b2a9ac65
3,132
py
Python
pontoon/administration/forms.py
foss4/pontoon
0503cc78f00e1e9d23c1ca885fe74a627563fc82
[ "BSD-3-Clause" ]
1,145
2015-05-15T01:08:16.000Z
2022-03-31T14:23:45.000Z
pontoon/administration/forms.py
foss4/pontoon
0503cc78f00e1e9d23c1ca885fe74a627563fc82
[ "BSD-3-Clause" ]
1,365
2015-05-04T21:54:18.000Z
2022-03-30T16:53:49.000Z
pontoon/administration/forms.py
foss4/pontoon
0503cc78f00e1e9d23c1ca885fe74a627563fc82
[ "BSD-3-Clause" ]
667
2015-05-04T21:33:45.000Z
2022-03-30T10:25:33.000Z
from django import forms from django.contrib.auth.models import User from django.forms.models import inlineformset_factory from django.core.exceptions import ValidationError from pontoon.base.models import ( Entity, ExternalResource, Locale, Project, Repository, Subpage, ) from pontoon.base.for...
25.884298
83
0.611111
ed212568334fb3867360a5e8c33b04aeefb21490
12,382
py
Python
ciphrtxt/keys.py
jadeblaquiere/ciphrtxt-lib
cf0f18986d6e88527fd69d6b38980f3cce90d733
[ "MIT" ]
null
null
null
ciphrtxt/keys.py
jadeblaquiere/ciphrtxt-lib
cf0f18986d6e88527fd69d6b38980f3cce90d733
[ "MIT" ]
null
null
null
ciphrtxt/keys.py
jadeblaquiere/ciphrtxt-lib
cf0f18986d6e88527fd69d6b38980f3cce90d733
[ "MIT" ]
null
null
null
# Copyright (c) 2016, Joseph deBlaquiere <jadeblaquiere@yahoo.com> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions...
34.586592
80
0.530044
eccd8de47c67b350f2309402463ada6c62d41f97
12,355
py
Python
killerbee/dev_sl_beehive.py
lopessec/killerbee
c236d626e297815bdc401695cd6c8a6c9e353c38
[ "BSD-3-Clause" ]
653
2015-04-01T18:29:08.000Z
2022-03-18T09:05:22.000Z
killerbee/dev_sl_beehive.py
lopessec/killerbee
c236d626e297815bdc401695cd6c8a6c9e353c38
[ "BSD-3-Clause" ]
189
2015-04-23T03:37:34.000Z
2022-03-15T07:23:17.000Z
killerbee/dev_sl_beehive.py
lopessec/killerbee
c236d626e297815bdc401695cd6c8a6c9e353c38
[ "BSD-3-Clause" ]
223
2015-04-07T10:12:18.000Z
2022-03-25T17:39:26.000Z
''' Support for the Silabs based version of "BeeHive" SNIFFER/ INJECTOR firmware Author: Adam Laurie <adam@algroup.co.uk> aka RFIDiot ''' import usb # type: ignore import serial # type: ignore import time # type: ignore import struct # type: ignore from datetime import datetime, date # type: ignore from datetime impo...
37.439394
194
0.591906
4e0e9a8710c7b2e32b577f088dc7b79e5661430a
51,672
py
Python
distributed/tests/test_scheduler.py
sodre/distributed
0b68318112b13d70a9cdd741e5db00da2ec6a8f5
[ "BSD-3-Clause" ]
null
null
null
distributed/tests/test_scheduler.py
sodre/distributed
0b68318112b13d70a9cdd741e5db00da2ec6a8f5
[ "BSD-3-Clause" ]
null
null
null
distributed/tests/test_scheduler.py
sodre/distributed
0b68318112b13d70a9cdd741e5db00da2ec6a8f5
[ "BSD-3-Clause" ]
1
2020-11-25T04:42:07.000Z
2020-11-25T04:42:07.000Z
import asyncio import cloudpickle import pickle from collections import defaultdict from datetime import timedelta import json import operator import sys from time import sleep import logging import dask from dask import delayed from toolz import merge, concat, valmap, first, frequencies from tornado import gen impor...
27.930811
105
0.628193
24f6b007b526b29157011f3b1e9abdbd50bacc8e
5,846
py
Python
tensorflow/contrib/eager/python/examples/densenet/densenet_graph_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/eager/python/examples/densenet/densenet_graph_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/eager/python/examples/densenet/densenet_graph_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2018 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.20915
80
0.637701
d9aa07a1ad9eebfbf37228d3c16a083c87428778
985
py
Python
2-resources/__DATA-Structures/Code-Challenges/cc71meanMedianMode/solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/Code-Challenges/cc71meanMedianMode/solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/Code-Challenges/cc71meanMedianMode/solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# https://youtu.be/r0xWh4QqS9Q # https://piazza.com/class/j63w1pdyopf7kj?cid=83 from functools import reduce from collections import Counter def findMean(numbers): sum = reduce(lambda x, y: x + y, numbers) mean = sum / len(numbers) return mean def findMedian(numbers): numbers.sort() mid = len(numbers) // 2...
22.386364
51
0.670051
f275a6a09e630fafaaea35972234756573fc95db
4,277
py
Python
dmriprep/cli/tests/test_parser.py
arokem/dmriprep
f5080e9a9e2ea62114d56f811e694ae36ae082b0
[ "Apache-2.0" ]
53
2019-09-14T21:30:46.000Z
2021-12-20T10:35:34.000Z
dmriprep/cli/tests/test_parser.py
nipreps/dmriprep
510ed0ea207ac3744b6afb1c4a19360f02e8a846
[ "Apache-2.0" ]
161
2019-07-23T16:30:55.000Z
2022-03-29T10:29:15.000Z
dmriprep/cli/tests/test_parser.py
GalBenZvi/dmriprep
7c4c0e1b01e3d941a7fafcbb6b001605cb1f2b0b
[ "Apache-2.0" ]
28
2019-09-05T21:09:53.000Z
2022-01-02T15:29:19.000Z
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: # # Copyright 2021 The NiPreps Developers <nipreps@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may...
30.55
84
0.647884
ad7eddeb0249f3ae388d54170d2781d8f9eab6b8
1,585
py
Python
app/recognition/views.py
piotrdubiel/scribeserver
81aa56d89bfc912a624952618bb7be400b0070e8
[ "MIT" ]
null
null
null
app/recognition/views.py
piotrdubiel/scribeserver
81aa56d89bfc912a624952618bb7be400b0070e8
[ "MIT" ]
null
null
null
app/recognition/views.py
piotrdubiel/scribeserver
81aa56d89bfc912a624952618bb7be400b0070e8
[ "MIT" ]
null
null
null
from flask import Blueprint, request from tempfile import TemporaryFile from app.users import api_authorize from .models import Prediction from .cnn.classify import read import struct import os blueprint = Blueprint('recognition', __name__) from pysbp import Classifier path = os.path.abspath(os.path.dirname(__file__)...
29.351852
66
0.573502
479418f17c5378e6b329e21dd45a984d0bf8eaee
9,645
py
Python
ckan/views/__init__.py
irev/ckan
00947b6dd9611c88ca74500258cbf4e3c5a82c2f
[ "BSD-3-Clause" ]
null
null
null
ckan/views/__init__.py
irev/ckan
00947b6dd9611c88ca74500258cbf4e3c5a82c2f
[ "BSD-3-Clause" ]
2
2021-09-09T03:24:13.000Z
2022-03-31T23:04:14.000Z
ckan/views/__init__.py
irev/ckan
00947b6dd9611c88ca74500258cbf4e3c5a82c2f
[ "BSD-3-Clause" ]
2
2020-05-13T14:01:14.000Z
2021-04-10T20:22:54.000Z
# encoding: utf-8 from sqlalchemy import inspect from ckan.common import asbool import six from urllib.parse import quote from werkzeug.utils import import_string, cached_property import ckan.model as model import ckan.lib.api_token as api_token from ckan.common import g, request, config, session from ckan.lib.helpe...
35.590406
78
0.630793
5a4e335e0c7c4a65324d3521c51e2a650630e7dc
21,532
py
Python
tests/trainer/logging_/test_eval_loop_logging.py
JamesRandom/pytorch-lightning
f6a5bb2eee18e23c1a15013750c82539f399e9da
[ "Apache-2.0" ]
4
2021-07-27T14:39:02.000Z
2022-03-07T10:57:13.000Z
tests/trainer/logging_/test_eval_loop_logging.py
JamesRandom/pytorch-lightning
f6a5bb2eee18e23c1a15013750c82539f399e9da
[ "Apache-2.0" ]
null
null
null
tests/trainer/logging_/test_eval_loop_logging.py
JamesRandom/pytorch-lightning
f6a5bb2eee18e23c1a15013750c82539f399e9da
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.286624
120
0.630689
0f62d25df27b150ea8d9393175627ca06a123ede
1,541
py
Python
09_multi-scale_local_planar_guidance_for_monocular_depth_estimation/01_float32/02_replace_input.py
khanfarhan10/PINTO_model_zoo
4cad2e506d8c0fb604aa7b5f84115a840ab59ba1
[ "MIT" ]
1,529
2019-12-11T13:36:23.000Z
2022-03-31T18:38:27.000Z
09_multi-scale_local_planar_guidance_for_monocular_depth_estimation/01_float32/02_replace_input.py
khanfarhan10/PINTO_model_zoo
4cad2e506d8c0fb604aa7b5f84115a840ab59ba1
[ "MIT" ]
200
2020-01-06T09:24:42.000Z
2022-03-31T17:29:08.000Z
09_multi-scale_local_planar_guidance_for_monocular_depth_estimation/01_float32/02_replace_input.py
khanfarhan10/PINTO_model_zoo
4cad2e506d8c0fb604aa7b5f84115a840ab59ba1
[ "MIT" ]
288
2020-02-21T14:56:02.000Z
2022-03-30T03:00:35.000Z
import tensorflow as tf from tensorflow.tools.graph_transforms import TransformGraph with tf.compat.v1.Session() as sess: # shape=[1, ?, ?, 3] -> shape=[1, 480, 640, 3] # name='image' specifies the placeholder name of the converted model inputs = tf.compat.v1.placeholder(tf.float32, shape=[1, 480, 640, 3]...
49.709677
134
0.653472
615637bc1e850b0749392f36b4c92d597d154505
191
py
Python
twitterscraper/controllers/system.py
David-Lor/twitterscraper
ceb334e0251ffce19e45fa2a9ed21b856d6d66d5
[ "0BSD" ]
null
null
null
twitterscraper/controllers/system.py
David-Lor/twitterscraper
ceb334e0251ffce19e45fa2a9ed21b856d6d66d5
[ "0BSD" ]
null
null
null
twitterscraper/controllers/system.py
David-Lor/twitterscraper
ceb334e0251ffce19e45fa2a9ed21b856d6d66d5
[ "0BSD" ]
null
null
null
from twitterscraper.services.persistence import Repository def db_migrate(): Repository.run_migrations() def db_generate_migration(name: str): Repository.generate_migration(name)
19.1
58
0.801047
2ccdc1640c78ded6dc16b3390fdae355f56e7e20
625
py
Python
api/app/celery.py
LeiSoft/CueObserve
cc5254df7d0cb817a8b3ec427f5cb54a1d420f7e
[ "Apache-2.0" ]
null
null
null
api/app/celery.py
LeiSoft/CueObserve
cc5254df7d0cb817a8b3ec427f5cb54a1d420f7e
[ "Apache-2.0" ]
null
null
null
api/app/celery.py
LeiSoft/CueObserve
cc5254df7d0cb817a8b3ec427f5cb54a1d420f7e
[ "Apache-2.0" ]
null
null
null
import os from django.conf import settings from celery import Celery os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings") app = Celery( "app", broker=settings.REDIS_BROKER_URL, backend=settings.CELERY_RESULT_BACKEND ) # app.config_from_object("django.conf:settings") app.conf.task_routes = settings.CEL...
24.038462
83
0.7824
588a051b752d49397d92e6dbc15fdcee06808972
6,624
py
Python
opc/opc.py
intelburn/opcu
7fe05a24551ecbe1d7aa20de06688e677c25460e
[ "Apache-2.0" ]
null
null
null
opc/opc.py
intelburn/opcu
7fe05a24551ecbe1d7aa20de06688e677c25460e
[ "Apache-2.0" ]
4
2018-04-11T13:14:05.000Z
2018-04-11T19:29:05.000Z
opc/opc.py
intelburn/opcu
7fe05a24551ecbe1d7aa20de06688e677c25460e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Python Client library for Open Pixel Control http://github.com/zestyping/openpixelcontrol Sends pixel values to an Open Pixel Control server to be displayed. http://openpixelcontrol.org/ Recommended use: import opc # Create a client object client = opc.Client('localhost:7890') ...
35.805405
134
0.603563
41ad917c21ac38810abc92509af442b542af8efb
2,627
py
Python
tests/test_config_handler_resolve_config_file.py
BastiTee/pype-cli
e676ec5d536b6c48c6033c56962bd15687489aaf
[ "Apache-2.0" ]
1
2020-11-24T17:31:30.000Z
2020-11-24T17:31:30.000Z
tests/test_config_handler_resolve_config_file.py
BastiTee/pype-cli
e676ec5d536b6c48c6033c56962bd15687489aaf
[ "Apache-2.0" ]
4
2019-10-29T06:17:12.000Z
2021-02-12T20:39:17.000Z
tests/test_config_handler_resolve_config_file.py
BastiTee/pype-cli
e676ec5d536b6c48c6033c56962bd15687489aaf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """pype.config_handler.resolve_config_file.""" from os import environ, path import pytest from pype.config_handler import (DEFAULT_CONFIG, ConfigResolverSource, PypeConfigHandler) from pype.constants import ENV_CONFIG_FOLDER from pype.exceptions import PypeExc...
43.065574
78
0.665778
a8ac00e43e47a9cabbf7208493dcb6113f881c68
399
py
Python
tests/data/test_data.py
kosuke55/cameramodels
a650d8bffcc40475ca344bc14f6708a8c0366d7e
[ "MIT" ]
9
2020-04-25T08:36:17.000Z
2022-02-16T11:22:34.000Z
tests/data/test_data.py
kosuke55/cameramodels
a650d8bffcc40475ca344bc14f6708a8c0366d7e
[ "MIT" ]
6
2020-08-03T22:02:44.000Z
2020-09-24T15:28:05.000Z
tests/data/test_data.py
kosuke55/cameramodels
a650d8bffcc40475ca344bc14f6708a8c0366d7e
[ "MIT" ]
1
2020-08-04T17:16:39.000Z
2020-08-04T17:16:39.000Z
import unittest from cameramodels.data import kinect_v2_camera_info from cameramodels.data import kinect_v2_image from cameramodels import PinholeCameraModel class TestData(unittest.TestCase): def test_kinect_v2_image(self): kinect_v2_image() def test_kinect_v2_camera_info(self): info_path ...
24.9375
52
0.794486
c9adce2981b4ae4361facdb46a0e7485c1efe363
5,474
py
Python
tests/test_converters/test_all.py
eli-schwartz/dephell
f3e07b497e3ad7998e563b1a4c5ad9f023834d36
[ "MIT" ]
null
null
null
tests/test_converters/test_all.py
eli-schwartz/dephell
f3e07b497e3ad7998e563b1a4c5ad9f023834d36
[ "MIT" ]
null
null
null
tests/test_converters/test_all.py
eli-schwartz/dephell
f3e07b497e3ad7998e563b1a4c5ad9f023834d36
[ "MIT" ]
null
null
null
# external import attr import pytest # built-in from pathlib import Path # project from dephell import converters from dephell.controllers import Graph from dephell.models import Requirement from dephell.repositories import WareHouseRepo @pytest.mark.parametrize('converter, path', [ (converters.PIPConverter(loc...
42.107692
119
0.673182
6c780284cb6d511c1cb12a84626345f0c6749688
338
py
Python
bdtr/__init__.py
ffreemt/baidu-tr-free
d0f2400d1f23f3a6af850cc0813b0e107376a3b7
[ "MIT" ]
1
2019-07-17T09:23:27.000Z
2019-07-17T09:23:27.000Z
bdtr/__init__.py
ffreemt/baidu-tr-free
d0f2400d1f23f3a6af850cc0813b0e107376a3b7
[ "MIT" ]
2
2019-11-28T11:29:00.000Z
2021-02-28T02:33:11.000Z
bdtr/__init__.py
ffreemt/baidu-tr-free
d0f2400d1f23f3a6af850cc0813b0e107376a3b7
[ "MIT" ]
1
2019-10-17T00:35:38.000Z
2019-10-17T00:35:38.000Z
from .bdtr import bdtr, GTK # , TOKEN, BAIDUID from .get_baiduid_token import get_baiduid_token from .js2py_sign import js2py_sign # version__ = '0.0.4' # version__ = '0.0.5' # 2019-11-21 # version = '0.0.7' # 2020-02-12 # version__ = '0.0.9' # 2020-02-27 __version__ = '0.0.10' # 2020-02-28 VERSION = tuple(__vers...
30.727273
48
0.674556
bade01f42d87957c6e87d48ac0caeb6aa6a28571
5,191
py
Python
homeassistant/components/mysensors/cover.py
yarikoptic/hass-core-gtdiehl-iotawatt
32dfaccf1fab5ce6d7ab73a3dee7c9aa4c93351d
[ "Apache-2.0" ]
1
2020-12-18T12:23:04.000Z
2020-12-18T12:23:04.000Z
homeassistant/components/mysensors/cover.py
yarikoptic/hass-core-gtdiehl-iotawatt
32dfaccf1fab5ce6d7ab73a3dee7c9aa4c93351d
[ "Apache-2.0" ]
46
2021-01-06T07:05:22.000Z
2022-03-31T06:05:25.000Z
homeassistant/components/mysensors/cover.py
krzkowalczyk/home-assistant
513685bbeacca2c758d3ca33b337da3b7e72dd1d
[ "Apache-2.0" ]
1
2020-10-26T08:05:39.000Z
2020-10-26T08:05:39.000Z
"""Support for MySensors covers.""" from enum import Enum, unique import logging from typing import Callable from homeassistant.components import mysensors from homeassistant.components.cover import ATTR_POSITION, DOMAIN, CoverEntity from homeassistant.components.mysensors import on_unload from homeassistant.component...
34.377483
80
0.650356
f404fb4634a8bca9d6046015a02acdd22258da58
1,670
py
Python
utils/Keychain.py
XDwightsBeetsX/discord-bots
2ceaad8a2c63cecfdf063dbf5afcf64e18447814
[ "MIT" ]
null
null
null
utils/Keychain.py
XDwightsBeetsX/discord-bots
2ceaad8a2c63cecfdf063dbf5afcf64e18447814
[ "MIT" ]
null
null
null
utils/Keychain.py
XDwightsBeetsX/discord-bots
2ceaad8a2c63cecfdf063dbf5afcf64e18447814
[ "MIT" ]
null
null
null
# A compact way of storing Key-Values # Able to check against the globals.REQUIRED Key-Values from .globals import * class Keychain(object): """ An easier way to keep track of important keys that might be used against you. - `addKeyValue` - update `self.KeysDict` - `hasAllRequired` - check if `se...
31.509434
93
0.616168
864732180d0ad3e20366df5ecef5d8b437a7edf4
401
py
Python
lecture_03/204_robot_from_github.py
farzanehesk/COMPAS-II-FS2022
857eb40000f0532d0c04689331eadefd38dce6b7
[ "MIT" ]
11
2022-01-24T15:07:15.000Z
2022-03-29T12:58:05.000Z
lecture_03/204_robot_from_github.py
farzanehesk/COMPAS-II-FS2022
857eb40000f0532d0c04689331eadefd38dce6b7
[ "MIT" ]
4
2022-03-16T06:06:45.000Z
2022-03-29T22:59:11.000Z
lecture_03/204_robot_from_github.py
farzanehesk/COMPAS-II-FS2022
857eb40000f0532d0c04689331eadefd38dce6b7
[ "MIT" ]
20
2022-03-02T10:36:41.000Z
2022-03-09T00:12:33.000Z
from compas.robots import GithubPackageMeshLoader from compas.robots import RobotModel # Select Github repository, package and branch where the model is stored r = "ros-industrial/abb" p = "abb_irb6600_support" b = "kinetic-devel" github = GithubPackageMeshLoader(r, p, b) urdf = github.load_urdf("irb6640.urdf") # Cr...
25.0625
72
0.785536
3bb42860eecb21e8692261c4410247a1e52b8a0f
980
py
Python
src/contacts/migrations/0001_initial.py
pubuser7/btre-project
b0bc7591722285d955a31d898d14fcbe1158a8d3
[ "MIT" ]
null
null
null
src/contacts/migrations/0001_initial.py
pubuser7/btre-project
b0bc7591722285d955a31d898d14fcbe1158a8d3
[ "MIT" ]
1
2019-12-04T23:14:28.000Z
2019-12-04T23:14:28.000Z
src/contacts/migrations/0001_initial.py
pubuser7/btre-project
b0bc7591722285d955a31d898d14fcbe1158a8d3
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-06-20 12:06 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contact', fields=[ ...
32.666667
114
0.579592
4e8066d46bdb7acc9660a55d0896f44b5fd0aab5
2,930
py
Python
modules/nn/attention.py
notani/ntua-slp-semeval2018
2d6e03d37210a91fbc0ff99f44a4449abc59210c
[ "MIT" ]
84
2018-05-25T08:26:38.000Z
2021-12-23T06:15:08.000Z
modules/nn/attention.py
notani/ntua-slp-semeval2018
2d6e03d37210a91fbc0ff99f44a4449abc59210c
[ "MIT" ]
16
2018-06-06T15:09:45.000Z
2022-01-15T09:17:14.000Z
modules/nn/attention.py
notani/ntua-slp-semeval2018
2d6e03d37210a91fbc0ff99f44a4449abc59210c
[ "MIT" ]
33
2018-06-05T18:13:29.000Z
2022-02-04T00:54:12.000Z
from torch import nn, torch from torch.autograd import Variable from config import DEVICE class SelfAttention(nn.Module): def __init__(self, attention_size, batch_first=False, layers=1, dropout=.0, non_linearity="tanh"): super(SelfAttent...
33.295455
76
0.511945
51ba4786629983fb05ee644d5c034ae8f699115f
660
py
Python
tilosutils/consume_with_pool.py
dertilo/util
bb0e23c84bffc781035f7251d5133d767127e09b
[ "MIT" ]
null
null
null
tilosutils/consume_with_pool.py
dertilo/util
bb0e23c84bffc781035f7251d5133d767127e09b
[ "MIT" ]
null
null
null
tilosutils/consume_with_pool.py
dertilo/util
bb0e23c84bffc781035f7251d5133d767127e09b
[ "MIT" ]
null
null
null
import multiprocessing from typing import Callable from typing import Iterable from typing import Optional consumer: Optional[Callable] = None def init_fun(consumer_supplier): global consumer # pylint: disable=global-statement consumer = consumer_supplier() def worker_fun(datum): global consumer # py...
27.5
84
0.766667
97dfb12330ebb8a202fb5dea0eb082c24aad73ce
1,148
py
Python
md/auction_json.py
luke777/marketdesign
9d70dfcb31d327599e5e841879bb294108957e56
[ "MIT" ]
null
null
null
md/auction_json.py
luke777/marketdesign
9d70dfcb31d327599e5e841879bb294108957e56
[ "MIT" ]
null
null
null
md/auction_json.py
luke777/marketdesign
9d70dfcb31d327599e5e841879bb294108957e56
[ "MIT" ]
null
null
null
from md.auction import Bid, Bidder, Problem from json import JSONEncoder class ObjectEncoder(JSONEncoder): def default(self, o): dct = o.__dict__ # Remove None keys with value None return {k: v for k, v in dct.items() if v is not None} def decode_bid(dct): for k in ['label', 'winning...
28.7
106
0.607143
25bc18f312ce3b46e19ce88b01c7174cab5d6326
991
py
Python
rookie/mysite/migrations/0040_roleinfo.py
chen1932390299/drf-backend-platform
80c2fb56c5c3c1456196d2415e3173600d190457
[ "Apache-2.0" ]
1
2021-07-02T09:05:51.000Z
2021-07-02T09:05:51.000Z
rookie/mysite/migrations/0040_roleinfo.py
chen1932390299/drf-backend-platform
80c2fb56c5c3c1456196d2415e3173600d190457
[ "Apache-2.0" ]
null
null
null
rookie/mysite/migrations/0040_roleinfo.py
chen1932390299/drf-backend-platform
80c2fb56c5c3c1456196d2415e3173600d190457
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.2 on 2021-08-02 19:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mysite', '0039_auto_20210802_1651'), ] operations = [ migrations.CreateModel( name='RoleInfo', fields=[ ...
34.172414
114
0.540868
60dbf6bb8e77a9f96db2c1fa388560e26030b696
916
py
Python
yozuch/generators/post_item_collection.py
akrylysov/yozuch
0eb6206c8c2fff806a8901456cfc4cc338052a95
[ "BSD-3-Clause" ]
32
2015-02-01T16:35:21.000Z
2022-03-14T00:50:32.000Z
yozuch/generators/post_item_collection.py
akrylysov/yozuch
0eb6206c8c2fff806a8901456cfc4cc338052a95
[ "BSD-3-Clause" ]
6
2015-06-19T10:58:35.000Z
2019-04-07T16:38:01.000Z
yozuch/generators/post_item_collection.py
akrylysov/yozuch
0eb6206c8c2fff806a8901456cfc4cc338052a95
[ "BSD-3-Clause" ]
1
2017-01-21T18:51:11.000Z
2017-01-21T18:51:11.000Z
from yozuch import logger from yozuch.generators.template import TemplateEntry, TemplateGenerator from yozuch.utils import format_url_from_object class PostItemCollectionGenerator(TemplateGenerator): def __init__(self, collection_name, item_name, url_template, name, template): super().__init__(url_templa...
41.636364
104
0.700873
3e2859ff2973a330cf0e66810fd9edfb80942c3d
4,056
py
Python
ucsmsdk/mometa/fabric/FabricVConProfile.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/fabric/FabricVConProfile.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/fabric/FabricVConProfile.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for FabricVConProfile ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class FabricVConProfileConsts: INT_ID_NONE = "none" MEZZ_MAPPING_LINEAR_ORDERED = "linear-ordered" ...
59.647059
304
0.655079
8d14e48b03130c4c6aea357e823d649935eff273
1,433
py
Python
docs/source/reading_rdf/add_from_string_python.py
aram148/libOmexMeta
331a0a48570a212aaa2b6cb3fe72b9f43ac828af
[ "Apache-2.0" ]
null
null
null
docs/source/reading_rdf/add_from_string_python.py
aram148/libOmexMeta
331a0a48570a212aaa2b6cb3fe72b9f43ac828af
[ "Apache-2.0" ]
null
null
null
docs/source/reading_rdf/add_from_string_python.py
aram148/libOmexMeta
331a0a48570a212aaa2b6cb3fe72b9f43ac828af
[ "Apache-2.0" ]
null
null
null
from pyomexmeta import RDF, eUriType rdf_str1 = """@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix OMEXlib: <http://omex-library.org/> . @prefix myOMEX: <http://omex-library.org/NewOmex.omex/> . @prefix local: <http://omex-library.org/NewOmex.omex/New...
49.413793
135
0.628053
949a10583e1009e0023beac9ad4f0239c69c328e
5,097
py
Python
examples/semi-supervised-crossencoder/lib/evaluation.py
Aatlantise/sentence-transformers
d02411e378acc996aae9b7a13a73eaa1bb1ec298
[ "Apache-2.0" ]
null
null
null
examples/semi-supervised-crossencoder/lib/evaluation.py
Aatlantise/sentence-transformers
d02411e378acc996aae9b7a13a73eaa1bb1ec298
[ "Apache-2.0" ]
null
null
null
examples/semi-supervised-crossencoder/lib/evaluation.py
Aatlantise/sentence-transformers
d02411e378acc996aae9b7a13a73eaa1bb1ec298
[ "Apache-2.0" ]
null
null
null
import math import numpy as np from sklearn.metrics.cluster import v_measure_score, adjusted_rand_score class ClusterEvaluation: ''' groundtruthlabels and predicted_clusters should be two list, for example: groundtruthlabels = [0, 0, 1, 1], that means the 0th and 1th data is in cluster 0, and the 2th ...
37.20438
118
0.633706
02b2ef4166921e6c5b320e6204a4b2808e4fe58a
2,559
py
Python
super6_recolector.py
nelson-lz/collect-prices
28c723a5ccda825f7c694b021c338fbf0a248754
[ "MIT" ]
null
null
null
super6_recolector.py
nelson-lz/collect-prices
28c723a5ccda825f7c694b021c338fbf0a248754
[ "MIT" ]
1
2021-11-27T14:24:40.000Z
2021-11-27T14:24:40.000Z
super6_recolector.py
nelson-lz/collect-prices
28c723a5ccda825f7c694b021c338fbf0a248754
[ "MIT" ]
null
null
null
import datos import time import requests from bs4 import BeautifulSoup PAGE_INDEX ="?pageindex=" url = "https://www.superseis.com.py/default.aspx" enlaces_categorias = {} enlaces_categorias['links']= [] def recorrer_pagina_categoria(link_cateogrie): for i in range(50): req = requests.get(link_cateogrie+P...
35.541667
92
0.611958
a348d60d7110c4dfb6d82a4ce4b0cab17f3aa3a1
944
py
Python
models/tf/lstm.py
iCGY96/Model-Pivot
bfe0fde3c58ab701fbf8c7861954fed240684e90
[ "MIT" ]
11
2018-12-06T14:20:28.000Z
2020-03-18T14:38:32.000Z
models/tf/lstm.py
iCGY96/Model-Pivot
bfe0fde3c58ab701fbf8c7861954fed240684e90
[ "MIT" ]
4
2018-12-12T07:05:55.000Z
2020-01-28T23:12:48.000Z
models/tf/lstm.py
iCGY96/Model-Pivot
bfe0fde3c58ab701fbf8c7861954fed240684e90
[ "MIT" ]
2
2018-12-11T12:37:44.000Z
2020-03-26T08:23:19.000Z
import numpy as np import tensorflow as tf BATCH_SIZE = 1 LSTM_UNITS = 128 def test(x, model_path): x = np.reshape(x, (-1, 224 * 224 * 3)) with tf.variable_scope('LSTM'): data_input = tf.placeholder(name='input', dtype=tf.float32, ...
32.551724
71
0.611229
029f3188297bea55dff8051f2d10bc0e66039cd9
38,454
py
Python
external/mysql/mysql-connector-python-8.0.11/lib/mysqlx/statement.py
Army-Ant/ArmyAntServer
3e292b9d38dd53807b03748fc767970dc8adbfb0
[ "BSD-3-Clause" ]
1
2018-05-30T01:38:23.000Z
2018-05-30T01:38:23.000Z
Others/Source/17/17.1/dbapp/mysqlx/statement.py
silence0201/Learn-Python
662da7c0e74221cedb445ba17d5cb1cd3af41c86
[ "MIT" ]
null
null
null
Others/Source/17/17.1/dbapp/mysqlx/statement.py
silence0201/Learn-Python
662da7c0e74221cedb445ba17d5cb1cd3af41c86
[ "MIT" ]
null
null
null
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, as # published by the Free Software Foundation. # # This program is also distributed with certain s...
33.672504
80
0.575571
930cbefd5fa136ea29bdbfba76207beacd46d430
303
py
Python
django_stomp/exceptions.py
juntossomosmais/django-stomp
65e7cb86f8f6e2336a2739df8f33f985c9b4c792
[ "MIT" ]
32
2019-06-10T13:24:11.000Z
2021-12-17T21:00:41.000Z
django_stomp/exceptions.py
juntossomosmais/django-stomp
65e7cb86f8f6e2336a2739df8f33f985c9b4c792
[ "MIT" ]
26
2019-12-17T12:51:00.000Z
2022-02-16T16:13:14.000Z
django_stomp/exceptions.py
juntossomosmais/django-stomp
65e7cb86f8f6e2336a2739df8f33f985c9b4c792
[ "MIT" ]
1
2021-09-11T03:55:30.000Z
2021-09-11T03:55:30.000Z
class CorrelationIdNotProvidedException(Exception): pass class DjangoStompImproperlyConfigured(Exception): pass class DjangoStompIncorrectUse(Exception): """ Raised when Django stomp has been invoked in a wrong manner such as less arguments than it needs, etc. """ pass
18.9375
71
0.735974