hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
b70ca4490939d9e8825c9cbd533fc6d9aa4185a5
1,847
py
Python
app/models.py
michael-huber2772/portfolio-dashboard
cec332529c977cd0b12fdeaaf6d13f2642837dbc
[ "MIT" ]
null
null
null
app/models.py
michael-huber2772/portfolio-dashboard
cec332529c977cd0b12fdeaaf6d13f2642837dbc
[ "MIT" ]
null
null
null
app/models.py
michael-huber2772/portfolio-dashboard
cec332529c977cd0b12fdeaaf6d13f2642837dbc
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ Copyright (c) 2019 - present AppSeed.us """ from django.db import models from django.utils import timezone from django.contrib.auth.models import User from datetime import datetime # Create your models here. class Customer(models.Model): customer_name = models.CharField(max_length=2...
29.31746
86
0.715755
b9fd6383feb785cc430a07f6bc1e0a9b74bd0b62
3,770
py
Python
tests/test_customisation.py
Pijuli/django-jazzmin
e3f9d45183d58f78bf4c6793969490631a84681d
[ "MIT" ]
2
2022-03-13T09:07:11.000Z
2022-03-17T11:50:05.000Z
tests/test_customisation.py
Pijuli/django-jazzmin
e3f9d45183d58f78bf4c6793969490631a84681d
[ "MIT" ]
null
null
null
tests/test_customisation.py
Pijuli/django-jazzmin
e3f9d45183d58f78bf4c6793969490631a84681d
[ "MIT" ]
null
null
null
import pytest from bs4 import BeautifulSoup from django.urls import reverse from jazzmin.settings import CHANGEFORM_TEMPLATES from jazzmin.templatetags.jazzmin import get_sections from .test_app.library.books.admin import BookAdmin from .test_app.library.factories import BookFactory, UserFactory @pytest.mark.django_...
33.660714
107
0.738727
66cc0c6831fa2ceb97c505ddb25d6fb1c1186d73
2,411
py
Python
misc/logistic_loss.py
lnsndn/neural-word-search
cae82593a546590ff272b6062004d66dd2497337
[ "MIT" ]
5
2018-12-15T00:02:05.000Z
2021-07-06T14:40:32.000Z
misc/logistic_loss.py
lnsndn/neural-word-search
cae82593a546590ff272b6062004d66dd2497337
[ "MIT" ]
4
2019-07-31T15:43:41.000Z
2022-03-09T09:57:48.000Z
misc/logistic_loss.py
lnsndn/neural-word-search
cae82593a546590ff272b6062004d66dd2497337
[ "MIT" ]
7
2019-01-04T10:50:20.000Z
2022-01-18T18:03:01.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Dec 19 22:59:42 2017 @author: tomas """ import torch from torch.autograd import Variable """ One-vs-all logistic loss; each example has a single positive class. On the forward pass we take: - input: Tensor of shape (N, C) giving scores for C classes ...
32.581081
87
0.639983
f841f717f85dd20c47ca64385945d00be8e5a9bb
797
py
Python
python/sync.py
SubProto/raybot
a955fc497010c37d2c0f7d1c4975ae1cf8125cee
[ "MIT" ]
null
null
null
python/sync.py
SubProto/raybot
a955fc497010c37d2c0f7d1c4975ae1cf8125cee
[ "MIT" ]
2
2016-09-02T04:08:16.000Z
2016-09-02T04:08:53.000Z
python/sync.py
SubProto/raybot
a955fc497010c37d2c0f7d1c4975ae1cf8125cee
[ "MIT" ]
null
null
null
#!/usr/bin/python import serial import time import sys if len(sys.argv) != 4: print "Usage: %s <motor code> <run time> <serial port>" % sys.argv[0] sys.exit() def getResponse(): s = ser.readline() print "RECV: " print s if "NMI:" in s: print "NMI signal received" sys.exit() ...
18.113636
70
0.611041
450d3658eeca6cd0d9a86505b66932f4c4cf5622
618
py
Python
tests/project/gaming/migrations/0003_optional_profile_player.py
DoctorJohn/django-admin-anchors
5e2d317e42e46b6a6556c1dc2f9984787ab9b945
[ "MIT" ]
4
2021-04-02T02:51:37.000Z
2022-02-01T19:06:20.000Z
tests/project/gaming/migrations/0003_optional_profile_player.py
DoctorJohn/django-admin-anchors
5e2d317e42e46b6a6556c1dc2f9984787ab9b945
[ "MIT" ]
null
null
null
tests/project/gaming/migrations/0003_optional_profile_player.py
DoctorJohn/django-admin-anchors
5e2d317e42e46b6a6556c1dc2f9984787ab9b945
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-08 12:35 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("gaming", "0002_optional_team_captain"), ] operations = [ migrations.AlterField( model_name="pro...
23.769231
60
0.553398
6248489509fe46349a20beaece8f367bc284c443
71,861
py
Python
tensorflow_federated/python/core/impl/transformations.py
jpgard/federated-1
1d619208e3bf3b702beb97e64bb955de24320c55
[ "Apache-2.0" ]
1
2019-10-10T06:19:38.000Z
2019-10-10T06:19:38.000Z
tensorflow_federated/python/core/impl/transformations.py
jpgard/federated-1
1d619208e3bf3b702beb97e64bb955de24320c55
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/impl/transformations.py
jpgard/federated-1
1d619208e3bf3b702beb97e64bb955de24320c55
[ "Apache-2.0" ]
2
2019-10-10T06:19:41.000Z
2021-01-28T03:06:55.000Z
# Lint as: python3 # Copyright 2018, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
40.056299
84
0.698794
63ebb3707b33ed2b5a293abbc63eaee09278fd47
22,781
py
Python
tests/test_repo.py
onecommons/giterop
9d9c6730ac5bce63f26dd1fd1e151006bc8230dd
[ "MIT" ]
null
null
null
tests/test_repo.py
onecommons/giterop
9d9c6730ac5bce63f26dd1fd1e151006bc8230dd
[ "MIT" ]
null
null
null
tests/test_repo.py
onecommons/giterop
9d9c6730ac5bce63f26dd1fd1e151006bc8230dd
[ "MIT" ]
null
null
null
import unittest import os import traceback import six from click.testing import CliRunner from unfurl.__main__ import cli, _latestJobs from unfurl.localenv import LocalEnv from unfurl.repo import ( split_git_url, is_url_or_git_path, RepoView, normalize_git_url, GitRepo, ) from git import Repo from u...
36.743548
120
0.528379
c6405819725448cbb280780109423b9946bfb9d5
3,525
py
Python
Defensordelpueblo_bot.py
Joel1844/bot_twitter_telegram
e2bfa0f6a5decea210c00b9ee3c4a9026461d0f2
[ "MIT" ]
null
null
null
Defensordelpueblo_bot.py
Joel1844/bot_twitter_telegram
e2bfa0f6a5decea210c00b9ee3c4a9026461d0f2
[ "MIT" ]
null
null
null
Defensordelpueblo_bot.py
Joel1844/bot_twitter_telegram
e2bfa0f6a5decea210c00b9ee3c4a9026461d0f2
[ "MIT" ]
null
null
null
import logging from telegram import Update, ForceReply from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackContext import twint from os import remove from os import path import datetime import pandas as pd import nest_asyncio import time nest_asyncio.apply() # Enable logging logging.basi...
32.638889
258
0.674043
a835c7806b661727b7cb4a53534adae8f5f30deb
14,582
py
Python
examples/structured_data/deep_neural_decision_forests.py
IMvision12/keras-io
44997b0610db078e1109d0dbca58db8319dbc744
[ "Apache-2.0" ]
null
null
null
examples/structured_data/deep_neural_decision_forests.py
IMvision12/keras-io
44997b0610db078e1109d0dbca58db8319dbc744
[ "Apache-2.0" ]
null
null
null
examples/structured_data/deep_neural_decision_forests.py
IMvision12/keras-io
44997b0610db078e1109d0dbca58db8319dbc744
[ "Apache-2.0" ]
1
2022-01-21T11:34:34.000Z
2022-01-21T11:34:34.000Z
""" Title: Classification with Neural Decision Forests Author: [Khalid Salama](https://www.linkedin.com/in/khalid-salama-24403144/) Date created: 2021/01/15 Last modified: 2021/01/15 Description: How to train differentiable decision trees for end-to-end learning in deep neural networks. """ """ ## Introduction This e...
33.292237
142
0.699287
6267664955e6b1624cea7fb7bd68d04ba13065f2
1,053
py
Python
Source/FaceRecognition/Domain/Connection.py
robertkarol/ReDe-Multiagent-Face-Recognition-System
df17cebecc51b2fafb01e07a9bb68e9e4e04163a
[ "MIT" ]
null
null
null
Source/FaceRecognition/Domain/Connection.py
robertkarol/ReDe-Multiagent-Face-Recognition-System
df17cebecc51b2fafb01e07a9bb68e9e4e04163a
[ "MIT" ]
7
2020-04-24T08:22:20.000Z
2021-05-21T16:11:52.000Z
Source/FaceRecognition/Domain/Connection.py
robertkarol/ReDe-Multiagent-Face-Recognition-System
df17cebecc51b2fafb01e07a9bb68e9e4e04163a
[ "MIT" ]
1
2020-04-26T15:05:07.000Z
2020-04-26T15:05:07.000Z
class Connection: def __init__(self, conn_id, reader_stream, writer_stream, byte_order='big'): self.__conn_id = conn_id self.__reader_stream = reader_stream self.__writer_stream = writer_stream self.__byte_order = byte_order @property def connection_id(self): return ...
30.085714
98
0.662868
4fd6ad005849ac2b841b28f1322899f3ce794655
3,385
py
Python
src/poetry/publishing/publisher.py
anthonymichaelclark/poetry
eb27f816f643c905eb8e8086691454d4490e3dfe
[ "MIT" ]
null
null
null
src/poetry/publishing/publisher.py
anthonymichaelclark/poetry
eb27f816f643c905eb8e8086691454d4490e3dfe
[ "MIT" ]
1
2022-02-22T05:52:32.000Z
2022-02-22T05:52:32.000Z
src/poetry/publishing/publisher.py
daobook/poetry
1732d4c14d97de8da4d25e9f4714bcd47c63329f
[ "MIT" ]
null
null
null
from __future__ import annotations import logging from typing import TYPE_CHECKING from poetry.publishing.uploader import Uploader from poetry.utils.authenticator import Authenticator from poetry.utils.helpers import get_cert from poetry.utils.helpers import get_client_cert if TYPE_CHECKING: from pathlib impor...
32.548077
88
0.605318
c658098f59007107ed0093d954a6b16cd5ab6344
3,126
py
Python
detectron2/data/transforms/albumentations/external.py
KUASWoodyLIN/detectron2
9a444e03ec830fc306ff85e44072956e5122fa4c
[ "Apache-2.0" ]
null
null
null
detectron2/data/transforms/albumentations/external.py
KUASWoodyLIN/detectron2
9a444e03ec830fc306ff85e44072956e5122fa4c
[ "Apache-2.0" ]
null
null
null
detectron2/data/transforms/albumentations/external.py
KUASWoodyLIN/detectron2
9a444e03ec830fc306ff85e44072956e5122fa4c
[ "Apache-2.0" ]
1
2021-12-28T02:26:08.000Z
2021-12-28T02:26:08.000Z
import numpy as np from fvcore.transforms.transform import Transform, NoOpTransform from ..augmentation import Augmentation class AlbumentationsTransform(Transform): def __init__(self, aug): self.aug = aug self.params = aug.get_params() def apply_coords(self, coords: np.ndarray) -> np.ndarray...
35.522727
101
0.649712
d19abe45e4c63771d74b64d0ef61090ea6a418f3
5,026
py
Python
blog/models.py
demostheneslld/wevebeeneverywhere
6fc6bee50099a0eb0dfde0818d227548ea954b81
[ "MIT" ]
null
null
null
blog/models.py
demostheneslld/wevebeeneverywhere
6fc6bee50099a0eb0dfde0818d227548ea954b81
[ "MIT" ]
5
2021-03-30T13:46:02.000Z
2022-03-12T01:03:44.000Z
blog/models.py
demostheneslld/wevebeeneverywhere
6fc6bee50099a0eb0dfde0818d227548ea954b81
[ "MIT" ]
null
null
null
""" Definition of models. """ from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from django.utils import timezone # USER RELATED from django.contrib.auth.models import User from blog.email_helper import send_email User._meta.get_field('email')._unique = Tr...
34.902778
194
0.717668
0364724ab4aa1530c8318387ad8f42061e7ae9dd
2,539
py
Python
customTools/customLayout.py
wqslucifer/MLTools
103925f4f7cc4c149bd72d4adf51eb93a95cd1fc
[ "Apache-2.0" ]
null
null
null
customTools/customLayout.py
wqslucifer/MLTools
103925f4f7cc4c149bd72d4adf51eb93a95cd1fc
[ "Apache-2.0" ]
null
null
null
customTools/customLayout.py
wqslucifer/MLTools
103925f4f7cc4c149bd72d4adf51eb93a95cd1fc
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtCore import QPoint, QRect, QSize, Qt from PyQt5.QtWidgets import QLayout, QSizePolicy class FlowLayout(QLayout): def __init__(self, parent=None, margin=0, spacing=-1): super(FlowLayout, self).__init__(parent) if parent is not None: self.setContentsMargins(margin, margin, m...
30.22619
126
0.587239
edaf9907d73fbf56563a7b73dbf0180a9a82c494
866
py
Python
app/core/admin.py
rikkhanna/dj-recipe-app-api
626f9762666aae1f243be0035a66be5dc0986a51
[ "MIT" ]
null
null
null
app/core/admin.py
rikkhanna/dj-recipe-app-api
626f9762666aae1f243be0035a66be5dc0986a51
[ "MIT" ]
null
null
null
app/core/admin.py
rikkhanna/dj-recipe-app-api
626f9762666aae1f243be0035a66be5dc0986a51
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from core import models class UserAdmin(BaseUserAdmin): ordering = ["id"] list_display = ["email", "name"] # define sections for...
27.935484
69
0.583141
6f9c5a3471822f696865dae90e037e0da7ff030e
7,038
py
Python
textencodefunc.py
therealproprogrammer/Text-Encoding-Kit-DEPRECATED-
ea4626573e35685e79ec3b3226563b5c7146d418
[ "MIT" ]
null
null
null
textencodefunc.py
therealproprogrammer/Text-Encoding-Kit-DEPRECATED-
ea4626573e35685e79ec3b3226563b5c7146d418
[ "MIT" ]
1
2017-06-25T03:19:49.000Z
2017-06-25T03:19:49.000Z
textencodefunc.py
therealproprogrammer/Text-Encoding-Kit
ea4626573e35685e79ec3b3226563b5c7146d418
[ "MIT" ]
null
null
null
def look_up_word_value(words): """ --------------------------------------------------------------------- DESCRIPTION Translates the word (string) array into a floating-point value array. --------------------------------------------------------------------- PARAMETERS words (string array): Th...
35.014925
125
0.573743
083ba8dc35d6e6fa463e65c08cc32e58c6abf152
12,183
py
Python
mozi/train_object.py
hycis/Mozi
7f2eccbe3169c10d231e07edf8bc650039fa4eb2
[ "MIT" ]
122
2015-07-24T09:29:06.000Z
2022-02-22T02:51:00.000Z
mozi/train_object.py
hycis/Mozi
7f2eccbe3169c10d231e07edf8bc650039fa4eb2
[ "MIT" ]
4
2015-07-27T04:37:11.000Z
2020-04-04T08:05:00.000Z
mozi/train_object.py
hycis/Mozi
7f2eccbe3169c10d231e07edf8bc650039fa4eb2
[ "MIT" ]
27
2015-07-24T12:59:35.000Z
2020-04-14T00:21:43.000Z
import theano import theano.tensor as T floatX = theano.config.floatX import numpy as np import time, datetime import sys import logging internal_logger = logging.getLogger(__name__) logging.basicConfig(level=logging.DEBUG) from mozi.log import Log from mozi.utils.theano_utils import shared_zeros from mozi.utils....
41.020202
119
0.554872
b5b460fb427176499d24692dd9787ea513b1609f
587
py
Python
song_downloader.py
pauldardeau/cloud-jukebox
3e82e3e9ab9bf5bbdab6bdf65e158638456e05cc
[ "BSD-3-Clause" ]
1
2016-11-01T16:01:43.000Z
2016-11-01T16:01:43.000Z
song_downloader.py
pauldardeau/cloud-jukebox
3e82e3e9ab9bf5bbdab6bdf65e158638456e05cc
[ "BSD-3-Clause" ]
24
2015-11-26T03:37:24.000Z
2022-01-12T12:27:21.000Z
song_downloader.py
pauldardeau/cloud-jukebox
3e82e3e9ab9bf5bbdab6bdf65e158638456e05cc
[ "BSD-3-Clause" ]
null
null
null
import threading class SongDownloader(threading.Thread): def __init__(self, jb, list_songs): super(SongDownloader, self).__init__() self.jukebox = jb self.list_songs = list_songs def run(self): if self.jukebox is not None and self.list_songs is not None: self.jukeb...
30.894737
68
0.603066
fea6917694c97f63ac94a537837d37043a44f60d
1,357
py
Python
app/migrations/0006_friendrequest_remotefriend_remotefriendrequest.py
olivaC/group-cmput404-project
bc5c9429d35f97f07d6550196eab1a1193b7e983
[ "MIT" ]
2
2019-02-12T01:02:35.000Z
2019-11-05T23:33:16.000Z
app/migrations/0006_friendrequest_remotefriend_remotefriendrequest.py
olivaC/group-cmput404-project
bc5c9429d35f97f07d6550196eab1a1193b7e983
[ "MIT" ]
55
2019-02-19T19:16:25.000Z
2022-01-13T01:07:50.000Z
app/migrations/0006_friendrequest_remotefriend_remotefriendrequest.py
olivaC/group-cmput404-project
bc5c9429d35f97f07d6550196eab1a1193b7e983
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-04-03 03:21 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('app', '0005_remotecomment'), ] operations = [ migrations.CreateModel( name='RemoteF...
39.911765
143
0.616065
39450b9cd0aa0ffcf9cc7073dbd98d92ad562c33
482
py
Python
env/lib/python3.8/site-packages/plotly/validators/parcoords/line/colorbar/_tickvals.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/parcoords/line/colorbar/_tickvals.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/parcoords/line/colorbar/_tickvals.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__( self, plotly_name="tickvals", parent_name="parcoords.line.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, ...
32.133333
85
0.649378
f15e44b1a08302c42bb4d3af1a815e42372aabd5
3,045
py
Python
myspiders/spider_hr/hfbank_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
myspiders/spider_hr/hfbank_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
myspiders/spider_hr/hfbank_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
from myspiders.ruia import JsonField, Item, Spider, Bs4HtmlField, Bs4AttrField, Bs4TextField from urllib.parse import urlencode, urlparse, urljoin, quote import re from constants import BankDict from config import Target import os ''' Ids: "https://applyjob.chinahr.com/apply/job/wish?jobId=5ebca903c7fd7a04d9bcb256&pro...
30.148515
120
0.655172
ea60d0e3e19f46a64050171bbffa62ed4e48ed32
9,639
py
Python
pymatflow/qe/post/scf.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
6
2020-03-06T16:13:08.000Z
2022-03-09T07:53:34.000Z
pymatflow/qe/post/scf.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-10-02T02:23:08.000Z
2021-11-08T13:29:37.000Z
pymatflow/qe/post/scf.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-07-10T16:28:14.000Z
2021-07-10T16:28:14.000Z
# ============================================================================== import datetime import matplotlib.pyplot as plt from pymatflow.base.atom import Atom from pymatflow.base.xyz import BaseXyz class ScfOut: """ """ def __init__(self): """ output is the output file o...
66.020548
170
0.549642
62e454a11e29dcc45eb7f4faf46acb2c2dbea70d
246
py
Python
netask/serializer.py
pearcore/vsite
bc38213241c2dfb5939599dc02876ed4716ae6d1
[ "Apache-2.0" ]
null
null
null
netask/serializer.py
pearcore/vsite
bc38213241c2dfb5939599dc02876ed4716ae6d1
[ "Apache-2.0" ]
null
null
null
netask/serializer.py
pearcore/vsite
bc38213241c2dfb5939599dc02876ed4716ae6d1
[ "Apache-2.0" ]
null
null
null
from rest_framework import serializers from netask.models import Config class ConfigSerializer(serializers.ModelSerializer): class Meta: model = Config fields = ('id', 'Name', 'CreateDate', 'stResult','itResult','jsResult')
27.333333
79
0.715447
9d6ae926687e3c117301bc3c3c7d453cb80e01c4
2,091
py
Python
intake/catalog/tests/test_auth_integration.py
raybellwaves/intake
8acc70d9adb19344ca15dee948315828b61e87b2
[ "BSD-2-Clause" ]
578
2019-02-22T11:45:28.000Z
2022-03-31T08:32:22.000Z
intake/catalog/tests/test_auth_integration.py
raybellwaves/intake
8acc70d9adb19344ca15dee948315828b61e87b2
[ "BSD-2-Clause" ]
336
2019-02-21T16:24:33.000Z
2022-03-30T09:23:53.000Z
intake/catalog/tests/test_auth_integration.py
raybellwaves/intake
8acc70d9adb19344ca15dee948315828b61e87b2
[ "BSD-2-Clause" ]
99
2019-02-22T18:31:09.000Z
2022-03-22T03:27:54.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2018, Anaconda, Inc. and Intake contributors # All rights reserved. # # The full license is in the LICENSE file, distributed with this software. #------------------------------------------------------------------------...
24.313953
78
0.653754
e4a806ad4cde136340b16b3dd67113f767af4c9c
1,701
py
Python
airbyte-integrations/bases/source-acceptance-test/setup.py
ravitejasaidus/airbyte
2f7c15a540ad16824ac80f8674e30c63b915a690
[ "MIT" ]
2
2021-08-04T03:17:38.000Z
2021-11-15T10:16:08.000Z
airbyte-integrations/bases/source-acceptance-test/setup.py
ravitejasaidus/airbyte
2f7c15a540ad16824ac80f8674e30c63b915a690
[ "MIT" ]
52
2021-06-11T12:39:05.000Z
2022-03-30T04:59:35.000Z
airbyte-integrations/bases/source-acceptance-test/setup.py
ravitejasaidus/airbyte
2f7c15a540ad16824ac80f8674e30c63b915a690
[ "MIT" ]
1
2021-08-04T03:25:02.000Z
2021-08-04T03:25:02.000Z
# # MIT License # # Copyright (c) 2020 Airbyte # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
33.352941
80
0.72428
48b9578c8f16349293799dfdd13bd1a2e8545bab
10,616
py
Python
object_service/views.py
ehenneken/object_service
8da7be631d5fb962d120d4706ffb5faeeef97757
[ "MIT" ]
null
null
null
object_service/views.py
ehenneken/object_service
8da7be631d5fb962d120d4706ffb5faeeef97757
[ "MIT" ]
1
2017-10-16T19:52:13.000Z
2017-10-16T19:52:13.000Z
object_service/views.py
ehenneken/object_service
8da7be631d5fb962d120d4706ffb5faeeef97757
[ "MIT" ]
null
null
null
from flask import current_app, request from flask_restful import Resource from flask_discoverer import advertise from flask import Response from SIMBAD import get_simbad_data from SIMBAD import do_position_query from SIMBAD import parse_position_string from NED import get_ned_data from NED import get_NED_refcodes from ...
44.233333
140
0.588169
7786501a40951867c432fdde497571fc5e43d066
1,836
py
Python
build-site.py
allisonmargaret/popolwuj
7faacab02ae7cee4d4664b96e6d62eb743dcb9ab
[ "MIT" ]
3
2019-10-27T08:29:09.000Z
2020-07-02T14:27:58.000Z
build-site.py
allisonmargaret/popolwuj
7faacab02ae7cee4d4664b96e6d62eb743dcb9ab
[ "MIT" ]
26
2018-09-21T19:18:04.000Z
2022-03-01T22:10:33.000Z
build-site.py
allisonmargaret/popolwuj
7faacab02ae7cee4d4664b96e6d62eb743dcb9ab
[ "MIT" ]
4
2018-12-17T15:41:13.000Z
2020-10-12T23:00:33.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import configparser from jinja2 import Environment, FileSystemLoader import glob # Import config config = onfig = configparser.ConfigParser() config.read('./config.ini') # Open template parser ENV = Environment(loader=FileSystemLoader('./templates')) # Define assets --...
26.608696
73
0.618192
662965ae465e81e40f94e9dfbd0032b1c4adebd2
4,117
py
Python
hpOneView/resources/storage/sas_logical_jbods.py
doziya/hpeOneView
ef9bee2a0e1529e93bd6e8d84eff07fb8533049d
[ "MIT" ]
107
2015-02-16T12:40:36.000Z
2022-03-09T05:27:58.000Z
hpOneView/resources/storage/sas_logical_jbods.py
doziya/hpeOneView
ef9bee2a0e1529e93bd6e8d84eff07fb8533049d
[ "MIT" ]
148
2015-03-17T16:09:39.000Z
2020-02-09T16:28:06.000Z
hpOneView/resources/storage/sas_logical_jbods.py
doziya/hpeOneView
ef9bee2a0e1529e93bd6e8d84eff07fb8533049d
[ "MIT" ]
80
2015-01-03T22:58:53.000Z
2021-04-16T11:37:03.000Z
# -*- coding: utf-8 -*- ### # (C) Copyright (2012-2017) Hewlett Packard Enterprise Development LP # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limi...
35.491379
115
0.664319
b5e6fa66938bea5928d416e5a40342193dcd2f27
7,077
py
Python
src/datadog_api_client/v1/model/widget_change_type.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
src/datadog_api_client/v1/model/widget_change_type.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
src/datadog_api_client/v1/model/widget_change_type.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. import re # noqa: F401 import sys # noqa: F401 from datadog_api_client.v1.model_uti...
39.099448
126
0.569309
f9b8c7e14a147aa41094c96274e88669ba4cb42a
390
py
Python
foobar/cli.py
knowsuchagency/foobar
b02bea7e6a9af232175443e6b1512fc531b61f40
[ "MIT" ]
null
null
null
foobar/cli.py
knowsuchagency/foobar
b02bea7e6a9af232175443e6b1512fc531b61f40
[ "MIT" ]
null
null
null
foobar/cli.py
knowsuchagency/foobar
b02bea7e6a9af232175443e6b1512fc531b61f40
[ "MIT" ]
null
null
null
"""foobar v0.1.0 just foo Usage: foobar [options] <argument> foobar -h | --help foobar -V | --version Options: -h --help show help and exit -V --version show version and exit """ from docopt import docopt def main(argv=None): args = docopt(__doc__, argv=argv, ve...
16.956522
54
0.574359
eede0f9e243fb541a62a837d9b419c466545b264
9,186
py
Python
fate_flow/db/db_models.py
bukexiusi/FATE
5c7e0dc4c108707872d37b871de86c911daaf793
[ "Apache-2.0" ]
32
2020-06-12T08:39:58.000Z
2022-03-20T06:57:08.000Z
fate_flow/db/db_models.py
bukexiusi/FATE
5c7e0dc4c108707872d37b871de86c911daaf793
[ "Apache-2.0" ]
10
2020-11-13T18:55:48.000Z
2022-02-10T02:00:12.000Z
fate_flow/db/db_models.py
bukexiusi/FATE
5c7e0dc4c108707872d37b871de86c911daaf793
[ "Apache-2.0" ]
16
2020-06-12T06:51:46.000Z
2022-03-29T10:23:42.000Z
# # Copyright 2019 The FATE 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 appli...
37.040323
105
0.698563
617e39cb4006eedfa359f6ca06f03334cddb301e
12,990
py
Python
airflow/contrib/hooks/gcp_compute_hook.py
RSEnergyGroup/incubator-airflow
e947c6c034238ede29a6c8f51307458d3e40c1b5
[ "Apache-2.0" ]
4
2018-12-14T05:14:02.000Z
2022-01-23T15:48:13.000Z
airflow/contrib/hooks/gcp_compute_hook.py
RSEnergyGroup/incubator-airflow
e947c6c034238ede29a6c8f51307458d3e40c1b5
[ "Apache-2.0" ]
4
2018-03-20T21:24:26.000Z
2020-05-03T04:23:02.000Z
airflow/contrib/hooks/gcp_compute_hook.py
RSEnergyGroup/incubator-airflow
e947c6c034238ede29a6c8f51307458d3e40c1b5
[ "Apache-2.0" ]
6
2020-06-09T02:16:58.000Z
2021-12-27T15:46:32.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
42.175325
93
0.651347
b0d43897674e8451499c03eaaf3244e7ac28bda7
177
py
Python
src/constants.py
rajatgupta310198/BlockChain
03884c0e95e6504431da1e935dde28bc99c9f0c3
[ "MIT" ]
2
2021-03-15T12:38:18.000Z
2021-06-16T17:44:42.000Z
src/constants.py
rajatgupta310198/BlockChain
03884c0e95e6504431da1e935dde28bc99c9f0c3
[ "MIT" ]
null
null
null
src/constants.py
rajatgupta310198/BlockChain
03884c0e95e6504431da1e935dde28bc99c9f0c3
[ "MIT" ]
1
2018-09-28T19:08:58.000Z
2018-09-28T19:08:58.000Z
""" Author: Rajat Gupta Email: rajat15101@iiitnr.edu.in Time & Date: 11:28 hrs, Sat, 3rd March 2018 """ MAX_TRANSACTIONS_PER_BLOCK = 5 WARNING_CODE = 100 SUCCESS_CODE = 101
13.615385
43
0.728814
ef8840583faac7e077d59f84d8cc46edf5a9580d
2,163
py
Python
dse_do_utils/utilities.py
Bhaskers-Blu-Org1/dse-decision-optimization-utilities
85efa515d1d93c1aa7b4898486bbb56306f8527a
[ "Apache-2.0" ]
2
2020-01-16T14:58:34.000Z
2021-11-17T21:33:22.000Z
dse_do_utils/utilities.py
Bhaskers-Blu-Org1/dse-decision-optimization-utilities
85efa515d1d93c1aa7b4898486bbb56306f8527a
[ "Apache-2.0" ]
26
2019-07-09T23:05:57.000Z
2022-03-21T15:46:24.000Z
dse_do_utils/utilities.py
IBM/dse-decision-optimization-utilities
45d315bc8201932ad99504ef65434a5ab5582d25
[ "Apache-2.0" ]
6
2019-11-02T16:42:01.000Z
2022-03-17T16:43:38.000Z
# Copyright IBM All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # General utilities module # Contains functions def add_sys_path(new_path): """ Adds a directory to Python's sys.path Does not add the directory if it does not exist or if it's already on sys.path. Returns 1 if OK, -1 if new_path...
30.041667
106
0.642164
349f83e31907067633d44b64457c30805c03869b
2,534
py
Python
examples/Redfish/ex28_set_ilo_timezone.py
moecloud/ILO4
44fbdf5affa3ecbd1c49718f04d336eaea9cae00
[ "Apache-2.0" ]
null
null
null
examples/Redfish/ex28_set_ilo_timezone.py
moecloud/ILO4
44fbdf5affa3ecbd1c49718f04d336eaea9cae00
[ "Apache-2.0" ]
null
null
null
examples/Redfish/ex28_set_ilo_timezone.py
moecloud/ILO4
44fbdf5affa3ecbd1c49718f04d336eaea9cae00
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Hewlett Packard Enterprise Development LP # # 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 requ...
42.233333
81
0.658642
9cb0db2284dcd0974307d84119e384e0ae93aed7
1,343
py
Python
tests/gsl.pkg/vector_partition.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
25
2018-04-23T01:45:39.000Z
2021-12-10T06:01:23.000Z
tests/gsl.pkg/vector_partition.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
53
2018-05-31T04:55:00.000Z
2021-10-07T21:41:32.000Z
tests/gsl.pkg/vector_partition.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
12
2018-04-23T22:50:40.000Z
2022-02-20T17:27:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2021 all rights reserved # """ Exercise the partitioner """ def test(): # setup the workload samplesPerTask = 8 workload = samplesPerTask # externals import mpi import gsl # initialize m...
19.463768
61
0.594192
dc7fccec53b1c02cd8625adae2b88d71b2fc3139
911
py
Python
utilities/kubectl_delete_task_pods.py
Eo300/react_flask_pdb2pqr
2df89d1df8e8d5b14e4364b10e1b63cb654d7653
[ "CC0-1.0" ]
3
2019-08-09T20:30:19.000Z
2020-06-11T20:55:26.000Z
utilities/kubectl_delete_task_pods.py
Eo300/react_flask_pdb2pqr
2df89d1df8e8d5b14e4364b10e1b63cb654d7653
[ "CC0-1.0" ]
38
2019-11-20T01:33:45.000Z
2021-11-30T19:40:56.000Z
utilities/kubectl_delete_task_pods.py
Eo300/react_flask_pdb2pqr
2df89d1df8e8d5b14e4364b10e1b63cb654d7653
[ "CC0-1.0" ]
7
2019-10-22T18:51:37.000Z
2021-04-13T03:17:10.000Z
import subprocess if __name__ == "__main__": # Get kubectl pods command = 'kubectl get pods' p1 = subprocess.Popen(command.split(), stdout=subprocess.PIPE) # Parse kubectl pods which begin with "task-" command = 'grep ^task-' p2 = subprocess.Popen(command.split(), stdout=subprocess.PIPE, ...
33.740741
83
0.581778
598ac5e5564653d7ca61c39836f41788b6f10fef
1,469
py
Python
server_3_0.py
jessejohn01/CSCI446PA2
2b905cbb2ae116adffdab9b1848a520084672332
[ "Apache-2.0" ]
null
null
null
server_3_0.py
jessejohn01/CSCI446PA2
2b905cbb2ae116adffdab9b1848a520084672332
[ "Apache-2.0" ]
null
null
null
server_3_0.py
jessejohn01/CSCI446PA2
2b905cbb2ae116adffdab9b1848a520084672332
[ "Apache-2.0" ]
null
null
null
import argparse import rdt_3_0 import time def makePigLatin(word): m = len(word) vowels = "a", "e", "i", "o", "u", "y" if m<3 or word=="the": return word else: for i in vowels: if word.find(i) < m and word.find(i) != -1: m = word.find(i) if m==0: ...
26.232143
81
0.552757
ea1d48be3b20a677ad2ba2d8d51976420cbb585b
706
py
Python
algorithms/HackerRank/level 1/dictionaries/twoStrings.py
clemencegoh/Python_Algorithms
0e3492447add6af49b185679da83552ff46e76f8
[ "MIT" ]
null
null
null
algorithms/HackerRank/level 1/dictionaries/twoStrings.py
clemencegoh/Python_Algorithms
0e3492447add6af49b185679da83552ff46e76f8
[ "MIT" ]
null
null
null
algorithms/HackerRank/level 1/dictionaries/twoStrings.py
clemencegoh/Python_Algorithms
0e3492447add6af49b185679da83552ff46e76f8
[ "MIT" ]
null
null
null
""" Given two strings, determine if they share a common substring. A substring may be as small as one character. For example, the words "a", "and", "art" share the common substring . The words "be" and "cat" do not share a substring. :input: "Hello", "World" :output: "Yes" """ class TwoStringsSolution: def solv...
20.764706
69
0.566572
6d98632e0b3301b12acc2568d0e565a5af26ba9d
561
py
Python
example/test_sort.py
cclauss/PyZ3950
a28937455e1b53cebde3d8d6b487e4e7f56c49ca
[ "MIT" ]
null
null
null
example/test_sort.py
cclauss/PyZ3950
a28937455e1b53cebde3d8d6b487e4e7f56c49ca
[ "MIT" ]
null
null
null
example/test_sort.py
cclauss/PyZ3950
a28937455e1b53cebde3d8d6b487e4e7f56c49ca
[ "MIT" ]
null
null
null
#!/usr/local/bin/python2.3 -i from PyZ3950.zoom import * c = Connection('gondolin.hist.liv.ac.uk', 210) c.databaseName = 'l5r' #c = Connection('z3950.copac.ac.uk', 210) #c.databaseName = 'COPAC' c.preferredRecordSyntax = 'SUTRS' q = Query('pqf', '@attr 1=4 "sword"') q2 = Query('pqf', '@attr 1=3201 foo') rs = c.search(...
20.777778
46
0.655971
ec1eec6b8dfa5ae7d9f499b846e2f959d8d69787
2,305
py
Python
extlinks/links/helpers.py
suecarmol/externallinks
388771924f0e0173237393226cb7549a02ae40e3
[ "MIT" ]
6
2019-12-05T13:14:45.000Z
2022-03-13T18:22:00.000Z
extlinks/links/helpers.py
WikipediaLibrary/externallinks
6519719a8b01ab121bf77c465c587af3762e99af
[ "MIT" ]
97
2019-07-01T14:42:51.000Z
2022-03-29T04:09:34.000Z
extlinks/links/helpers.py
suecarmol/externallinks
388771924f0e0173237393226cb7549a02ae40e3
[ "MIT" ]
8
2019-12-03T01:52:41.000Z
2020-08-19T00:26:46.000Z
from urllib.parse import unquote from .models import URLPattern def split_url_for_query(url): """ Given a URL pattern, split it into two components: url_optimised: URL and domain name in the el_index format (https://www.mediawiki.org/wiki/Manual:Externallinks_table#el_index) url_pattern_end: Anyt...
36.015625
85
0.632972
547130c2b16684d9abac9a3f20d5b03eb2ef25e7
757
py
Python
src/tileapp/forms.py
MattEding/Tile-Pattern
a1e58b9f0600f5a52dd85cd39808b90c0e684e16
[ "MIT" ]
null
null
null
src/tileapp/forms.py
MattEding/Tile-Pattern
a1e58b9f0600f5a52dd85cd39808b90c0e684e16
[ "MIT" ]
null
null
null
src/tileapp/forms.py
MattEding/Tile-Pattern
a1e58b9f0600f5a52dd85cd39808b90c0e684e16
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import FloatField, IntegerField, SelectField, StringField, SubmitField from wtforms.validators import DataRequired, NumberRange, Regexp from wtforms.widgets import TextArea class PatternForm(FlaskForm): pattern = StringField('Pattern', widget=TextArea(), ...
50.466667
93
0.714663
46953b271c45f56a4f451242e9a5f20b9023c453
571
py
Python
problems/g6_tests/Sudoku9.py
cprudhom/pycsp3
980927188f4262c9ea48a6534795712f09d731d6
[ "MIT" ]
null
null
null
problems/g6_tests/Sudoku9.py
cprudhom/pycsp3
980927188f4262c9ea48a6534795712f09d731d6
[ "MIT" ]
null
null
null
problems/g6_tests/Sudoku9.py
cprudhom/pycsp3
980927188f4262c9ea48a6534795712f09d731d6
[ "MIT" ]
null
null
null
from pycsp3 import * clues = data.clues # if not 0, clues[i][j] is a value imposed at row i and col j # x[i][j] is the value in cell at row i and col j. x = VarArray(size=[9, 9], dom=range(1, 10)) satisfy( # imposing distinct values on each row and each column AllDifferent(x, matrix=True), # imposing d...
31.722222
93
0.621716
9e930755a59a6cc698a97a40cbbd5ca889aff7ea
4,781
py
Python
client/pdf_generator.py
True-Demon/king-phisher-plugins
bafdba6f069b85d7b45d531fdc100d50fbb9628e
[ "BSD-3-Clause" ]
null
null
null
client/pdf_generator.py
True-Demon/king-phisher-plugins
bafdba6f069b85d7b45d531fdc100d50fbb9628e
[ "BSD-3-Clause" ]
null
null
null
client/pdf_generator.py
True-Demon/king-phisher-plugins
bafdba6f069b85d7b45d531fdc100d50fbb9628e
[ "BSD-3-Clause" ]
null
null
null
import os import time import xml.sax.saxutils as saxutils import king_phisher.client.gui_utilities as gui_utilities import king_phisher.client.mailer as mailer import king_phisher.client.plugins as plugins import king_phisher.client.widget.extras as extras import jinja2.exceptions try: from reportlab import platypu...
32.304054
112
0.732692
48efd6d8be97709033490c9552817f65bcb64678
12,478
py
Python
networkapi/ip/resource/NetworkIPv6AddResource.py
JohnVict0r/GloboNetworkAPI
e8f5b868cf71cf35df797bb8f31bddcb2158ecf7
[ "Apache-2.0" ]
1
2021-03-14T23:25:59.000Z
2021-03-14T23:25:59.000Z
networkapi/ip/resource/NetworkIPv6AddResource.py
leopoldomauricio/GloboNetworkAPI
3b5b2e336d9eb53b2c113977bfe466b23a50aa29
[ "Apache-2.0" ]
null
null
null
networkapi/ip/resource/NetworkIPv6AddResource.py
leopoldomauricio/GloboNetworkAPI
3b5b2e336d9eb53b2c113977bfe466b23a50aa29
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Lic...
40.644951
107
0.614682
ca856999d63d7d6d0658c2d43c8f5b8c6df94230
11,480
py
Python
src/oci/data_catalog/models/namespace.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_catalog/models/namespace.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_catalog/models/namespace.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
31.111111
245
0.637979
64c7a1fb284aa56acdde351d23d3918341a4fcb4
1,073
py
Python
mysite/wsgi.py
gbriones1/django-skelleton
ee067594e3994f1bac5bf754f618d365bb5248d8
[ "BSD-3-Clause" ]
null
null
null
mysite/wsgi.py
gbriones1/django-skelleton
ee067594e3994f1bac5bf754f618d365bb5248d8
[ "BSD-3-Clause" ]
10
2020-06-05T16:38:25.000Z
2022-03-11T23:12:12.000Z
mysite/wsgi.py
gbriones1/django-skelleton
ee067594e3994f1bac5bf754f618d365bb5248d8
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
33.53125
78
0.7726
ef99246bdb95cd5a1de07b9fd0c4fb9d101a64b3
3,402
py
Python
nailgun/nailgun/api/v1/handlers/cluster_plugin_link.py
dnikishov/fuel-web
152c2072cf585fc61d7e157ccf9a7ea1d0377daa
[ "Apache-2.0" ]
null
null
null
nailgun/nailgun/api/v1/handlers/cluster_plugin_link.py
dnikishov/fuel-web
152c2072cf585fc61d7e157ccf9a7ea1d0377daa
[ "Apache-2.0" ]
null
null
null
nailgun/nailgun/api/v1/handlers/cluster_plugin_link.py
dnikishov/fuel-web
152c2072cf585fc61d7e157ccf9a7ea1d0377daa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2015 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
31.211009
78
0.638448
b230dc159c9b009cb9c26ec992c061062940f95b
1,037
py
Python
mosei.py
jakehlee/alexa-stop
066b198bee4f1a39c8a75de4e297b614995f284c
[ "MIT" ]
null
null
null
mosei.py
jakehlee/alexa-stop
066b198bee4f1a39c8a75de4e297b614995f284c
[ "MIT" ]
null
null
null
mosei.py
jakehlee/alexa-stop
066b198bee4f1a39c8a75de4e297b614995f284c
[ "MIT" ]
null
null
null
# y_test has sentiment from strongly negative -3 to strongly positive +# import mmsdk from mmsdk import mmdatasdk import sys import csv # https://github.com/A2Zadeh/CMU-MultimodalSDK/issues/51 mydict={'myfeatures': 'CMU_MOSI_Opinion_Labels.csd'} mydataset=mmdatasdk.mmdataset(mydict) texts = open("../Downloads/files....
41.48
103
0.672131
3dd93a1aff131a4b8b558f12034955ce759dedbf
1,494
py
Python
neutron/tests/unit/services/trunk/fakes.py
p0i0/openstack-neutron
df2ee28ae9a43cc511482bd6ece5396eb1288814
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/services/trunk/fakes.py
p0i0/openstack-neutron
df2ee28ae9a43cc511482bd6ece5396eb1288814
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/services/trunk/fakes.py
p0i0/openstack-neutron
df2ee28ae9a43cc511482bd6ece5396eb1288814
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
24.9
79
0.682062
0dbc812b4dea8e9405b34a3e191b55d98a732ad0
9,501
py
Python
dlcv/object_detection/tensorflow_detect/core/matcher_test.py
Loonride/deeplens-cv
9e5b31c1a269d364e4912ba8266415fa04277e11
[ "MIT" ]
11
2019-10-07T22:06:30.000Z
2020-08-26T22:10:53.000Z
dlcv/object_detection/tensorflow_detect/core/matcher_test.py
Loonride/deeplens-cv
9e5b31c1a269d364e4912ba8266415fa04277e11
[ "MIT" ]
16
2019-11-02T00:32:00.000Z
2022-02-10T00:23:32.000Z
dlcv/object_detection/tensorflow_detect/core/matcher_test.py
Loonride/deeplens-cv
9e5b31c1a269d364e4912ba8266415fa04277e11
[ "MIT" ]
9
2019-10-07T13:33:13.000Z
2020-09-27T09:50:58.000Z
# 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...
49.227979
80
0.706978
c662c7a1a930ea4d170d213dd69401c75329ddc1
1,174
py
Python
flaxlight/consensus/coinbase.py
Flax-Network/flax-light-wallet
1745850a28a47bbbc4b5f3d460f35b34b4ed4f25
[ "Apache-2.0" ]
1
2021-12-02T14:38:11.000Z
2021-12-02T14:38:11.000Z
flaxlight/consensus/coinbase.py
Flax-Network/flax-light-wallet
1745850a28a47bbbc4b5f3d460f35b34b4ed4f25
[ "Apache-2.0" ]
null
null
null
flaxlight/consensus/coinbase.py
Flax-Network/flax-light-wallet
1745850a28a47bbbc4b5f3d460f35b34b4ed4f25
[ "Apache-2.0" ]
6
2021-11-21T00:38:27.000Z
2021-12-03T01:25:19.000Z
from blspy import G1Element from flaxlight.types.blockchain_format.coin import Coin from flaxlight.types.blockchain_format.sized_bytes import bytes32 from flaxlight.util.ints import uint32, uint64 from flaxlight.wallet.puzzles.p2_delegated_puzzle_or_hidden_puzzle import puzzle_for_pk def create_puzzlehash_for_pk(pub...
40.482759
111
0.809199
7dcb19c3fa08017ac623118c67304c1cc72a1b4b
3,524
py
Python
pkg/cortex/client/cortex/telemetry.py
cbensimon/cortex
013b5f7b7996517e3ec6b033a8f7b12d80906037
[ "Apache-2.0" ]
null
null
null
pkg/cortex/client/cortex/telemetry.py
cbensimon/cortex
013b5f7b7996517e3ec6b033a8f7b12d80906037
[ "Apache-2.0" ]
null
null
null
pkg/cortex/client/cortex/telemetry.py
cbensimon/cortex
013b5f7b7996517e3ec6b033a8f7b12d80906037
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Cortex Labs, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
30.912281
90
0.698354
878b4613c2a9110f0dfc9ed82473aaf92b6882c3
9,814
py
Python
notification/management/commands/sendout_tasks.py
aropan/clist
b0eda1c3a7147a3c9300f9b3eadb83c42cdc8bfe
[ "Apache-2.0" ]
166
2019-05-16T23:46:08.000Z
2022-03-31T05:20:23.000Z
notification/management/commands/sendout_tasks.py
aropan/clist
b0eda1c3a7147a3c9300f9b3eadb83c42cdc8bfe
[ "Apache-2.0" ]
92
2020-01-18T22:51:53.000Z
2022-03-12T01:23:57.000Z
notification/management/commands/sendout_tasks.py
aropan/clist
b0eda1c3a7147a3c9300f9b3eadb83c42cdc8bfe
[ "Apache-2.0" ]
23
2020-02-09T17:38:43.000Z
2021-12-09T14:39:07.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re from copy import deepcopy from datetime import timedelta from logging import getLogger from smtplib import SMTPDataError, SMTPResponseException from time import sleep from traceback import format_exc import tqdm import yaml from django.conf import sett...
37.458015
112
0.547381
0bcece6a99b61b87741ae100e9c01a4f4d6d3235
4,014
py
Python
PaddleFL/federated/fl_trainer.py
BaptisteTomasin/Federated-Learning-Frameworks
ba1cc9dc6ee0e85d4169f32884890bfc7622d2ae
[ "Apache-2.0" ]
null
null
null
PaddleFL/federated/fl_trainer.py
BaptisteTomasin/Federated-Learning-Frameworks
ba1cc9dc6ee0e85d4169f32884890bfc7622d2ae
[ "Apache-2.0" ]
null
null
null
PaddleFL/federated/fl_trainer.py
BaptisteTomasin/Federated-Learning-Frameworks
ba1cc9dc6ee0e85d4169f32884890bfc7622d2ae
[ "Apache-2.0" ]
null
null
null
from paddle_fl.paddle_fl.core.trainer.fl_trainer import FLTrainerFactory from paddle_fl.paddle_fl.core.master.fl_job import FLRunTimeJob import paddle from tb_paddle import SummaryWriter from os.path import join import sys import logging import time import json import argparse from tools import metrics, select_data ...
39.742574
283
0.682611
d8538ccc6e19e7455facbecca47338ac52088616
22,866
py
Python
test/functional/test_framework/util.py
FihlaTV/lbrycrd
c54af21ce2758490ae3f8340c73cf0f2401801cc
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
FihlaTV/lbrycrd
c54af21ce2758490ae3f8340c73cf0f2401801cc
[ "MIT" ]
null
null
null
test/functional/test_framework/util.py
FihlaTV/lbrycrd
c54af21ce2758490ae3f8340c73cf0f2401801cc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Helpful routines for regression testing.""" from base64 import b64encode from binascii import unhexlif...
39.15411
140
0.649173
c76cd613b23afe52aaeef5c10a5231b3ef6199f8
3,860
py
Python
neighbour/views.py
francismuk/neighbourhood
393c6ae91242b010ef2aca4a845a0cb144c2189c
[ "MIT" ]
null
null
null
neighbour/views.py
francismuk/neighbourhood
393c6ae91242b010ef2aca4a845a0cb144c2189c
[ "MIT" ]
4
2020-06-05T22:23:34.000Z
2021-09-08T01:12:21.000Z
neighbour/views.py
francismuk/neighbourhood
393c6ae91242b010ef2aca4a845a0cb144c2189c
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse, Http404, HttpResponseRedirect, JsonResponse from .models import Subscriber, Image, Location, Category, Comments, Profile from .forms import SubscribeForm, NewPostForm, CommentForm from .email import send_welcome_email from django.contri...
32.711864
98
0.675648
68514e1c33ec327101399fbf411e27990f2b0334
1,709
py
Python
app/core/migrations/0001_initial.py
ardit171/recipe-api-api
b5c321c8b3087f06437190279b01b1ec3be16ae7
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
ardit171/recipe-api-api
b5c321c8b3087f06437190279b01b1ec3be16ae7
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
ardit171/recipe-api-api
b5c321c8b3087f06437190279b01b1ec3be16ae7
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-08-27 14:31 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.264706
266
0.63897
e8e72442c9dd0ab364b5613656a1c0dc21d244ee
9,987
py
Python
contrib/spendfrom/spendfrom.py
All-Mn/AllMNv2
2025698345ec6a5e397506f404fe1f2fc5ff1cb4
[ "MIT" ]
3
2018-11-04T13:06:01.000Z
2019-02-09T08:19:15.000Z
contrib/spendfrom/spendfrom.py
All-Mn/AllMNv2
2025698345ec6a5e397506f404fe1f2fc5ff1cb4
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
All-Mn/AllMNv2
2025698345ec6a5e397506f404fe1f2fc5ff1cb4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Use the raw transactions API to spend allmns received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a allmnd or ALLMN-Q...
37.264925
111
0.63062
4ee6347c27cda48f15df1de22ebf7ec369a8b050
8,027
py
Python
models/train_classifier.py
caiokinupp/udacity-disaster-response-pipeline
2086cb52daf7f9e79fa92683fd4348c5c8501c33
[ "MIT" ]
null
null
null
models/train_classifier.py
caiokinupp/udacity-disaster-response-pipeline
2086cb52daf7f9e79fa92683fd4348c5c8501c33
[ "MIT" ]
null
null
null
models/train_classifier.py
caiokinupp/udacity-disaster-response-pipeline
2086cb52daf7f9e79fa92683fd4348c5c8501c33
[ "MIT" ]
null
null
null
""" Classifier Trainer Project: Udacity Nanodegree - Disaster Response Pipeline Sample Script Syntax: > python train_classifier.py <path to sqllite destination db> <path to the pickle file> Sample Script Execution: > python train_classifier.py ../data/disaster_response_db.db classifier.pkl Arguments: 1) Path to SQ...
33.169421
103
0.669864
b9b92ee32eaf658557ea56c184dafd10aa726d69
2,020
py
Python
environments/mujoco/rand_param_envs/gym/envs/mujoco/humanoidstandup.py
lfeng1999/varibad
840f4bd56ccee96a6c162265d18ec54db8b77a1e
[ "MIT" ]
119
2020-02-12T07:06:17.000Z
2022-03-24T08:37:34.000Z
environments/mujoco/rand_param_envs/gym/envs/mujoco/humanoidstandup.py
lfeng1999/varibad
840f4bd56ccee96a6c162265d18ec54db8b77a1e
[ "MIT" ]
2
2021-01-13T14:58:50.000Z
2021-01-13T14:59:40.000Z
environments/mujoco/rand_param_envs/gym/envs/mujoco/humanoidstandup.py
lfeng1999/varibad
840f4bd56ccee96a6c162265d18ec54db8b77a1e
[ "MIT" ]
26
2020-04-20T13:10:11.000Z
2022-03-22T10:21:10.000Z
import numpy as np from environments.mujoco.rand_param_envs.gym import utils from environments.mujoco.rand_param_envs.gym.envs.mujoco import mujoco_env def mass_center(model): mass = model.body_mass xpos = model.data.xipos return (np.sum(mass * xpos, 0) / np.sum(mass))[0] class HumanoidStandupEnv(mujoc...
36.727273
106
0.598515
cd0805c9ebfe0082e687ce176b12007af506ed0b
1,080
py
Python
The ArcGIS GeoInformation Model/self-service-storymapping/__init__.py
esrinederland/DevSummit2020
09b14929552a6a5297ac7b117ebd5f21cf6eea37
[ "MIT" ]
3
2021-04-07T14:26:25.000Z
2021-04-15T14:56:12.000Z
The ArcGIS GeoInformation Model/self-service-storymapping/__init__.py
esrinederland/DevSummit2021
09b14929552a6a5297ac7b117ebd5f21cf6eea37
[ "MIT" ]
null
null
null
The ArcGIS GeoInformation Model/self-service-storymapping/__init__.py
esrinederland/DevSummit2021
09b14929552a6a5297ac7b117ebd5f21cf6eea37
[ "MIT" ]
null
null
null
import logging from . import SelfServiceStoryMapping2020 import urllib.parse import os import azure.functions as func __version__ = "v202000901.01" def main(req: func.HttpRequest) -> func.HttpResponse: logging.info(f'{__version__} Python HTTP trigger function processed a request. SelfServiceStoryMapping2020') ...
36
112
0.696296
ab4ed9f13c5433799c63f6dbbe5a8b13f0ccd9b2
2,048
py
Python
chatroom-server.py
Jacob-Yangman/chatroom-v1
a9a70e5cf7373bcea678920c4397cb59d4044805
[ "Apache-2.0" ]
null
null
null
chatroom-server.py
Jacob-Yangman/chatroom-v1
a9a70e5cf7373bcea678920c4397cb59d4044805
[ "Apache-2.0" ]
null
null
null
chatroom-server.py
Jacob-Yangman/chatroom-v1
a9a70e5cf7373bcea678920c4397cb59d4044805
[ "Apache-2.0" ]
null
null
null
""" Author : Jacob Email : jacob7154@qq.com Env : python3 Time : 2021-8-15 GroupChat Project """ from socket import * from multiprocessing import Process # Address of Server HOST = "0.0.0.0" PORT = 7500 ADDR = (HOST, PORT) # A dict stored addresses and usernames of all connecting clients user = {} def join_group(s...
24.380952
65
0.611816
7d8442f5c4e7741024852590d7d30e0672873a02
611
py
Python
web_app/services/basilica_service.py
jae-finger/twitoff
73a42c343dc5fbbe08c4cc470b7705e9ff8bb34c
[ "MIT" ]
null
null
null
web_app/services/basilica_service.py
jae-finger/twitoff
73a42c343dc5fbbe08c4cc470b7705e9ff8bb34c
[ "MIT" ]
3
2021-06-08T21:32:20.000Z
2022-03-12T00:32:35.000Z
web_app/services/basilica_service.py
jae-finger/twitoff
73a42c343dc5fbbe08c4cc470b7705e9ff8bb34c
[ "MIT" ]
null
null
null
import basilica import os from dotenv import load_dotenv load_dotenv() BASILICA_API_KEY = os.getenv("BASILICA_API_KEY") connection = basilica.Connection(BASILICA_API_KEY) # print(type(connection)) #> <class 'basilica.Connection'> # print(embedding) # a list of 768 numbers? if __name__ == "__main__": embedding =...
30.55
86
0.720131
5ab3d5d9e962da359f04592e15e469609f5ed333
1,093
py
Python
consts.py
alucebur/snake
43df6b47f5f42f99a0365c20f3034c1d83b6c3d9
[ "Unlicense" ]
null
null
null
consts.py
alucebur/snake
43df6b47f5f42f99a0365c20f3034c1d83b6c3d9
[ "Unlicense" ]
null
null
null
consts.py
alucebur/snake
43df6b47f5f42f99a0365c20f3034c1d83b6c3d9
[ "Unlicense" ]
null
null
null
"""Constants.""" from typing import Tuple, List, NewType import pygame # Size of grid units in pixels BLOCK = (32, 32) # Size of sprite images in pixels SPRITE_BLOCK = (64, 64) # Types Point = NewType('Point', Tuple[int, int]) Size = NewType('Size', Tuple[int, int]) SnakeBody = NewType('SnakeBody', List[Tuple[Point,...
22.306122
73
0.618481
7c4b4818f4acc990e2501eb60c9b2d48e66beb85
3,012
py
Python
criterium/models.py
andywar65/rpnew_root
9281cb16783313a1cd23b1394f2bad485ac1b33d
[ "BSD-2-Clause" ]
null
null
null
criterium/models.py
andywar65/rpnew_root
9281cb16783313a1cd23b1394f2bad485ac1b33d
[ "BSD-2-Clause" ]
null
null
null
criterium/models.py
andywar65/rpnew_root
9281cb16783313a1cd23b1394f2bad485ac1b33d
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime from django.db import models from users.models import Member from pagine.models import Event, Location, generate_unique_slug from .choices import * class Race(models.Model): title = models.CharField('Nome', help_text="Il nome della gara", max_length = 50) slug = models.Sl...
33.098901
73
0.63579
b92247f21be46007102083c5724ebb64905fb15f
3,268
py
Python
scripts/providers/akamai/list_edgehostnames.py
satroutr/poppy
27417f86854d9e0a04726acc263ef0a2ce9f8f6e
[ "Apache-2.0" ]
3
2017-07-05T20:09:59.000Z
2018-11-27T22:02:57.000Z
scripts/providers/akamai/list_edgehostnames.py
satroutr/poppy
27417f86854d9e0a04726acc263ef0a2ce9f8f6e
[ "Apache-2.0" ]
24
2017-04-18T15:14:04.000Z
2019-03-20T19:09:07.000Z
scripts/providers/akamai/list_edgehostnames.py
satroutr/poppy
27417f86854d9e0a04726acc263ef0a2ce9f8f6e
[ "Apache-2.0" ]
8
2017-04-03T13:24:27.000Z
2021-11-08T20:28:10.000Z
# Copyright (c) 2014 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
28.920354
69
0.632497
dff98cb14f0e04669675bc340e6e2eaab99e10b1
1,666
py
Python
app.py
sadilchamishka/EMOSENSE
e2cb389d095dfa9cd385354c178593ad5e42bee5
[ "MIT" ]
null
null
null
app.py
sadilchamishka/EMOSENSE
e2cb389d095dfa9cd385354c178593ad5e42bee5
[ "MIT" ]
null
null
null
app.py
sadilchamishka/EMOSENSE
e2cb389d095dfa9cd385354c178593ad5e42bee5
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify from UtterenceModel import predictUtterence from DeepLearntFeatures import featureMean,feature20BinMeans from ConversationModel import predictConversationOffline, predictConversationOnline from flask_cors import CORS app = Flask(__name__) cors = CORS(app) utterence_folder = '...
29.22807
106
0.728091
53c062b0958b140fe91790404f1953f991d107d2
981
py
Python
app/models/user.py
OmarGC/testing-fastapi
d0fb8595da229f040d7884f3a171b527a27d686d
[ "Apache-2.0" ]
null
null
null
app/models/user.py
OmarGC/testing-fastapi
d0fb8595da229f040d7884f3a171b527a27d686d
[ "Apache-2.0" ]
null
null
null
app/models/user.py
OmarGC/testing-fastapi
d0fb8595da229f040d7884f3a171b527a27d686d
[ "Apache-2.0" ]
null
null
null
#Third party libraries from sqlalchemy.sql.schema import Column, Table from sqlalchemy.sql.sqltypes import Boolean, Integer, String, DateTime, Date from sqlalchemy.sql.functions import func #Own's Libraries from app.config.connection import db user = Table( "USUARIO", db.meta, Column( "id_usuario", Intege...
42.652174
95
0.733945
b6b3d963ecebcda7f0a98ba1b110ff733a1f6cd9
4,400
py
Python
pif_ingestor/core.py
CitrineInformatics/pif-ingestor
7512ad2cf86ba8bee8cf18dc7181d5fc9977f290
[ "Apache-2.0" ]
1
2018-01-04T18:17:36.000Z
2018-01-04T18:17:36.000Z
pif_ingestor/core.py
CitrineInformatics/pif-ingestor
7512ad2cf86ba8bee8cf18dc7181d5fc9977f290
[ "Apache-2.0" ]
11
2017-06-23T17:41:43.000Z
2018-10-26T18:34:04.000Z
pif_ingestor/core.py
CitrineInformatics/pif-ingestor
7512ad2cf86ba8bee8cf18dc7181d5fc9977f290
[ "Apache-2.0" ]
4
2017-09-14T12:18:09.000Z
2018-04-24T19:05:02.000Z
from .ui import get_cli from .manager import IngesterManager from .enrichment import add_tags, add_license, add_contact from .uploader import upload from .packager import create_package from .globus import push_to_globus import os.path from os import walk, listdir from pypif import pif from pypif.obj.system import Syst...
31.428571
144
0.626136
4d2ba47355e11ed59dbcdea8e4be78ae58de329b
14,318
py
Python
Packs/Infinipoint/Integrations/Infinipoint/Infinipoint.py
coralogix/content
bba0fb1fdaf44a09efafe268ff610215cb698977
[ "MIT" ]
null
null
null
Packs/Infinipoint/Integrations/Infinipoint/Infinipoint.py
coralogix/content
bba0fb1fdaf44a09efafe268ff610215cb698977
[ "MIT" ]
1
2020-07-29T21:48:58.000Z
2020-07-29T21:48:58.000Z
Packs/Infinipoint/Integrations/Infinipoint/Infinipoint.py
coralogix/content
bba0fb1fdaf44a09efafe268ff610215cb698977
[ "MIT" ]
null
null
null
from CommonServerPython import * from typing import Any, Dict, List, Optional, cast ''' IMPORTS ''' import jwt import math import dateparser from datetime import timezone # disable insecure warnings requests.packages.urllib3.disable_warnings() ''' GLOBAL VARS ''' BASE_URL = "https://console.infinipoint.io" MAX_INC...
30.725322
113
0.563766
b80099a1c0ca87184e7dc440bc850de2421228cb
4,613
py
Python
data_generator_oct.py
mlaves/3doct-pose-dataset
ec067b95f5cb94f5f962ed79e952f0381e8aa2ae
[ "MIT" ]
1
2020-07-06T13:36:05.000Z
2020-07-06T13:36:05.000Z
data_generator_oct.py
mlaves/3doct-pose-dataset
ec067b95f5cb94f5f962ed79e952f0381e8aa2ae
[ "MIT" ]
1
2020-08-10T08:48:27.000Z
2020-08-10T09:24:04.000Z
data_generator_oct.py
mlaves/3doct-pose-dataset
ec067b95f5cb94f5f962ed79e952f0381e8aa2ae
[ "MIT" ]
null
null
null
import numpy as np import torch from torch.utils.data import Dataset, DataLoader from skimage import io import PIL from torchvision import transforms from scipy.ndimage.interpolation import zoom from tqdm import tqdm from glob import glob class OCTDataset(Dataset): """ Loads the OCT dataset. """ def ...
31.59589
114
0.574463
8133f35a5f11c125c79edc8e8d9a3b3a5b4bd85f
2,783
py
Python
mkt/submit/serializers.py
spasovski/zamboni
c7f4714029e3b2dc918ddfc2103f8e051193c14d
[ "BSD-3-Clause" ]
1
2017-07-14T19:22:39.000Z
2017-07-14T19:22:39.000Z
mkt/submit/serializers.py
imclab/olympia
35bc9c484e384bafab520ca8b5d5b0f8da5b62c0
[ "BSD-3-Clause" ]
6
2021-02-02T23:08:48.000Z
2021-09-08T02:47:17.000Z
mkt/submit/serializers.py
imclab/olympia
35bc9c484e384bafab520ca8b5d5b0f8da5b62c0
[ "BSD-3-Clause" ]
null
null
null
import json from django.core.urlresolvers import reverse from rest_framework import serializers import amo from addons.models import Preview from files.models import FileUpload from mkt.api.fields import ReverseChoiceField from mkt.webapps.models import Webapp class AppStatusSerializer(serializers.ModelSerializer)...
32.741176
78
0.681639
b962117885f14bf861751484f2830798a20cd9f0
3,914
py
Python
scripts/check_ifndefs.py
mohankumarSriram/katana
77c8a4bfba9f5808d63e1e936fc4b70c4830429d
[ "BSD-3-Clause" ]
null
null
null
scripts/check_ifndefs.py
mohankumarSriram/katana
77c8a4bfba9f5808d63e1e936fc4b70c4830429d
[ "BSD-3-Clause" ]
null
null
null
scripts/check_ifndefs.py
mohankumarSriram/katana
77c8a4bfba9f5808d63e1e936fc4b70c4830429d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # check_ifndefs.py [-fix] <file or directory>... # # Check and optionally fix ifndef guards in files. # # The standard define pattern is: # # KATANA_<PATH_WITH_UNDERSCORES>_H_ # # where path is the path to the header file without its extension and with # the components "include", "src", "test"...
30.107692
110
0.60884
8e1acfb9885e0d7c1d3e6d514027d8743057daf3
655
py
Python
thippiproject/modelapp/views.py
Anandgowda18/djangocomplete
c9eebe7834e404c73deca295289142a1e95ab573
[ "Apache-2.0" ]
null
null
null
thippiproject/modelapp/views.py
Anandgowda18/djangocomplete
c9eebe7834e404c73deca295289142a1e95ab573
[ "Apache-2.0" ]
null
null
null
thippiproject/modelapp/views.py
Anandgowda18/djangocomplete
c9eebe7834e404c73deca295289142a1e95ab573
[ "Apache-2.0" ]
1
2021-08-31T10:20:49.000Z
2021-08-31T10:20:49.000Z
from django.shortcuts import render from modelapp.forms import ProjectForm from modelapp.models import Project # Create your views here. def index(request): return render(request,'modelapp/index.html') def listproject(request): projectlist = Project.objects.all() return render(request,'modelapp/listprojec...
31.190476
78
0.703817
29de8b74c57468ab33da4892d3062b4d16315555
473
py
Python
packages/python/plotly/plotly/validators/scatter/marker/line/_cmin.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/scatter/marker/line/_cmin.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/scatter/marker/line/_cmin.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class CminValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="cmin", parent_name="scatter.marker.line", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
36.384615
88
0.661734
fd4e1a94302a78bbbb774f79b70e2adafe08c31b
2,719
py
Python
exp/eval/calibration/calib_current.py
stefantkeller/VECSELsetup
c1740e170b54be40f7315808e451c0731a5d7f3b
[ "MIT" ]
null
null
null
exp/eval/calibration/calib_current.py
stefantkeller/VECSELsetup
c1740e170b54be40f7315808e451c0731a5d7f3b
[ "MIT" ]
null
null
null
exp/eval/calibration/calib_current.py
stefantkeller/VECSELsetup
c1740e170b54be40f7315808e451c0731a5d7f3b
[ "MIT" ]
null
null
null
#! /usr/bin/python2.7 # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt import errorvalues as ev # github.com/stefantkeller/errorvalues from VECSELsetup.eval.varycolor import varycolor from VECSELsetup.eval.gen_functions import extract def plot_current_current(logfile,colors,textxy): cu...
32.369048
128
0.660169
7bf0f865298b372db0283eb6fe4dc77de1bde6c0
2,633
py
Python
nova/api/openstack/compute/plugins/v3/admin_password.py
SnabbCo/nova
d156d7fdf241569da2c27ae02ec88e6ef448f7e2
[ "Apache-2.0" ]
2
2016-04-19T08:20:39.000Z
2021-10-03T16:00:37.000Z
nova/api/openstack/compute/plugins/v3/admin_password.py
SnabbCo/nova
d156d7fdf241569da2c27ae02ec88e6ef448f7e2
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/plugins/v3/admin_password.py
SnabbCo/nova
d156d7fdf241569da2c27ae02ec88e6ef448f7e2
[ "Apache-2.0" ]
1
2020-07-24T06:34:03.000Z
2020-07-24T06:34:03.000Z
# Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
35.581081
79
0.703
b349e0fddaf66af7ac736508c20a795887abddb1
6,086
py
Python
src/scene_vis/vtk_wrapper/vtk_voxel_grid.py
salarim/scene_vis
8e146195599aaa7598137dd223e9ce2b9e0b25a3
[ "MIT" ]
33
2019-07-16T19:52:43.000Z
2022-03-17T15:30:59.000Z
src/scene_vis/vtk_wrapper/vtk_voxel_grid.py
salarim/scene_vis
8e146195599aaa7598137dd223e9ce2b9e0b25a3
[ "MIT" ]
null
null
null
src/scene_vis/vtk_wrapper/vtk_voxel_grid.py
salarim/scene_vis
8e146195599aaa7598137dd223e9ce2b9e0b25a3
[ "MIT" ]
10
2021-12-25T06:36:18.000Z
2022-03-15T11:25:00.000Z
"""https://github.com/kujason/scene_vis""" import numpy as np import vtk from vtk.util import numpy_support class VtkVoxelGrid: """Display cubes from a vtkCubeSource to visualize voxels from a VoxelGrid object. Scalar arrays such as height or point density can also be added and visualized. """ def _...
39.264516
87
0.656918
a6ecd7ae1fae9a91a8ea1c00e50fecbca91316bc
9,671
py
Python
src/prefect/agent/local/agent.py
nathaniel-md/prefect
467bc5b1dcd83716bd896eff549f6bceb59da8cf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/prefect/agent/local/agent.py
nathaniel-md/prefect
467bc5b1dcd83716bd896eff549f6bceb59da8cf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/prefect/agent/local/agent.py
nathaniel-md/prefect
467bc5b1dcd83716bd896eff549f6bceb59da8cf
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import os import socket import sys from subprocess import STDOUT, Popen, DEVNULL from typing import Iterable, List from prefect import config from prefect.agent import Agent from prefect.environments.storage import GCS, S3, Azure, Local, GitHub from prefect.serialization.storage import StorageSchema from prefect.utili...
39.473469
121
0.622066
3b2e7c476ac1c10db917bc5f884505e8bc96d197
18,973
py
Python
android_webview/tools/cts_utils_test.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
android_webview/tools/cts_utils_test.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
android_webview/tools/cts_utils_test.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import re import tempfile import shutil import sys import unittest import zipfile sys.path.append( os.path.join( os.path.dirname(__fil...
34.812844
80
0.636852
c7605894fb9d49997d242a8d5d4958bff5ea51e1
4,215
py
Python
app/odl/odl_constants.py
kukkalli/orchestrator
0b53e3f95c0a886a739cf08d611ea76c958bc691
[ "Apache-2.0" ]
1
2022-03-02T09:43:45.000Z
2022-03-02T09:43:45.000Z
app/odl/odl_constants.py
kukkalli/orchestrator
0b53e3f95c0a886a739cf08d611ea76c958bc691
[ "Apache-2.0" ]
null
null
null
app/odl/odl_constants.py
kukkalli/orchestrator
0b53e3f95c0a886a739cf08d611ea76c958bc691
[ "Apache-2.0" ]
null
null
null
import logging from configuration_constants import ConfigurationConstants LOG = logging.getLogger(__name__) class ODLConstants(object): # OpenDayLight Constants TOPOLOGY = ConfigurationConstants.ODL_URL + "/restconf/operational/network-topology:network-topology" NODES = ConfigurationConstants.ODL_URL + ...
35.420168
111
0.507948
f94f8f89918e073c83355e1548563f64c0d39e62
1,725
py
Python
challenges/Enslavednode_chat/poller/for-release/machine.py
pingjuiliao/cb-multios
64ededd0b87030eda7c40c4388a4ad8283712d8e
[ "MIT" ]
473
2016-08-01T12:48:16.000Z
2022-03-09T18:13:14.000Z
challenges/Enslavednode_chat/poller/for-release/machine.py
pingjuiliao/cb-multios
64ededd0b87030eda7c40c4388a4ad8283712d8e
[ "MIT" ]
71
2016-08-01T03:33:44.000Z
2022-03-09T18:37:04.000Z
challenges/Enslavednode_chat/poller/for-release/machine.py
pingjuiliao/cb-multios
64ededd0b87030eda7c40c4388a4ad8283712d8e
[ "MIT" ]
121
2016-08-01T04:07:53.000Z
2022-03-07T11:08:09.000Z
#!/usr/bin/env python import math import random import string import sys from generator.actions import Actions class Machine(Actions): WELCOME = ( "\nWelcome to the Enslavednode chat server!\n" "The bots here love to talk, but they are shy...\n" "You need to get the ball rolling.\n" )...
27.380952
71
0.561159
32a74f1612cab6ffa086975a113edb0c9ea235fd
741
py
Python
core/diagnostics.py
RobertoPrevato/PythonUtilities
9137e3c1e357e0c7b62c005ee0ab7efdfdaf7d94
[ "MIT" ]
1
2019-06-09T12:12:59.000Z
2019-06-09T12:12:59.000Z
core/diagnostics.py
RobertoPrevato/PythonUtilities
9137e3c1e357e0c7b62c005ee0ab7efdfdaf7d94
[ "MIT" ]
null
null
null
core/diagnostics.py
RobertoPrevato/PythonUtilities
9137e3c1e357e0c7b62c005ee0ab7efdfdaf7d94
[ "MIT" ]
null
null
null
import time class StopWatch: def __init__(self, func=time.perf_counter): self.elapsed = 0.0 self._func = func self._start = None def start(self): if self._start is not None: raise RuntimeError('Already started') self._start = self._func() def stop(self...
21.794118
49
0.569501
87d36e6153265bb390013a48850396f24f08c1c3
10,406
py
Python
statsmodels/sandbox/distributions/genpareto.py
yarikoptic/statsmodels
f990cb1a1ef0c9883c9394444e6f9d027efabec6
[ "BSD-3-Clause" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
venv/lib/python3.6/site-packages/statsmodels/sandbox/distributions/genpareto.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
6
2015-08-28T16:59:03.000Z
2019-04-12T22:29:01.000Z
venv/lib/python3.6/site-packages/statsmodels/sandbox/distributions/genpareto.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
28
2015-04-01T20:02:25.000Z
2021-07-03T00:09:28.000Z
# -*- coding: utf-8 -*- """ Created on Thu Aug 12 14:59:03 2010 Warning: not tried out or tested yet, Done Author: josef-pktd """ from __future__ import print_function import numpy as np from scipy import stats from scipy.misc import comb from scipy.stats.distributions import rv_continuous from numpy import where, i...
43.358333
211
0.552085
6fa868612ac81e980a8629fa352dc7a95e4cc4e4
6,470
py
Python
cv2videoFilePINLocations.py
cliffeby/duckpin1
de00ec2e675ca073edcbad58865300a2a957f04b
[ "MIT" ]
null
null
null
cv2videoFilePINLocations.py
cliffeby/duckpin1
de00ec2e675ca073edcbad58865300a2a957f04b
[ "MIT" ]
1
2018-04-23T21:35:32.000Z
2018-10-04T03:15:00.000Z
cv2videoFilePINLocations.py
cliffeby/Duckpin2
9b1b0891e898625373409f7b4b7d4e058184c45e
[ "MIT" ]
null
null
null
# import the necessary packages import time import cv2 import numpy from matplotlib import pyplot as plt def show_color_histogram(image): # for i, col in enumerate(['b', 'g', 'r']): # draw_image_histogram(image, [i], color=col) # plt.show() draw_image_histogram(image, [0]) def with_open_cv(image)...
31.871921
91
0.594281
dee34a1d84b2d274f1d9bff473634b18a2744a60
406
py
Python
sriracha/view.py
pcranaway/sriracha
cba5703e05cf8bee1b83d2ff163400f448e9e88a
[ "MIT" ]
null
null
null
sriracha/view.py
pcranaway/sriracha
cba5703e05cf8bee1b83d2ff163400f448e9e88a
[ "MIT" ]
null
null
null
sriracha/view.py
pcranaway/sriracha
cba5703e05cf8bee1b83d2ff163400f448e9e88a
[ "MIT" ]
null
null
null
from liquid import Template, Environment, FileSystemLoader env = Environment(loader=FileSystemLoader('views/')) cache = {} def render_view(name, model): """ renders a view with a model using liquid i think """ # cache the template if it's not already cached if not name in cache: cache[nam...
25.375
62
0.679803
87534ffd5899dfed0f9bc7722baba126ada11938
6,009
py
Python
AutomatedTesting/Gem/PythonTests/physics/C13508019_Terrain_TerrainTexturePainterWorks.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
1
2022-03-12T14:13:45.000Z
2022-03-12T14:13:45.000Z
AutomatedTesting/Gem/PythonTests/physics/C13508019_Terrain_TerrainTexturePainterWorks.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
2
2022-01-13T04:29:38.000Z
2022-03-12T01:05:31.000Z
AutomatedTesting/Gem/PythonTests/physics/C13508019_Terrain_TerrainTexturePainterWorks.py
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ # Test case ID : C13508019 # Test Case Title : Verify terrain materials are updated after using terrain textur...
41.441379
119
0.707605
34a7ce21a9ddc9f74b4889af1b2a4fbceafacacf
11,675
py
Python
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/global_/afi_safis/afi_safi/graceful_restart/state/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
64
2016-10-20T15:47:18.000Z
2021-11-11T11:57:32.000Z
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/global_/afi_safis/afi_safi/graceful_restart/state/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
126
2016-10-05T10:36:14.000Z
2019-05-15T08:43:23.000Z
napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/global_/afi_safis/afi_safi/graceful_restart/state/__init__.py
ckishimo/napalm-yang
8f2bd907bd3afcde3c2f8e985192de74748baf6c
[ "Apache-2.0" ]
63
2016-11-07T15:23:08.000Z
2021-09-22T14:41:16.000Z
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
37.300319
370
0.596317
936578b67fcdc0a22e99a31bcec678a0e3661ebb
3,502
py
Python
wfirst_cgi/models_phaseb/python/wfirst_phaseb_proper/examples/run_hlc_input_fields.py
PhillipKP/proper-models
5a859a2c65113c58d52488b43d9f8db6691b536b
[ "Apache-2.0" ]
3
2019-05-22T22:23:45.000Z
2022-03-26T02:26:14.000Z
wfirst_cgi/models_phaseb/python/wfirst_phaseb_proper/examples/run_hlc_input_fields.py
PhillipKP/proper-models
5a859a2c65113c58d52488b43d9f8db6691b536b
[ "Apache-2.0" ]
null
null
null
wfirst_cgi/models_phaseb/python/wfirst_phaseb_proper/examples/run_hlc_input_fields.py
PhillipKP/proper-models
5a859a2c65113c58d52488b43d9f8db6691b536b
[ "Apache-2.0" ]
4
2020-06-18T21:15:28.000Z
2021-09-30T08:19:58.000Z
# Copyright 2019 California Institute of Technology # ------------------------------------------------------------------ import proper import numpy as np import matplotlib.pylab as plt from matplotlib.colors import LogNorm from matplotlib.patches import Circle import wfirst_phaseb_proper from wfirst_phaseb_proper im...
39.795455
143
0.661051
41674c18e362d94785a7c0d0f013705b4676bcdd
2,753
py
Python
src/core/toga/widgets/scrollcontainer.py
d3r3kk/toga
2d8c0eb30371c4ef4f0610251233569e9c618e93
[ "BSD-3-Clause" ]
2
2019-02-19T17:19:24.000Z
2020-04-13T21:22:24.000Z
src/core/toga/widgets/scrollcontainer.py
d3r3kk/toga
2d8c0eb30371c4ef4f0610251233569e9c618e93
[ "BSD-3-Clause" ]
2
2019-10-26T20:54:06.000Z
2019-10-26T21:43:43.000Z
src/core/toga/widgets/scrollcontainer.py
d3r3kk/toga
2d8c0eb30371c4ef4f0610251233569e9c618e93
[ "BSD-3-Clause" ]
4
2019-02-13T17:54:15.000Z
2019-10-26T21:16:27.000Z
from .base import Widget class ScrollContainer(Widget): """ Instantiate a new instance of the scrollable container widget. Args: id (str): An identifier for this widget. style (:obj:`Style`): An optional style object. If no style is provided then a new one will be created for the ...
29.287234
82
0.615692
e108872f01048fdcff09766c68c8a113ef82c671
2,384
py
Python
src/sdk/pynni/tests/test_assessor.py
PeterouZh/nni
0a6c234a2ebb2c368d9bbfe2685e14ad12afc6ff
[ "MIT" ]
52
2020-08-17T03:59:32.000Z
2022-01-25T20:48:00.000Z
src/sdk/pynni/tests/test_assessor.py
PeterouZh/nni
0a6c234a2ebb2c368d9bbfe2685e14ad12afc6ff
[ "MIT" ]
21
2020-11-13T19:01:01.000Z
2022-02-27T09:12:51.000Z
src/sdk/pynni/tests/test_assessor.py
PeterouZh/nni
0a6c234a2ebb2c368d9bbfe2685e14ad12afc6ff
[ "MIT" ]
22
2020-08-25T03:31:44.000Z
2022-01-05T03:47:34.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import nni.protocol from nni.protocol import CommandType, send, receive from nni.assessor import Assessor, AssessResult from nni.msg_dispatcher import MsgDispatcher from io import BytesIO import json from unittest import TestCase, main _trials ...
30.177215
111
0.670302
3cf9cd2d5d3c4abaefb20029c37971b213c909e2
7,672
py
Python
python/cuml/test/test_dbscan.py
teju85/cuml
91ddc9eb557d7dc948e8394755890ee4a3102efd
[ "Apache-2.0" ]
1
2021-04-06T14:24:25.000Z
2021-04-06T14:24:25.000Z
python/cuml/test/test_dbscan.py
teju85/cuml
91ddc9eb557d7dc948e8394755890ee4a3102efd
[ "Apache-2.0" ]
1
2020-03-05T02:25:50.000Z
2020-03-05T02:25:50.000Z
python/cuml/test/test_dbscan.py
teju85/cuml
91ddc9eb557d7dc948e8394755890ee4a3102efd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
31.834025
74
0.586288
6d9e824779307496f0f4b69ab3f1a4d70b4d8692
3,584
py
Python
examples/play_stream.py
richardbarlow/python-sounddevice
afe0a822b5591c2e3ae7fe9f1517d7342e048c46
[ "MIT" ]
null
null
null
examples/play_stream.py
richardbarlow/python-sounddevice
afe0a822b5591c2e3ae7fe9f1517d7342e048c46
[ "MIT" ]
null
null
null
examples/play_stream.py
richardbarlow/python-sounddevice
afe0a822b5591c2e3ae7fe9f1517d7342e048c46
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Play a web stream. ffmpeg-python (https://github.com/kkroening/ffmpeg-python) has to be installed. If you don't know a stream URL, try http://icecast.spc.org:8000/longplayer (see https://longplayer.org/ for a description). """ import argparse import queue import sys import ffmpeg import so...
28.444444
79
0.674944
a308adc4b8f6b5aa81fe7b9faaeeeb23d121e9a9
862
py
Python
visualize/visual_csv_submit.py
lyw615/code_accumulation
5b2a5c039a725def37e19f226906ed1087880118
[ "MIT" ]
3
2021-11-09T07:15:00.000Z
2021-12-11T06:30:47.000Z
visualize/visual_csv_submit.py
lyw615/code_accumulation
5b2a5c039a725def37e19f226906ed1087880118
[ "MIT" ]
null
null
null
visualize/visual_csv_submit.py
lyw615/code_accumulation
5b2a5c039a725def37e19f226906ed1087880118
[ "MIT" ]
null
null
null
import sys, os file_path = os.path.abspath(__file__) sys.path.append(os.path.abspath(os.path.join(file_path, "..", ".."))) from code_aculat.visualize.visual_base import show_two_image import pandas as pd import os.path as osp from PIL import Image, ImageDraw csv_path = r"/home/lyw/t_ensemble.csv" with open(csv_pat...
27.806452
109
0.674014
01547ae202864010adda84ec270bfdb9ab5bdf04
8,967
py
Python
crfmnes/alg.py
bakanaouji/crfmnes
e21ae1f084f796feaec61cb1b4b7b3680c755ce7
[ "MIT" ]
null
null
null
crfmnes/alg.py
bakanaouji/crfmnes
e21ae1f084f796feaec61cb1b4b7b3680c755ce7
[ "MIT" ]
null
null
null
crfmnes/alg.py
bakanaouji/crfmnes
e21ae1f084f796feaec61cb1b4b7b3680c755ce7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import math import numpy as np import copy # evaluation value of the infeasible solution INFEASIBLE = np.inf def get_h_inv(dim): f = lambda a, b: ((1. + a * a) * math.exp(a * a / 2.) / 0.24) - 10. - dim f_prime = lambda a: (1. / 0.24) * a * math.exp(a * a / 2.) ...
46.46114
138
0.568752
ca73a40e19bad146cd257494d537b1a2c30875b0
75
py
Python
Glyph Nanny.roboFontExt/lib/glyphNannyToggleObserverVisibility.py
miguelsousa/glyph-nanny
9115cf2fbeb19043f2f1114bbdf1fc7415d92211
[ "MIT" ]
null
null
null
Glyph Nanny.roboFontExt/lib/glyphNannyToggleObserverVisibility.py
miguelsousa/glyph-nanny
9115cf2fbeb19043f2f1114bbdf1fc7415d92211
[ "MIT" ]
null
null
null
Glyph Nanny.roboFontExt/lib/glyphNannyToggleObserverVisibility.py
miguelsousa/glyph-nanny
9115cf2fbeb19043f2f1114bbdf1fc7415d92211
[ "MIT" ]
null
null
null
from glyphNanny import toggleObserverVisibility toggleObserverVisibility()
25
47
0.906667
9a09ac1c2fb8ac46523abde2f593c93e4109c63a
1,847
py
Python
mopidy_iris/__init__.py
diabl0w/Iris
bf6b80bfb0bec0c8f920b7d795abe0743b9ede13
[ "Apache-2.0" ]
null
null
null
mopidy_iris/__init__.py
diabl0w/Iris
bf6b80bfb0bec0c8f920b7d795abe0743b9ede13
[ "Apache-2.0" ]
null
null
null
mopidy_iris/__init__.py
diabl0w/Iris
bf6b80bfb0bec0c8f920b7d795abe0743b9ede13
[ "Apache-2.0" ]
null
null
null
import logging import pathlib from mopidy import config, ext __version__ = "3.54.1" logger = logging.getLogger(__name__) ## # Core extension class # # Loads config and gets the party started. Initiates any additional frontends, etc. ## class Extension(ext.Extension): dist_name = "Mopidy-Iris" ext_name = "...
28.859375
83
0.63346
f6a9acb8e422dab30c389f592770d5a45563366b
3,934
py
Python
venv/lib/python3.7/site-packages/convertdate/positivist.py
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/convertdate/positivist.py
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/convertdate/positivist.py
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of convertdate. # http://github.com/fitnr/convertdate # Licensed under the MIT license: # http://opensource.org/licenses/MIT # Copyright (c) 2016, fitnr <fitnr@fakeisthenewreal> from calendar import isleap from . import gregorian from .utils import floor from .data import p...
26.05298
90
0.624047
1ccc541a4d90272d13a56e006166a53c4a674eac
10,728
py
Python
3. Motion Estimation/Assignment_3_ME.py
IbrahimEl-Shal/Digital_Video_Processing
ce5649dba94ba5c50bc3fe6740d3059a99a6ea8f
[ "MIT" ]
2
2021-03-08T01:59:33.000Z
2021-03-08T01:59:39.000Z
3. Motion Estimation/Assignment_3_ME.py
IbrahimEl-Shal/Digital_Video_Processing
ce5649dba94ba5c50bc3fe6740d3059a99a6ea8f
[ "MIT" ]
null
null
null
3. Motion Estimation/Assignment_3_ME.py
IbrahimEl-Shal/Digital_Video_Processing
ce5649dba94ba5c50bc3fe6740d3059a99a6ea8f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 4 00:32:16 2019 @author: Ibrahim El-Shal Assignment 3: - Develop a Motion Estimation algorithm using Window Search to encode two images in YUV format. - Use 8x8 block. - Reconstruct the images using Motion Compensation. - Compute PSNR between the Source Image and the...
31.276968
117
0.617263