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
f663e1748423f55b43e840350ce70790d4be28ce
4,094
py
Python
composer/datasets/hparams.py
anisehsani/composer
42599682d50409b4a4eb7c91fad85d67418cee13
[ "Apache-2.0" ]
null
null
null
composer/datasets/hparams.py
anisehsani/composer
42599682d50409b4a4eb7c91fad85d67418cee13
[ "Apache-2.0" ]
null
null
null
composer/datasets/hparams.py
anisehsani/composer
42599682d50409b4a4eb7c91fad85d67418cee13
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. from __future__ import annotations import abc import dataclasses import textwrap from typing import Optional, Union try: import custom_inherit except ImportError: # if custom_inherit is not installed, then the docstrings will be incomplete. That's fine. met...
47.604651
120
0.691744
cd042c8069db7ff3aca8db5c00df60c90c45c5db
1,169
py
Python
hd_mysql/models.py
Rmond/OperMge
926f00107614ed55b26ff3beac178fe955de856a
[ "Apache-2.0" ]
1
2017-08-18T07:03:34.000Z
2017-08-18T07:03:34.000Z
hd_mysql/models.py
Rmond/OperMge
926f00107614ed55b26ff3beac178fe955de856a
[ "Apache-2.0" ]
null
null
null
hd_mysql/models.py
Rmond/OperMge
926f00107614ed55b26ff3beac178fe955de856a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django_celery_beat.models import PeriodicTask from celery.worker.strategy import default # Create your models here. class Custom_Schedule(models.Model): sd_name=models.CharField(max_length=32) sd_num=mode...
36.53125
58
0.734816
a3c02a7dbd3daef420456501718ee9a0e9c666a2
797
py
Python
eb-virt/bin/rst2odt.py
YutingPang/one_note
9dfc7061f07819cbac96e87080d767705d7dfe0c
[ "MIT" ]
null
null
null
eb-virt/bin/rst2odt.py
YutingPang/one_note
9dfc7061f07819cbac96e87080d767705d7dfe0c
[ "MIT" ]
null
null
null
eb-virt/bin/rst2odt.py
YutingPang/one_note
9dfc7061f07819cbac96e87080d767705d7dfe0c
[ "MIT" ]
null
null
null
#!/Users/yutingpang/git/eb-flask/eb-virt/bin/python # $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ A front end to the Docutils Publisher, producing OpenOffice documents. """ import sys try: impor...
25.709677
78
0.752823
97dd62916635bf378ab55b121c374c6aac3e081d
14,181
py
Python
tensorflow_probability/python/experimental/mcmc/diagonal_mass_matrix_adaptation.py
chrism0dwk/probability
ab260f15cae94c6802c2f2769fb448ad213b79cd
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/mcmc/diagonal_mass_matrix_adaptation.py
chrism0dwk/probability
ab260f15cae94c6802c2f2769fb448ad213b79cd
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/experimental/mcmc/diagonal_mass_matrix_adaptation.py
chrism0dwk/probability
ab260f15cae94c6802c2f2769fb448ad213b79cd
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
45.745161
106
0.711163
f26909a4f4df3e44ce2a197c7a36706f1a9635ca
7,448
py
Python
python/libraries/mypalletizer.py
elephantrobotics/myblockly-PI-mind-
d93b6c3b57abbe7cfb606f1a12bc4ddbcc5ee4dd
[ "MIT" ]
1
2022-01-15T17:45:03.000Z
2022-01-15T17:45:03.000Z
python/libraries/mypalletizer.py
elephantrobotics/myblockly_plus
1db311950e54b9a753bfecf2902e996dcb6f5e06
[ "MIT" ]
null
null
null
python/libraries/mypalletizer.py
elephantrobotics/myblockly_plus
1db311950e54b9a753bfecf2902e996dcb6f5e06
[ "MIT" ]
null
null
null
# coding=utf-8 import logging import math import time from .log import setup_logging from .generate import MyCobotCommandGenerator from .common import ProtocolCode, read, write class MyPalletizedataException(Exception): pass MIN_ID = 0 MAX_ID = 5 # In fact, most joints cannot reach plus or minus 180 degrees....
33.102222
103
0.549544
29e8c7f346ad6a9684312a00b1f8a214437b97c4
2,970
py
Python
py_uci/base.py
AlexandreAbraham/py_uci
cc66a43711b66a93fdd903cc1cfb1b885e6bff12
[ "MIT" ]
6
2019-04-17T14:15:44.000Z
2021-05-25T14:24:24.000Z
py_uci/base.py
AlexandreAbraham/py_uci
cc66a43711b66a93fdd903cc1cfb1b885e6bff12
[ "MIT" ]
null
null
null
py_uci/base.py
AlexandreAbraham/py_uci
cc66a43711b66a93fdd903cc1cfb1b885e6bff12
[ "MIT" ]
2
2019-10-27T10:05:16.000Z
2020-10-28T09:16:28.000Z
# -*- coding: utf-8 -*- """ Created on Thu Mar 21 14:55:27 2019 @author: nsde """ #%% from bs4 import BeautifulSoup import requests import os import numpy as np import pandas as pd from .dataset_table import T from .utility import get_dir, download_file, check_if_file_exist, convert_to_numeric #%% class Dataset(obje...
29.7
86
0.569024
a8e2607c3b909a26cf45664b4c4b5ef5661ce2a3
994
py
Python
profiles_project/urls.py
basakmatvei/profiles-rest-api
38b60e0779bdc1296e3ba275505beff5868c39be
[ "MIT" ]
null
null
null
profiles_project/urls.py
basakmatvei/profiles-rest-api
38b60e0779bdc1296e3ba275505beff5868c39be
[ "MIT" ]
null
null
null
profiles_project/urls.py
basakmatvei/profiles-rest-api
38b60e0779bdc1296e3ba275505beff5868c39be
[ "MIT" ]
null
null
null
"""profiles_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
39.76
81
0.698189
07b75d3e1e65b0aa0a38ddb289289420e19a6f1a
17,048
py
Python
hata/ext/command_utils/pagination.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
null
null
null
hata/ext/command_utils/pagination.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
1
2022-02-08T16:54:39.000Z
2022-02-08T16:54:39.000Z
hata/ext/command_utils/pagination.py
WizzyBots/hata
f6991afc0bebf7dad932888a536f4d010f8663c7
[ "0BSD" ]
null
null
null
__all__ = ('Pagination',) from scarletio import CancelledError, copy_docs from ...discord import Channel from ...discord.core import BUILTIN_EMOJIS from ...discord.exceptions import DiscordException, ERROR_CODES from ...discord.interaction import InteractionEvent from ...discord.message import Message from .bases im...
40.590476
117
0.486039
b23c886b3ae022746f64c7c35f1a1fd94d837fe4
13,942
py
Python
env/lib/python3.6/site-packages/scipy/sparse/dia.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
69
2020-03-31T06:40:17.000Z
2022-02-25T11:48:18.000Z
venv/lib/python3.7/site-packages/scipy/sparse/dia.py
John1001Song/Big-Data-Robo-Adviser
9444dce96954c546333d5aecc92a06c3bfd19aa5
[ "MIT" ]
12
2018-12-06T22:06:49.000Z
2022-02-25T17:40:44.000Z
venv/lib/python3.7/site-packages/scipy/sparse/dia.py
John1001Song/Big-Data-Robo-Adviser
9444dce96954c546333d5aecc92a06c3bfd19aa5
[ "MIT" ]
28
2019-03-22T01:07:13.000Z
2022-02-21T16:38:27.000Z
"""Sparse DIAgonal format""" from __future__ import division, print_function, absolute_import __docformat__ = "restructuredtext en" __all__ = ['dia_matrix', 'isspmatrix_dia'] import numpy as np from .base import isspmatrix, _formats, spmatrix from .data import _data_matrix from .sputils import (isshape, upcast_cha...
33.11639
99
0.548056
ce7162142f86944cb15789ea1a26058839c19347
1,538
py
Python
scripts/hoi4/terrain_map.py
SaucyPigeon/pyradox
a500a5628f57e056fa019ba1e114118abe6dc205
[ "MIT" ]
null
null
null
scripts/hoi4/terrain_map.py
SaucyPigeon/pyradox
a500a5628f57e056fa019ba1e114118abe6dc205
[ "MIT" ]
null
null
null
scripts/hoi4/terrain_map.py
SaucyPigeon/pyradox
a500a5628f57e056fa019ba1e114118abe6dc205
[ "MIT" ]
null
null
null
import hoi4 import csv import os import re import collections import pyradox definition_csv = os.path.join(pyradox.get_game_directory('HoI4'), 'map', 'definition.csv') terrains = pyradox.txt.parse_file(os.path.join(pyradox.get_game_directory('HoI4'), 'common', 'terrain', '00_terrain.txt'), verbose=False)...
30.76
152
0.628739
8765f78dabe0408b16f456e8ee232e81fbcf6478
517
py
Python
invenio_rdm_records/proxies.py
wgresshoff/invenio-rdm-records
91945829884ea4e46b05be26c97f11ffd045bcec
[ "MIT" ]
null
null
null
invenio_rdm_records/proxies.py
wgresshoff/invenio-rdm-records
91945829884ea4e46b05be26c97f11ffd045bcec
[ "MIT" ]
1
2020-10-28T16:32:43.000Z
2021-04-27T11:46:28.000Z
invenio_rdm_records/proxies.py
wgresshoff/invenio-rdm-records
91945829884ea4e46b05be26c97f11ffd045bcec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2019 CERN. # Copyright (C) 2019 Northwestern University. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Helper proxy to the state object.""" from flask import curre...
28.722222
77
0.742747
8eff23305225acfbc7c3093e2ea2192bad05d4b3
1,309
py
Python
tests/test_dialog.py
Sab0tag3d/pyppeteer
5edabb3e25d72f4d1a90f0ed77f1981b2479c8ae
[ "MIT" ]
3,747
2017-08-31T12:31:42.000Z
2022-03-31T07:31:16.000Z
tests/test_dialog.py
Sab0tag3d/pyppeteer
5edabb3e25d72f4d1a90f0ed77f1981b2479c8ae
[ "MIT" ]
284
2017-09-03T19:02:13.000Z
2020-05-06T03:34:36.000Z
tests/test_dialog.py
Sab0tag3d/pyppeteer
5edabb3e25d72f4d1a90f0ed77f1981b2479c8ae
[ "MIT" ]
487
2017-09-03T16:22:40.000Z
2022-03-22T13:23:05.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import asyncio from syncer import sync from .base import BaseTestCase class TestDialog(BaseTestCase): @sync async def test_alert(self): def dialog_test(dialog): self.assertEqual(dialog.type, 'alert') self.assertEqual(dialog.defa...
32.725
78
0.619557
8b25424f5a5d9ddc44a1124c576b67341fd77d16
846
py
Python
chap6/people_info.py
wikilike7/python-crash-course
85cd7a2ab6e43a554c282b6e0c1c44c415cca3a3
[ "MIT" ]
null
null
null
chap6/people_info.py
wikilike7/python-crash-course
85cd7a2ab6e43a554c282b6e0c1c44c415cca3a3
[ "MIT" ]
null
null
null
chap6/people_info.py
wikilike7/python-crash-course
85cd7a2ab6e43a554c282b6e0c1c44c415cca3a3
[ "MIT" ]
1
2019-03-05T09:31:27.000Z
2019-03-05T09:31:27.000Z
# 6.1 people_info = { 'first_name': 'shichao', 'last_name': 'wang', 'age': '21', 'city': 'nanjing' } for person in people_info: print(person.title() + ': ' + people_info[person].title()) # 6.2 favorite_numbers = { 'zibba': '13', 'Andy': '1', 'Amy': '2', } for favorite_number in favo...
24.171429
106
0.632388
28ec1552de66fbf62e0108246ca5cdf2bd14a916
1,062
py
Python
scripts/ingestors/ncdc/xcheck_ghcn_stations.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
1
2019-10-07T17:01:24.000Z
2019-10-07T17:01:24.000Z
scripts/ingestors/ncdc/xcheck_ghcn_stations.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
scripts/ingestors/ncdc/xcheck_ghcn_stations.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
"""Compare what we have for stations and what NCEI has for GHCN""" from __future__ import print_function import sys import pandas as pd from pyiem.network import Table as NetworkTable def read_table(state): """Load up what NCEI has""" rows = [] for line in open('ghcnd-stations.txt'): if not line....
28.702703
73
0.576271
381da616768ff593aa1e45633c03aaf1d3e3f089
286
py
Python
django/social_network/feed/admin.py
sixfwa/django-examples
4da7f9d255e622482a8562f0eeb0417d623c9385
[ "MIT" ]
null
null
null
django/social_network/feed/admin.py
sixfwa/django-examples
4da7f9d255e622482a8562f0eeb0417d623c9385
[ "MIT" ]
24
2021-03-19T12:01:04.000Z
2022-02-10T12:21:49.000Z
django/social_network/feed/admin.py
sixfwa/django-examples
4da7f9d255e622482a8562f0eeb0417d623c9385
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Post class PostAdmin(admin.ModelAdmin): list_display = ("id", "content", "author", "published_date") list_filter = ("author",) list_per_page = 25 admin.site.register(Post, PostAdmin)
15.888889
64
0.706294
a8b393545b4172630d018ea2430b0ae2615f6fed
3,937
py
Python
src/programy/clients/sanicrest.py
ItsPhant/program-y
c2b211fcaf8cedc7d6d95a8ea9470a913efa1622
[ "MIT" ]
null
null
null
src/programy/clients/sanicrest.py
ItsPhant/program-y
c2b211fcaf8cedc7d6d95a8ea9470a913efa1622
[ "MIT" ]
null
null
null
src/programy/clients/sanicrest.py
ItsPhant/program-y
c2b211fcaf8cedc7d6d95a8ea9470a913efa1622
[ "MIT" ]
1
2020-02-21T17:58:05.000Z
2020-02-21T17:58:05.000Z
""" Copyright (c) 2016-17 Keith Sterling http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
41.882979
120
0.715011
c022cec9261506341d84fbf4d3bf11a10045a971
936
py
Python
examples/plotting/server/lorenz.py
tswicegood/bokeh
2e74be5c9288306896e8c76af2e14a8c7513e0e3
[ "BSD-3-Clause" ]
2
2015-07-23T21:19:52.000Z
2016-01-25T17:00:15.000Z
examples/plotting/server/lorenz.py
csaid/bokeh
4312b2de1a15fb24884fcd97eaf6442bf8b4bd7b
[ "BSD-3-Clause" ]
null
null
null
examples/plotting/server/lorenz.py
csaid/bokeh
4312b2de1a15fb24884fcd97eaf6442bf8b4bd7b
[ "BSD-3-Clause" ]
2
2015-12-22T04:13:10.000Z
2021-07-06T21:18:04.000Z
# The plot server must be running # Go to http://localhost:5006/bokeh to view this plot import numpy as np from scipy.integrate import odeint from bokeh.plotting import * sigma = 10 rho = 28 beta = 8.0/3 theta = 3 * np.pi / 4 def lorenz(xyz, t): x, y, z = xyz x_dot = sigma * (y - x) y_dot = x * rho - x ...
23.4
87
0.622863
a63fbcd877db10d43233565c64f94e78094bd3bc
1,486
py
Python
chrome/installer/mini_installer/generate_previous_version_mini_installer.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
chrome/installer/mini_installer/generate_previous_version_mini_installer.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
chrome/installer/mini_installer/generate_previous_version_mini_installer.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
# Copyright 2016 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. """Generates a mini_installer with a lower version than an existing one.""" import argparse import subprocess import sys def main(): parser = argparse.A...
33.022222
80
0.681696
879cea79e4099c550b6956a218c33a8c7eee4c9b
3,393
py
Python
guillotina/schema/__init__.py
diefenbach/guillotina
a8c7247fca8294752901f643b35c5ed1c5dee76d
[ "BSD-2-Clause" ]
null
null
null
guillotina/schema/__init__.py
diefenbach/guillotina
a8c7247fca8294752901f643b35c5ed1c5dee76d
[ "BSD-2-Clause" ]
null
null
null
guillotina/schema/__init__.py
diefenbach/guillotina
a8c7247fca8294752901f643b35c5ed1c5dee76d
[ "BSD-2-Clause" ]
null
null
null
# XXX INFO # This package is pulled out of guillotina.schema to give guillotina more control # over our use of fields(async) and to also provide a nicer api and less dependencies # in order to work with guillotina ############################################################################## # # Copyright (c) 2002 Zop...
44.644737
85
0.804008
cfb1d1aa1e616e6ac8d5a961b08e0a5c7f0839db
658
py
Python
braid/package.py
alex/braid
63016647ab975e56680704df041d3b0f5d4e201c
[ "MIT" ]
1
2015-11-08T13:02:34.000Z
2015-11-08T13:02:34.000Z
braid/package.py
alex/braid
63016647ab975e56680704df041d3b0f5d4e201c
[ "MIT" ]
null
null
null
braid/package.py
alex/braid
63016647ab975e56680704df041d3b0f5d4e201c
[ "MIT" ]
null
null
null
from braid.api import sudo, abort from braid.info import distroFamily def update(): """ Update package list. """ if distroFamily() == 'debian': sudo('/usr/bin/apt-get update') elif distroFamily() == 'fedora': # Automatic pass else: abort('Unknown distro.') def...
23.5
84
0.569909
3d856d4bb5a0e1be84105869419bb01581b1339d
1,719
py
Python
samples/snippets/simple_app.py
KoffieLabs/python-bigquery
33b317abdc6d69f33722cb0504bb0b78c1c80e30
[ "Apache-2.0" ]
1
2022-03-25T21:07:44.000Z
2022-03-25T21:07:44.000Z
samples/snippets/simple_app.py
abecerrilsalas/python-bigquery
8da4fa9e77bcfd2b68818b5d65b38ccc59899a01
[ "Apache-2.0" ]
null
null
null
samples/snippets/simple_app.py
abecerrilsalas/python-bigquery
8da4fa9e77bcfd2b68818b5d65b38ccc59899a01
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 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...
31.254545
74
0.700407
eab68e72a961f36a34226a4d014217217815bced
8,826
py
Python
aem2segy/aem2segy.py
RichardScottOZ/AEM2SEG-Y
1d94ca7fd1f66e1da0aad5ac9b3b0bf85b6ac0ab
[ "Apache-2.0" ]
null
null
null
aem2segy/aem2segy.py
RichardScottOZ/AEM2SEG-Y
1d94ca7fd1f66e1da0aad5ac9b3b0bf85b6ac0ab
[ "Apache-2.0" ]
null
null
null
aem2segy/aem2segy.py
RichardScottOZ/AEM2SEG-Y
1d94ca7fd1f66e1da0aad5ac9b3b0bf85b6ac0ab
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #=============================================================================== # Copyright 2017 Geoscience Australia # # 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 ...
28.019048
109
0.5954
37638a659f24d1cbb5c7e53831f15db08a50a056
5,755
py
Python
course_access_groups/views.py
appsembler/course-access-groups
601b17b8edda8fc41594e7ea2f53ba1800e03c49
[ "MIT" ]
4
2020-03-09T15:47:17.000Z
2021-09-08T09:17:42.000Z
course_access_groups/views.py
appsembler/course-access-groups
601b17b8edda8fc41594e7ea2f53ba1800e03c49
[ "MIT" ]
51
2019-11-26T14:09:33.000Z
2022-03-09T08:27:59.000Z
course_access_groups/views.py
appsembler/course-access-groups
601b17b8edda8fc41594e7ea2f53ba1800e03c49
[ "MIT" ]
3
2020-04-12T22:33:24.000Z
2021-09-30T20:28:03.000Z
# -*- coding: utf-8 -*- """ API Endpoints for Course Access Groups. """ from django.contrib.auth import get_user_model from django_filters.rest_framework import DjangoFilterBackend from opaque_keys.edx.keys import CourseKey from organizations.models import OrganizationCourse, UserOrganizationMapping from rest_framewo...
35.306748
96
0.743354
8fd178cdf721f4daca631dac0dba9c508f73f3b7
18,137
py
Python
pibooth/config/parser.py
babou7635/pibooth
e82b26ad792df5d5da7d2d8d63392db8442a5eb4
[ "MIT" ]
1
2020-09-03T07:50:53.000Z
2020-09-03T07:50:53.000Z
pibooth/config/parser.py
babou7635/pibooth
e82b26ad792df5d5da7d2d8d63392db8442a5eb4
[ "MIT" ]
null
null
null
pibooth/config/parser.py
babou7635/pibooth
e82b26ad792df5d5da7d2d8d63392db8442a5eb4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Pibooth configuration. """ import io import ast import os import os.path as osp import itertools import inspect from collections import OrderedDict as odict from pibooth.utils import LOGGER, open_text_editor from pibooth import language from pibooth.plugins import get_plugin_name try: ...
37.395876
125
0.527099
240a2cff0673815fdc6aeb32f9603f9a1f79c650
65,559
py
Python
sarpy/geometry/point_projection.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
1
2021-02-04T08:44:18.000Z
2021-02-04T08:44:18.000Z
sarpy/geometry/point_projection.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
null
null
null
sarpy/geometry/point_projection.py
pressler-vsc/sarpy
fa6c951c42b9a7d9df2edfa53c771494cb0246fb
[ "MIT" ]
null
null
null
""" Functions to map between the coordinates in image pixel space and geographical coordinates. """ import logging from typing import Tuple from types import MethodType # for binding a method dynamically to a class import numpy from sarpy.compliance import string_types, int_func from sarpy.geometry.geocoords import...
39.35114
152
0.664211
30e264edeed3ddfda3c19863f984cf0a6ed23edb
18,318
py
Python
tests/test_algorithms.py
OGKG/CGLib
1c4a4b0a28cdbaf5c0c4b1b82b75048cdfac2ab6
[ "Apache-2.0" ]
null
null
null
tests/test_algorithms.py
OGKG/CGLib
1c4a4b0a28cdbaf5c0c4b1b82b75048cdfac2ab6
[ "Apache-2.0" ]
null
null
null
tests/test_algorithms.py
OGKG/CGLib
1c4a4b0a28cdbaf5c0c4b1b82b75048cdfac2ab6
[ "Apache-2.0" ]
null
null
null
import unittest from models import ( Point, Vertex, Graph, Edge, BinTree, ChainsBinTree, KdTree, Node, OrientedGraph, OrientedEdge, NodeWithParent, RegionTree ) from collections import OrderedDict from algo.stripe_method import stripe from algo.kd_tree_method import kd_tr...
32.594306
94
0.41784
799389e659b5c231da36de7c3437f06c93c079c6
1,929
py
Python
saas/backend/apps/approval/audit.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
7
2021-08-13T03:48:16.000Z
2021-12-20T15:31:38.000Z
saas/backend/apps/approval/audit.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
456
2021-08-16T02:13:57.000Z
2022-03-30T10:02:49.000Z
saas/backend/apps/approval/audit.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
17
2021-08-10T04:08:46.000Z
2022-03-14T14:24:36.000Z
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with th...
40.1875
115
0.736133
b93cadbbe4ea25ac36c3b35c1b890c3dd39e1c1b
1,372
py
Python
modules/platforms/python/examples/scans.py
FedorUporov/gridgain
883125f943743fa8198d88be98dfe61bde86ad96
[ "CC0-1.0" ]
null
null
null
modules/platforms/python/examples/scans.py
FedorUporov/gridgain
883125f943743fa8198d88be98dfe61bde86ad96
[ "CC0-1.0" ]
null
null
null
modules/platforms/python/examples/scans.py
FedorUporov/gridgain
883125f943743fa8198d88be98dfe61bde86ad96
[ "CC0-1.0" ]
null
null
null
# # Copyright 2019 GridGain Systems, Inc. and Contributors. # # Licensed under the GridGain Community Edition License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.gridgain.com/products/software/community-edition/gridgai...
24.5
101
0.663994
fd2313ec0dec46e00ba0eb58eef8490d66679307
57,659
py
Python
sdk/python/pulumi_aws/amplify/branch.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/amplify/branch.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/amplify/branch.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "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 warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
46.574313
297
0.654954
a45592004ec3dec77d2b25fdcd4f1879d41e8de7
3,460
py
Python
liquid/builtin/tags/cycle_tag.py
jg-rp/liquid
a2946d3ee7f8ac0c8db05f943ff8deb10bfad18c
[ "MIT" ]
19
2021-03-20T05:44:23.000Z
2022-03-24T18:34:34.000Z
liquid/builtin/tags/cycle_tag.py
jg-rp/liquid
a2946d3ee7f8ac0c8db05f943ff8deb10bfad18c
[ "MIT" ]
50
2020-12-07T15:30:56.000Z
2022-03-25T17:10:10.000Z
liquid/builtin/tags/cycle_tag.py
jg-rp/liquid
a2946d3ee7f8ac0c8db05f943ff8deb10bfad18c
[ "MIT" ]
3
2021-01-24T15:51:22.000Z
2022-03-25T16:00:17.000Z
"""Tag and node definition for the built-in "cycle" tag.""" import sys from typing import Any from typing import List from typing import Optional from typing import TextIO from liquid.ast import Node from liquid.context import Context from liquid.exceptions import LiquidSyntaxError from liquid.expression import Expr...
29.827586
85
0.643064
6c12e6fb6d21856a4eecf35c56cd8757cfa96c0a
22,801
py
Python
interfaces/ATS_VM/python_apps/api_clients/api_client.py
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
4
2016-04-26T03:43:54.000Z
2016-11-17T08:09:04.000Z
interfaces/ATS_VM/python_apps/api_clients/api_client.py
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
17
2015-01-05T21:06:22.000Z
2015-12-07T20:45:44.000Z
interfaces/ATS_VM/python_apps/api_clients/api_client.py
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
3
2016-04-26T03:43:55.000Z
2020-11-06T11:02:08.000Z
############################################################################### # This file holds the implementations for all the API clients. # # If you want to develop a new client, here are some suggestions: Get the fetch # methods working first, then the push, then the liquidsoap notifier. You will # probably want...
42.539179
159
0.636069
25ca759e3aa528ea35e9d6b2fffdc214ec98cee1
1,133
py
Python
tests/unit/test_calibration_timing.py
VMS19/Inhalator
77ff3f063efa48e825d1c5ef648203b2d70b753e
[ "MIT" ]
9
2020-03-30T08:27:57.000Z
2020-04-11T12:37:28.000Z
tests/unit/test_calibration_timing.py
VMS19/Inhalator
77ff3f063efa48e825d1c5ef648203b2d70b753e
[ "MIT" ]
145
2020-03-25T20:41:24.000Z
2020-04-15T17:39:10.000Z
tests/unit/test_calibration_timing.py
VMS19/Inhalator
77ff3f063efa48e825d1c5ef648203b2d70b753e
[ "MIT" ]
4
2020-03-22T09:57:27.000Z
2020-04-15T18:10:48.000Z
import pytest from unittest.mock import patch from logic.auto_calibration import TailDetector, AutoFlowCalibrator from drivers.driver_factory import DriverFactory @pytest.fixture def calibrator(): return AutoFlowCalibrator( dp_driver=DriverFactory(True).differential_pressure, interval_length=100,...
30.621622
84
0.762577
1d13c72090cd337c6131080d1b17c30d975868ed
3,658
py
Python
examples/dtq/train_val_script.py
nasioutz/DeepHash
963ca74037f0694955571a178d2fb0bc380e9706
[ "MIT" ]
null
null
null
examples/dtq/train_val_script.py
nasioutz/DeepHash
963ca74037f0694955571a178d2fb0bc380e9706
[ "MIT" ]
null
null
null
examples/dtq/train_val_script.py
nasioutz/DeepHash
963ca74037f0694955571a178d2fb0bc380e9706
[ "MIT" ]
null
null
null
import numpy as np import scipy.io as sio import warnings import data_provider.image as dataset import model.dtq as model from pprint import pprint import os import argparse warnings.filterwarnings("ignore", category = DeprecationWarning) warnings.filterwarnings("ignore", category = FutureWarning) os.environ['TF_CPP_M...
45.725
98
0.734008
ea0a0c27eef1ca8e9724fe9a048f73541a89de42
819
py
Python
tests/integration/pillar/test_pillar_include.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
tests/integration/pillar/test_pillar_include.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
tests/integration/pillar/test_pillar_include.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
# -*- coding: utf-8 -*- """ Pillar include tests """ from __future__ import absolute_import, unicode_literals from tests.support.case import ModuleCase class PillarIncludeTest(ModuleCase): def test_pillar_include(self): """ Test pillar include """ ret = self.minion_run("pillar.ite...
27.3
56
0.568987
cc4441a8e3f2dfa7a912100959f28d7d824ba958
4,301
py
Python
ant.py
hpharmsen/antology
080ae615d4d59a9df5abfdf5720c5b58d6aa66db
[ "Unlicense" ]
null
null
null
ant.py
hpharmsen/antology
080ae615d4d59a9df5abfdf5720c5b58d6aa66db
[ "Unlicense" ]
null
null
null
ant.py
hpharmsen/antology
080ae615d4d59a9df5abfdf5720c5b58d6aa66db
[ "Unlicense" ]
null
null
null
import random from arcade import Sprite, load_texture, check_for_collision_with_list from activities import explore, backtrack, follow_the_food, find_the_food from path import Path class Ant(Sprite): def __init__(self, x, y, arena, colony, scale=1, activity="wander"): super().__init__(center_x=x, center_y...
41.757282
113
0.57847
12652e3dccdc8638fffda78afd982ac66354304a
19,392
py
Python
aqc_utils/db_functions_julosdu13.py
truejulosdu13/NiCOlit
879c155e2bd017da4f8d89d4bfd24196039944c4
[ "MIT" ]
2
2022-03-25T15:24:44.000Z
2022-03-25T15:24:54.000Z
aqc_utils/db_functions_julosdu13.py
truejulosdu13/NiCOlit
879c155e2bd017da4f8d89d4bfd24196039944c4
[ "MIT" ]
null
null
null
aqc_utils/db_functions_julosdu13.py
truejulosdu13/NiCOlit
879c155e2bd017da4f8d89d4bfd24196039944c4
[ "MIT" ]
null
null
null
import logging try: from openbabel import pybel # ob 3.0.0 except ImportError: # ob 2.4 import pybel import re import numpy as np import pandas as pd import pymongo from bson.objectid import ObjectId from rdkit import Chem from rdkit.Chem import rdFMCS from aqc_utils.helper_classes import config from aqc_uti...
41.524625
136
0.633973
7fc62de5bf23c14cb081b4a988a02155c653bf4b
258
py
Python
cata/__meta__.py
iandennismiller/cata
d647a1199125f66cf69412e91fef1f3f0706483b
[ "MIT" ]
null
null
null
cata/__meta__.py
iandennismiller/cata
d647a1199125f66cf69412e91fef1f3f0706483b
[ "MIT" ]
null
null
null
cata/__meta__.py
iandennismiller/cata
d647a1199125f66cf69412e91fef1f3f0706483b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # catalog (c) Ian Dennis Miller __project__ = 'catalog' __version__ = '0.1.0' __author__ = 'Ian Dennis Miller' __email__ = 'ian@iandennismiller.com' __url__ = 'https://catalog-data.readthedocs.io' __copyright__ = 'Ian Dennis Miller'
25.8
47
0.713178
7cf083ae91e90f3ddf6fda4033e93d97f00b2689
1,218
py
Python
services/arlington/groups/migrations/0001_initial.py
ShadowServants/ctfcup2018
561ad0f40554afdbe2823528037abf7191c3db21
[ "WTFPL" ]
4
2018-12-03T12:51:37.000Z
2019-04-08T10:14:02.000Z
services/arlington/groups/migrations/0001_initial.py
ctfcup/2018-attack-defense
561ad0f40554afdbe2823528037abf7191c3db21
[ "WTFPL" ]
3
2020-02-11T23:29:21.000Z
2021-06-10T21:01:47.000Z
services/arlington/groups/migrations/0001_initial.py
ctfcup/2018-attack-defense
561ad0f40554afdbe2823528037abf7191c3db21
[ "WTFPL" ]
1
2019-11-29T15:24:20.000Z
2019-11-29T15:24:20.000Z
# Generated by Django 2.1.3 on 2018-11-13 01:19 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel...
34.8
114
0.587028
fa09b1c0388426624eeb818266c013347e10a970
4,208
py
Python
setup.py
davidroberson/cutadapt
c15054978d35a14a9587caca81c204dc37663eb9
[ "MIT" ]
1
2018-12-12T10:31:51.000Z
2018-12-12T10:31:51.000Z
setup.py
davidroberson/cutadapt
c15054978d35a14a9587caca81c204dc37663eb9
[ "MIT" ]
null
null
null
setup.py
davidroberson/cutadapt
c15054978d35a14a9587caca81c204dc37663eb9
[ "MIT" ]
null
null
null
""" Build cutadapt. """ import sys import os.path from setuptools import setup, Extension from distutils.version import LooseVersion from distutils.command.sdist import sdist as _sdist from distutils.command.build_ext import build_ext as _build_ext import versioneer MIN_CYTHON_VERSION = '0.24' if sys.version_info < ...
29.426573
76
0.710789
5321a92aa3f211d2a9e219aaf45dbc61de418d49
4,771
py
Python
nova/virt/xenapi/image/bittorrent.py
zaina/nova
181358c172d606b23c9cc14b58d677d911013c02
[ "Apache-2.0" ]
null
null
null
nova/virt/xenapi/image/bittorrent.py
zaina/nova
181358c172d606b23c9cc14b58d677d911013c02
[ "Apache-2.0" ]
1
2019-01-02T01:30:35.000Z
2019-01-02T01:38:02.000Z
nova/virt/xenapi/image/bittorrent.py
zaina/nova
181358c172d606b23c9cc14b58d677d911013c02
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 OpenStack Foundation # 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 requ...
42.221239
79
0.628589
73e421ff18cc69e99aba2bf8e5e38626d7092873
4,228
py
Python
profiles_api/views.py
sanydge/rest_api
afc078cbe011ed42504b6b759acd41eaf67768d8
[ "MIT" ]
null
null
null
profiles_api/views.py
sanydge/rest_api
afc078cbe011ed42504b6b759acd41eaf67768d8
[ "MIT" ]
5
2020-06-05T20:31:13.000Z
2021-06-10T18:13:25.000Z
profiles_api/views.py
sanydge/rest_api
afc078cbe011ed42504b6b759acd41eaf67768d8
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework import viewsets from rest_framework.authentication import TokenAuthentication from rest_framework import filters from rest_framework.permissions import IsAuthenticated from profil...
31.789474
77
0.651372
cd922135d173ed58f4443de4c708bcbaf6ecbc39
952
py
Python
tests/test_mem.py
dkostic/liboqs
3a56677a935e52b6b76edaa8f9312f0ba46a0398
[ "MIT" ]
null
null
null
tests/test_mem.py
dkostic/liboqs
3a56677a935e52b6b76edaa8f9312f0ba46a0398
[ "MIT" ]
null
null
null
tests/test_mem.py
dkostic/liboqs
3a56677a935e52b6b76edaa8f9312f0ba46a0398
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT import helpers import pytest from pathlib import Path @helpers.filtered_test @pytest.mark.parametrize('kem_name', helpers.available_kems_by_name()) def test_mem_kem(kem_name): if not(helpers.is_kem_enabled_by_name(kem_name)): pytest.skip('Not enabled') Path('build/mem-b...
28.848485
93
0.737395
ed779bed4870d6a54131ac5d25b9e62cbd8e7f18
2,331
py
Python
prettyqt/widgets/itemeditorfactory.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
7
2019-05-01T01:34:36.000Z
2022-03-08T02:24:14.000Z
prettyqt/widgets/itemeditorfactory.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
141
2019-04-16T11:22:01.000Z
2021-04-14T15:12:36.000Z
prettyqt/widgets/itemeditorfactory.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
5
2019-04-17T11:48:19.000Z
2021-11-21T10:30:19.000Z
from __future__ import annotations from prettyqt import widgets from prettyqt.qt import QtCore, QtGui, QtWidgets TYPES = { bool: 1, int: 2, str: 10, float: 38, QtGui.QColor: 67, QtGui.QCursor: 74, QtCore.QDate: 14, QtCore.QSize: 21, QtCore.QTime: 15, list: 9, QtGui.QPolygo...
25.615385
83
0.646075
a225f106ed1c33be492b91267f82cd1742e05506
1,868
py
Python
lib/cogs/sell.py
namanyt/discord-lassan-bot
c95db8625ddf6cd0071988803cb1831a24ed18ab
[ "MIT" ]
1
2021-08-04T11:13:19.000Z
2021-08-04T11:13:19.000Z
lib/cogs/sell.py
namanyt/discord-lassan-bot
c95db8625ddf6cd0071988803cb1831a24ed18ab
[ "MIT" ]
null
null
null
lib/cogs/sell.py
namanyt/discord-lassan-bot
c95db8625ddf6cd0071988803cb1831a24ed18ab
[ "MIT" ]
null
null
null
from json import load, dump from discord.ext.commands import Cog, command, cooldown, BucketType from lib.db import db class Sell(Cog): def __init__(self, bot): self.bot = bot @command(name='sell') @cooldown(1, 2, type=BucketType.user) async def sell_item(self, ctx, category, item_user): ...
32.77193
93
0.496788
234b527bfdfb267623f804d25a0d43d44460017c
31,927
py
Python
nova/auth/manager.py
bopopescu/openstack-12
2c7e0d1e63cae7aaa38095439843c9a2abb0382b
[ "Apache-2.0" ]
null
null
null
nova/auth/manager.py
bopopescu/openstack-12
2c7e0d1e63cae7aaa38095439843c9a2abb0382b
[ "Apache-2.0" ]
null
null
null
nova/auth/manager.py
bopopescu/openstack-12
2c7e0d1e63cae7aaa38095439843c9a2abb0382b
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
37.210956
79
0.581013
6cf0e6345f51882e320e1dc1500facde92776175
133
py
Python
codeforces/1030A.py
bartekpacia/python-training
00a1047f70ab44cc5afed8619eb4eac0e406f3e3
[ "MIT" ]
null
null
null
codeforces/1030A.py
bartekpacia/python-training
00a1047f70ab44cc5afed8619eb4eac0e406f3e3
[ "MIT" ]
null
null
null
codeforces/1030A.py
bartekpacia/python-training
00a1047f70ab44cc5afed8619eb4eac0e406f3e3
[ "MIT" ]
null
null
null
n = int(input()) nums = input().split(" ") for num in nums: if num == '1': print("hard") exit(0) print("easy")
13.3
25
0.481203
3112d005daa9d2c2ed7e022dbe7129c8158a7e36
7,037
py
Python
azure-devops/azext_devops/dev/team/project.py
moerketh/azure-devops-cli-extension
634cf15e8704249c0053a5c8be8e7d7139184c25
[ "MIT" ]
147
2017-11-15T20:39:05.000Z
2019-01-17T15:40:00.000Z
azure-devops/azext_devops/dev/team/project.py
moerketh/azure-devops-cli-extension
634cf15e8704249c0053a5c8be8e7d7139184c25
[ "MIT" ]
139
2017-11-15T19:12:11.000Z
2019-01-22T07:56:23.000Z
azure-devops/azext_devops/dev/team/project.py
moerketh/azure-devops-cli-extension
634cf15e8704249c0053a5c8be8e7d7139184c25
[ "MIT" ]
46
2017-11-17T09:15:29.000Z
2019-01-14T07:41:03.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
41.639053
118
0.67344
1d5f4e799f2541454dc0633bff16174549741af2
17,262
py
Python
python/html_checks.py
apluslms/grade-web
8f7eeb62c98bbd9b80b8499ed69d8853a1fc7bf3
[ "MIT" ]
null
null
null
python/html_checks.py
apluslms/grade-web
8f7eeb62c98bbd9b80b8499ed69d8853a1fc7bf3
[ "MIT" ]
null
null
null
python/html_checks.py
apluslms/grade-web
8f7eeb62c98bbd9b80b8499ed69d8853a1fc7bf3
[ "MIT" ]
1
2021-03-01T10:24:39.000Z
2021-03-01T10:24:39.000Z
#!/bin/#!/usr/bin/env python3 import html5lib from xml.dom.minidom import (Document, Element) from html import escape import tinycss import esprima class Logger: def __init__(self, reporter, level=0, points=0): self.reporter = reporter self.level = level self.level_max = points > 0 ...
35.9625
106
0.587939
1eeb430b7546a29f3f3580a0f36973e10eece483
167
py
Python
office_tracker/leave_tracker/admin.py
tanvir002700/tracker
567c3be2f36ac120fb412c06126cbd8fa72be4b9
[ "MIT" ]
null
null
null
office_tracker/leave_tracker/admin.py
tanvir002700/tracker
567c3be2f36ac120fb412c06126cbd8fa72be4b9
[ "MIT" ]
11
2020-06-05T18:04:42.000Z
2022-03-11T23:19:32.000Z
office_tracker/leave_tracker/admin.py
tanvir002700/tracker
567c3be2f36ac120fb412c06126cbd8fa72be4b9
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Leave, Season, UserSeason admin.site.register(Leave) admin.site.register(Season) admin.site.register(UserSeason)
23.857143
45
0.820359
b4760799a86cfa3cb9c5b7217ed34eaf3f8e2d94
367
py
Python
chat/signals.py
subsystemcoding/socialpixel_backend
648f9441370e9a536896ea5807a581b594a9db78
[ "MIT" ]
null
null
null
chat/signals.py
subsystemcoding/socialpixel_backend
648f9441370e9a536896ea5807a581b594a9db78
[ "MIT" ]
null
null
null
chat/signals.py
subsystemcoding/socialpixel_backend
648f9441370e9a536896ea5807a581b594a9db78
[ "MIT" ]
3
2021-01-28T10:05:15.000Z
2021-03-20T18:21:34.000Z
from django.db.models.signals import post_save from .models import ChatRoom, Message from django.dispatch import receiver @receiver(post_save, sender=Message) def update_last_messaged_timestamp(sender, instance, **kwargs): chatroom = ChatRoom.objects.get(id = instance.room.id) chatroom.last_messaged_timestamp...
30.583333
63
0.784741
e61c1e2f9a3ca87779d392d710b92721bf1308d0
6,349
py
Python
ax/modelbridge/transforms/stratified_standardize_y.py
EricZLou/Ax
3f8fc6f4a055e93cb69fda3799be41ee9572ef02
[ "MIT" ]
null
null
null
ax/modelbridge/transforms/stratified_standardize_y.py
EricZLou/Ax
3f8fc6f4a055e93cb69fda3799be41ee9572ef02
[ "MIT" ]
null
null
null
ax/modelbridge/transforms/stratified_standardize_y.py
EricZLou/Ax
3f8fc6f4a055e93cb69fda3799be41ee9572ef02
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from collections import defaultdict from typing import TYPE_CHECKING, DefaultDict, List, Optional, Tuple import numpy ...
44.090278
88
0.653016
18b38355278e48cd97042dd28f0bb33437ecfe95
84
py
Python
belt - 1104/Helper/File/__init__.py
jackson-code/Delta
ff4c1df4dc75d9ff88025d37d5cd3216a5f353ff
[ "Unlicense" ]
null
null
null
belt - 1104/Helper/File/__init__.py
jackson-code/Delta
ff4c1df4dc75d9ff88025d37d5cd3216a5f353ff
[ "Unlicense" ]
null
null
null
belt - 1104/Helper/File/__init__.py
jackson-code/Delta
ff4c1df4dc75d9ff88025d37d5cd3216a5f353ff
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Jul 10 21:51:43 2021 @author: user """
10.5
35
0.559524
b483d620c592123fa8aea9f2a322539ec3a25c69
187
py
Python
recommendation/admin.py
Zeble1603/cv-django
329d8d471c92dc0ce5f4bfb2bb5212fc1c8c34b4
[ "MIT" ]
1
2021-10-19T21:22:38.000Z
2021-10-19T21:22:38.000Z
recommendation/admin.py
Zeble1603/cv-django
329d8d471c92dc0ce5f4bfb2bb5212fc1c8c34b4
[ "MIT" ]
null
null
null
recommendation/admin.py
Zeble1603/cv-django
329d8d471c92dc0ce5f4bfb2bb5212fc1c8c34b4
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.admin.decorators import register from .models import Recommendation # Register your models here. admin.site.register(Recommendation)
26.714286
52
0.839572
435d0ffb24d74c90ebec2afa395514d31a850d55
6,209
py
Python
scripts/svi_gmm_tfp_original.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
2
2021-08-22T14:40:18.000Z
2021-12-07T02:46:00.000Z
scripts/svi_gmm_tfp_original.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
9
2021-03-31T20:18:21.000Z
2022-03-12T00:52:47.000Z
scripts/svi_gmm_tfp_original.py
always-newbie161/pyprobml
eb70c84f9618d68235ef9ba7da147c009b2e4a80
[ "MIT" ]
1
2021-06-21T01:18:07.000Z
2021-06-21T01:18:07.000Z
# SVI for a GMM # https://github.com/brendanhasz/svi-gaussian-mixture-model/blob/master/BayesianGaussianMixtureModel.ipynb # MIT License #pip install tf-nightly #pip install --upgrade tfp-nightly -q # Imports import numpy as np import matplotlib.pyplot as plt import seaborn as sns import tensorflow as tf import tenso...
31.045
106
0.620229
475faa198f20b2e730c6757fe7316a4108afddf6
702
py
Python
E1a_hello_world.py
charles-stan/learn_python_Stanier
740a7104fcbd739663d703d3770f9e31509300f8
[ "MIT" ]
2
2019-10-04T14:53:20.000Z
2019-10-29T18:16:15.000Z
E1a_hello_world.py
charles-stan/learn_python_Stanier
740a7104fcbd739663d703d3770f9e31509300f8
[ "MIT" ]
null
null
null
E1a_hello_world.py
charles-stan/learn_python_Stanier
740a7104fcbd739663d703d3770f9e31509300f8
[ "MIT" ]
null
null
null
""" Hello World Python Script Learning Example for Dr. Stanier's classes File: E1a_hello_world.py Author: Charles Stanier, charles-stanier@uiowa.edu Date: August 9, 2019 Written/Tested In: Python 3.7.3 Program Objective: Get students to open a python editor, write and save a script, choose a location for sa...
31.909091
120
0.75641
089a76f14513978314693848b0871f8ba8757cfa
1,147
py
Python
packages/wes_adapter/amazon_genomics/wes/adapters/util/util.py
elliot-smith/amazon-genomics-cli
371c5e2fb0f34c892839218b594380a7b67e81ab
[ "Apache-2.0" ]
49
2021-09-27T04:12:15.000Z
2022-03-30T15:49:45.000Z
packages/wes_adapter/amazon_genomics/wes/adapters/util/util.py
elliot-smith/amazon-genomics-cli
371c5e2fb0f34c892839218b594380a7b67e81ab
[ "Apache-2.0" ]
155
2021-09-27T03:57:28.000Z
2022-03-31T17:01:52.000Z
packages/wes_adapter/amazon_genomics/wes/adapters/util/util.py
elliot-smith/amazon-genomics-cli
371c5e2fb0f34c892839218b594380a7b67e81ab
[ "Apache-2.0" ]
35
2021-09-27T16:12:10.000Z
2022-03-17T04:53:01.000Z
def describe_batch_jobs_with_tag(tag_key, tag_value, aws_batch, aws_tags): """ Retrieve descriptions of all Batch jobs with the given tag """ pagination_token = None all_descriptions = [] get_resources_kwargs = { "TagFilters": [{"Key": tag_key, "Values": [tag_value]}], "ResourceT...
38.233333
81
0.659111
c0bd46efc1fcb1835eba98979b5ad2d22583c213
1,476
py
Python
pype/hosts/maya/plugins/publish/validate_yeti_rig_input_in_instance.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
pype/hosts/maya/plugins/publish/validate_yeti_rig_input_in_instance.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
pype/hosts/maya/plugins/publish/validate_yeti_rig_input_in_instance.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
from maya import cmds import pyblish.api import pype.api import pype.hosts.maya.api.action class ValidateYetiRigInputShapesInInstance(pyblish.api.Validator): """Validate if all input nodes are part of the instance's hierarchy""" order = pype.api.ValidateContentsOrder hosts = ["maya"] families = ["ye...
32.8
77
0.651762
d33762966527038a974ba6064998f21701fcfe26
2,078
py
Python
experiment.py
embrace-inpe/cycle-slip-correction
c465dd4d45ea7df63a18749e26ba4bf0aa27eb59
[ "MIT" ]
6
2019-05-20T21:23:41.000Z
2021-06-23T15:00:30.000Z
experiment.py
embrace-inpe/cycle-slip-correction
c465dd4d45ea7df63a18749e26ba4bf0aa27eb59
[ "MIT" ]
null
null
null
experiment.py
embrace-inpe/cycle-slip-correction
c465dd4d45ea7df63a18749e26ba4bf0aa27eb59
[ "MIT" ]
5
2018-12-27T16:46:45.000Z
2020-09-14T13:44:00.000Z
import numpy as np import collections import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt from pandas.plotting import register_matplotlib_converters register_matplotlib_converters() from scipy.signal import find_peaks array_inteiro = np.array([0, 1, 2, 3, np.nan, np.nan, np.nan, np.nan, 23, 24,...
30.558824
146
0.743985
ed919957566b03dee959a18ea597dda8d2f4716c
51,651
py
Python
ironic/tests/unit/drivers/modules/ansible/test_deploy.py
yanndegat/ironic
8857ec76443dea7778bb9c0d66568304e52495e5
[ "Apache-2.0" ]
350
2015-01-02T09:35:49.000Z
2022-03-28T09:25:59.000Z
ironic/tests/unit/drivers/modules/ansible/test_deploy.py
yanndegat/ironic
8857ec76443dea7778bb9c0d66568304e52495e5
[ "Apache-2.0" ]
7
2015-05-04T16:12:41.000Z
2021-08-31T12:27:27.000Z
ironic/tests/unit/drivers/modules/ansible/test_deploy.py
yanndegat/ironic
8857ec76443dea7778bb9c0d66568304e52495e5
[ "Apache-2.0" ]
333
2015-01-06T09:09:22.000Z
2022-02-20T08:11:40.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
47.869323
79
0.5966
fcb4a9ccd8bc722e4954d75eaaae82b373451ac2
2,202
py
Python
fscognitive/controllers/led_controller.py
anhhoangiot/people_recognition_pi
92ceaebdef775a42023760360689d473662cb361
[ "MIT" ]
null
null
null
fscognitive/controllers/led_controller.py
anhhoangiot/people_recognition_pi
92ceaebdef775a42023760360689d473662cb361
[ "MIT" ]
null
null
null
fscognitive/controllers/led_controller.py
anhhoangiot/people_recognition_pi
92ceaebdef775a42023760360689d473662cb361
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2016-10-08 # @Author : Anh Hoang (anhhoang.work.mail@gmail.com) # @Project : FSCognitive # @Version : 1.0 import socket from thread import * import urllib2 import json class LEDController(object): HOST = '' PORT = 8888 def __init__(self): ...
30.164384
72
0.559491
fc5044545f8394b6b60265d0beab24c2289d0595
125
py
Python
Foresite/upload_csv/admin.py
khoamb/Foresite
97b155452d92fe1c487e7cbeffbc867604a1e726
[ "MIT" ]
null
null
null
Foresite/upload_csv/admin.py
khoamb/Foresite
97b155452d92fe1c487e7cbeffbc867604a1e726
[ "MIT" ]
6
2018-11-29T23:25:16.000Z
2018-11-30T01:17:33.000Z
Foresite/upload_csv/admin.py
PricelessAntonio/Foresite
4eec1ab5bf588b1ef6ec176a612bc62e8d55b424
[ "MIT" ]
3
2018-09-05T18:57:03.000Z
2020-03-22T02:19:58.000Z
from django.contrib import admin from .models import CsvUpload # Register your models here. admin.site.register(CsvUpload)
17.857143
32
0.808
294e59aeb3225bb55f4148fd3d3f3f0fcb347729
18,697
py
Python
janitor/finance.py
VPerrollaz/pyjanitor
2fb6fdc139349a4219b41f57c9cef8e37a965ee6
[ "MIT" ]
2
2020-09-06T22:11:01.000Z
2022-03-19T23:57:24.000Z
janitor/finance.py
VPerrollaz/pyjanitor
2fb6fdc139349a4219b41f57c9cef8e37a965ee6
[ "MIT" ]
null
null
null
janitor/finance.py
VPerrollaz/pyjanitor
2fb6fdc139349a4219b41f57c9cef8e37a965ee6
[ "MIT" ]
null
null
null
""" Finance-specific data cleaning functions. """ import json from datetime import date, datetime from functools import lru_cache from typing import Optional import pandas as pd import pandas_flavor as pf import requests from janitor import check from .utils import deprecated_alias currency_set = { "AUD", ...
28.545038
107
0.569503
4292aa1dd4e7a4fe5c049e274355eba1b82c26ba
703
py
Python
tests/example_classes.py
Einenlum/prophepy
9bddcf9f579d1ff4037978a5669587221cc8e21d
[ "MIT" ]
null
null
null
tests/example_classes.py
Einenlum/prophepy
9bddcf9f579d1ff4037978a5669587221cc8e21d
[ "MIT" ]
null
null
null
tests/example_classes.py
Einenlum/prophepy
9bddcf9f579d1ff4037978a5669587221cc8e21d
[ "MIT" ]
null
null
null
class Calculator: def __init__(self, name, **kwargs): self.name = name self.values = kwargs def multiply(self, *args): product = 1 for arg in args: product = product * arg return product def add(self, *args): return sum(args) class Displayer: ...
24.241379
68
0.550498
2f86d1b3e9819bbd5189ae6f98cc31abe6ac7215
1,015
py
Python
src/titles/migrations/0007_auto_20171213_1143.py
kierrez/movie-website
74f4ed018aba545dec190b70d62abe0ac6085462
[ "MIT" ]
1
2019-03-02T20:06:16.000Z
2019-03-02T20:06:16.000Z
src/titles/migrations/0007_auto_20171213_1143.py
kierrez/movie-website
74f4ed018aba545dec190b70d62abe0ac6085462
[ "MIT" ]
1
2022-01-07T22:57:41.000Z
2022-01-07T22:57:41.000Z
src/titles/migrations/0007_auto_20171213_1143.py
kierrez/movie-website
74f4ed018aba545dec190b70d62abe0ac6085462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-13 10:43 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('titles', '0006_auto_20171212_1613'), ] operations = [ migrations.CreateMode...
31.71875
123
0.570443
d8aa1792a1ac802fdb5fd758989198fa8059f618
2,638
py
Python
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_check/Opengauss_Function_Tools_gs_check_Case0119.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_check/Opengauss_Function_Tools_gs_check_Case0119.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_check/Opengauss_Function_Tools_gs_check_Case0119.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
34.710526
119
0.615618
6be222a6604c89db3e8adbb7337cf5b66bec3127
380
py
Python
AlgoPy/SelectionSort.py
PasinduSan/Hello-world
0c3c976b94dceccc2ac1b83e036a721e68873495
[ "MIT" ]
1
2018-12-25T14:02:08.000Z
2018-12-25T14:02:08.000Z
AlgoPy/SelectionSort.py
PasinduSan/Hello-world
0c3c976b94dceccc2ac1b83e036a721e68873495
[ "MIT" ]
null
null
null
AlgoPy/SelectionSort.py
PasinduSan/Hello-world
0c3c976b94dceccc2ac1b83e036a721e68873495
[ "MIT" ]
null
null
null
def selectionSort(nlist): for fillslot in range(len(nlist)-1,0,-1): maxpos=0 for location in range(1,fillslot+1): if nlist[location]>nlist[maxpos]: maxpos = location temp = nlist[fillslot] nlist[fillslot] = nlist[maxpos] nlist[maxpos] = temp nlist = [14...
23.75
44
0.610526
d28333127f17b972d3c2895fa9d48f1bec3e027a
14,051
py
Python
sdk/python/pulumi_google_native/compute/beta/get_organization_security_policy.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/compute/beta/get_organization_security_policy.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/compute/beta/get_organization_security_policy.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
50.182143
602
0.700306
3d5d8918e8192c21262d92fb4146aaad66dc5546
9,427
py
Python
immersive_scaler/ui.py
kant/immersive_scaler
cd7dd0c0866ffeb6f9866c7bdaf9113d4b31e85e
[ "MIT" ]
null
null
null
immersive_scaler/ui.py
kant/immersive_scaler
cd7dd0c0866ffeb6f9866c7bdaf9113d4b31e85e
[ "MIT" ]
null
null
null
immersive_scaler/ui.py
kant/immersive_scaler
cd7dd0c0866ffeb6f9866c7bdaf9113d4b31e85e
[ "MIT" ]
null
null
null
import bpy from bpy.props import BoolProperty, EnumProperty, FloatProperty, IntProperty, CollectionProperty from bpy.types import Scene def make_annotations(cls): bl_props = {k: v for k, v in cls.__dict__.items() if isinstance(v, tuple)} if bl_props: if '__annotations__' not in cls.__dict__: ...
34.032491
183
0.587462
7f14b7d30035c55885f1ccc262c5b29a351d191c
16,545
py
Python
trestle/core/commands/author/ssp.py
guyzyl/compliance-trestle
b6fa6f5d8bfdb52e0a82fc0accd63c11d04d9afc
[ "Apache-2.0" ]
1
2022-01-07T01:11:03.000Z
2022-01-07T01:11:03.000Z
trestle/core/commands/author/ssp.py
guyzyl/compliance-trestle
b6fa6f5d8bfdb52e0a82fc0accd63c11d04d9afc
[ "Apache-2.0" ]
null
null
null
trestle/core/commands/author/ssp.py
guyzyl/compliance-trestle
b6fa6f5d8bfdb52e0a82fc0accd63c11d04d9afc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 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 law o...
47.002841
120
0.648837
1f172b3e1e4aeb161ce706b994566c0007212829
3,827
py
Python
setup.py
sparkfun/Qwiic_Micro_OLED_Py
d174b2f271dfd68714f67a77425c2c223735e156
[ "MIT" ]
1
2021-11-25T05:52:50.000Z
2021-11-25T05:52:50.000Z
setup.py
sparkfun/Qwiic_Micro_OLED_Py
d174b2f271dfd68714f67a77425c2c223735e156
[ "MIT" ]
2
2021-02-19T20:01:13.000Z
2021-10-07T04:49:29.000Z
setup.py
sparkfun/Qwiic_Micro_OLED_Py
d174b2f271dfd68714f67a77425c2c223735e156
[ "MIT" ]
2
2020-01-28T13:40:41.000Z
2021-06-18T22:01:39.000Z
#------------------------------------------------------------------------ # # This is a python install script written for qwiic python package. # # Written by SparkFun Electronics, May 2021 # # This python library supports the SparkFun Electroncis qwiic # ecosystem, providing an plaform indepenant interface to the # I...
36.798077
86
0.666841
8a0b8938229802a1ea70b0b86ba8108077b6f665
3,328
py
Python
python/dxa/deterministic_short_rate.py
portfolioscout/py4fi
9a65df340189ed52037456da221bf66fe89e787f
[ "CNRI-Python" ]
15
2018-07-10T09:18:23.000Z
2021-12-30T06:35:09.000Z
python3/dxa/deterministic_short_rate.py
ioancw/py4fi
bbf7b41d375e4f7b0344bc9b1e97d7910ad1e6ec
[ "CNRI-Python" ]
2
2020-10-27T19:44:15.000Z
2020-11-03T23:55:36.000Z
python3/dxa/deterministic_short_rate.py
ioancw/py4fi
bbf7b41d375e4f7b0344bc9b1e97d7910ad1e6ec
[ "CNRI-Python" ]
13
2018-01-08T01:10:22.000Z
2021-05-26T17:35:35.000Z
''' ==== Deterministic Short Rate Interest rates in general and short rates in particular are not constant over time. You rather observe something called a term structur of insterest rates in financial markets. Simply speaking, this means that a ZCB maturing at latexmath:[$s \geq 0$] will have a different yield than a...
47.542857
668
0.640925
7c81df714cb95571c73a9a741a1de700f0fe6b1b
10,462
py
Python
tests/utils/test_utils_check_copies.py
dctelus/transformers
6786cbc4b14ebff0ac59c768cadd109391db9a08
[ "Apache-2.0" ]
8,028
2018-11-05T15:19:44.000Z
2019-07-16T09:14:59.000Z
tests/utils/test_utils_check_copies.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
731
2018-11-05T21:35:52.000Z
2019-07-16T09:51:26.000Z
tests/utils/test_utils_check_copies.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
2,106
2018-11-05T15:29:15.000Z
2019-07-16T08:51:57.000Z
# Copyright 2020 The HuggingFace Team. 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 applicabl...
67.064103
1,428
0.734754
39c6765592fd7320bfc86065a1162fe89ae255de
1,012
py
Python
kubernetes/test/test_v1beta2_stateful_set_list.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
3
2019-05-19T05:05:37.000Z
2020-03-20T04:56:20.000Z
kubernetes/test/test_v1beta2_stateful_set_list.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1beta2_stateful_set_list.py
Scalr/kubernetes-client-python
07442bdb76f0876ec96c0b0da6f9c4b06d7e5e38
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
22.488889
105
0.72332
53a37d82757770667a009b3d0f2fa3a51b54d09f
2,171
py
Python
env/Lib/site-packages/plotly/validators/ohlc/_hoverlabel.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
packages/python/plotly/plotly/validators/ohlc/_hoverlabel.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
14
2021-10-20T23:33:47.000Z
2021-12-21T04:50:37.000Z
packages/python/plotly/plotly/validators/ohlc/_hoverlabel.py
jiangrongbo/plotly.py
df19fc702b309586cc24e25373b87e8bdbb3ff60
[ "MIT" ]
1
2021-11-29T22:55:05.000Z
2021-11-29T22:55:05.000Z
import _plotly_utils.basevalidators class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="hoverlabel", parent_name="ohlc", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
39.472727
79
0.543528
5d1a16e0cea91567ea14d5b134ddb0ece2d82f3e
4,006
py
Python
code.py
kadc87/recommend-clothing-size
a8f177b4cd1de5f406ffce63c8cf68090847b12b
[ "MIT" ]
null
null
null
code.py
kadc87/recommend-clothing-size
a8f177b4cd1de5f406ffce63c8cf68090847b12b
[ "MIT" ]
null
null
null
code.py
kadc87/recommend-clothing-size
a8f177b4cd1de5f406ffce63c8cf68090847b12b
[ "MIT" ]
null
null
null
# -------------- # import the libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn.model_selection import train_test_split import warnings warnings.filterwarnings('ignore') # Code starts here df = pd.read_json(path, lines = True) df.columns = ['bra_size',...
27.251701
125
0.681228
7cf3ab6a2aadb66558311e112c142e821fe19b4d
10,048
py
Python
blog/views.py
marthaurion/django_blog
98b2bc0baf72fa6fd6dee3562b74440162a00b41
[ "MIT" ]
1
2017-04-25T10:16:59.000Z
2017-04-25T10:16:59.000Z
blog/views.py
marthaurion/blog_django
98b2bc0baf72fa6fd6dee3562b74440162a00b41
[ "MIT" ]
null
null
null
blog/views.py
marthaurion/blog_django
98b2bc0baf72fa6fd6dee3562b74440162a00b41
[ "MIT" ]
null
null
null
import datetime, time from django.contrib.postgres.search import SearchVector from django.http import Http404 from django.shortcuts import get_object_or_404 from django.utils import timezone from django.views.generic.detail import DetailView from django.views.generic.edit import FormMixin from django.views.generic.lis...
34.768166
120
0.616242
0a2d4c042fd399f7e797992e79b251bf947b4b91
5,973
py
Python
rasa/core/channels/rocketchat.py
Neural-Space/rasa
7e7e5ec8511df9799f737196070381db7f1528d7
[ "Apache-2.0" ]
37
2019-06-07T07:39:00.000Z
2022-01-27T08:32:57.000Z
rasa/core/channels/rocketchat.py
Neural-Space/rasa
7e7e5ec8511df9799f737196070381db7f1528d7
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
rasa/core/channels/rocketchat.py
Neural-Space/rasa
7e7e5ec8511df9799f737196070381db7f1528d7
[ "Apache-2.0" ]
65
2019-05-21T12:16:53.000Z
2022-02-23T10:54:15.000Z
import logging from sanic import Blueprint, response from sanic.request import Request from typing import Text, Dict, Any, List, Iterable, Optional, Callable, Awaitable from rasa.core.channels.channel import UserMessage, OutputChannel, InputChannel from sanic.response import HTTPResponse logger = logging.getLogger(__...
33.745763
87
0.598192
56177e06bcb05f661bc6114e1bd6f84c7aaa0d5b
17,936
py
Python
SelectiveMemory/QasFeature/BipedalWalker_v7.py
ProGamerCode/FitML
3b44160bbf6c0587b8df198d3ceef10a42e2bfca
[ "MIT" ]
171
2017-11-07T09:59:20.000Z
2022-03-29T13:59:18.000Z
SelectiveMemory/QasFeature/BipedalWalker_v7.py
ProGamerCode/FitML
3b44160bbf6c0587b8df198d3ceef10a42e2bfca
[ "MIT" ]
1
2017-12-24T20:08:18.000Z
2018-01-31T22:26:49.000Z
SelectiveMemory/QasFeature/BipedalWalker_v7.py
ProGamerCode/FitML
3b44160bbf6c0587b8df198d3ceef10a42e2bfca
[ "MIT" ]
44
2017-11-07T12:08:05.000Z
2022-01-04T15:53:12.000Z
''' Mountain Car with Selective Memory Algorithm solution by Michel Aka author of FitML github blog and repository https://github.com/FitMachineLearning/FitML/ https://www.youtube.com/channel/UCi7_WxajoowBl4_9P0DhzzA/featured Update Deep Network Adagrad optimizer Using Selective Memory Average as feature dicriminator ...
36.455285
286
0.602085
9327fa7c001140ba644d5b24e2d26627e1d3ca08
972
py
Python
Binary-Tree/Binary-Tree-master/Python Codes/rangeSum.py
SrijaniSom/dsa-code-store
148292c8f963214629f271ec8601e73d3d0e145e
[ "MIT" ]
3
2021-02-19T07:09:46.000Z
2021-10-04T10:12:45.000Z
Binary-Tree/Binary-Tree-master/Python Codes/rangeSum.py
SrijaniSom/dsa-code-store
148292c8f963214629f271ec8601e73d3d0e145e
[ "MIT" ]
6
2021-02-21T19:35:18.000Z
2021-05-06T11:51:37.000Z
Binary-Tree/Binary-Tree-master/Python Codes/rangeSum.py
SrijaniSom/dsa-code-store
148292c8f963214629f271ec8601e73d3d0e145e
[ "MIT" ]
6
2021-02-21T19:28:03.000Z
2021-10-04T03:35:57.000Z
class Node: def __init__(self, val): self.left = None self.right = None self.val = val def insert(self, val): if self.val: if val < self.val: if self.left is None: self.left = Node(val) else: se...
27
51
0.452675
8a80a770597dba7d4cfc11258d28aa44eb9cd57a
306
py
Python
constants.py
xianc78/Tank-Game
bc1267874d3d01242b74463b57ad89fd358dfb13
[ "Zlib" ]
null
null
null
constants.py
xianc78/Tank-Game
bc1267874d3d01242b74463b57ad89fd358dfb13
[ "Zlib" ]
null
null
null
constants.py
xianc78/Tank-Game
bc1267874d3d01242b74463b57ad89fd358dfb13
[ "Zlib" ]
null
null
null
# Colors BLACK = (0, 0, 0) WHITE = (255, 255, 255) RED = (255, 0, 0) GREY = (128, 128, 128) # Alright. Is it spelled as gray or grey? BLUE = (0, 0, 255) # SCREEN_SIZES SCREEN_WIDTH = 640 SCREEN_HEIGHT = 480 # TILE SIZES TILE_SIZE = (32, 32) # Frames Per Second FPS = 40 # Game title TITLE = "Tank Game"
16.105263
64
0.637255
dc4ab655d55149a37ab4369336ff3a16b066d926
2,986
py
Python
src/rawsalad/papi/urls.py
CCLab/Raw-Salad
1ec028985e2b910aca31302fb57ed0677778756e
[ "BSD-3-Clause" ]
null
null
null
src/rawsalad/papi/urls.py
CCLab/Raw-Salad
1ec028985e2b910aca31302fb57ed0677778756e
[ "BSD-3-Clause" ]
null
null
null
src/rawsalad/papi/urls.py
CCLab/Raw-Salad
1ec028985e2b910aca31302fb57ed0677778756e
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls.defaults import * # URLs for search: temporary update by Denis Kolokol, marked with comment "DK" urlpatterns = patterns( 'papi.papi', (r'^$', 'get_formats' ), (r'^(?P<serializer>[a-z]+)/$', 'get_datasets' ), (r'^(?P<serializer>[a-z]+)/search/$', 'search_data' ), # DK (r'^(?P<ser...
78.578947
168
0.573677
58fa362db24e44f9e2d65d44d79f339231de4743
1,375
py
Python
miscset/__init__.py
setempler/miscset.py
312fa3e4def0224d9337302bbdbe2eba1d40182e
[ "MIT" ]
null
null
null
miscset/__init__.py
setempler/miscset.py
312fa3e4def0224d9337302bbdbe2eba1d40182e
[ "MIT" ]
null
null
null
miscset/__init__.py
setempler/miscset.py
312fa3e4def0224d9337302bbdbe2eba1d40182e
[ "MIT" ]
null
null
null
# miscset """Main module and public API. Version ------- The library version can be identified by the `version` object. .. exec_code:: :caption: Example code: :caption_output: Result: import miscset print(miscset.version) Direct Imports -------------- The module imports to all submodules relevan...
19.927536
86
0.711273
90a1603c26a43d2900ddeec655a90ee92a0dc991
22,406
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_compute_management_client_enums.py
dmarx/azure-sdk-for-python
86ac35b947c0ed3d5edb1cac03f5ad20a34a6fda
[ "MIT" ]
1
2021-09-07T18:43:20.000Z
2021-09-07T18:43:20.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_compute_management_client_enums.py
dmarx/azure-sdk-for-python
86ac35b947c0ed3d5edb1cac03f5ad20a34a6fda
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_compute_management_client_enums.py
msyyc/azure-sdk-for-python
e2dba75181f8b4336ae57e75aa391322c12c3123
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.656637
102
0.716505
4d8c1cd368b833620328eabb826e9c145ba82e26
455
py
Python
microservices/services/apis/serializers.py
imohitawasthi/agile-tracker
9b4ded9dd3394cce3b0917a6972c214919f1d721
[ "MIT" ]
null
null
null
microservices/services/apis/serializers.py
imohitawasthi/agile-tracker
9b4ded9dd3394cce3b0917a6972c214919f1d721
[ "MIT" ]
null
null
null
microservices/services/apis/serializers.py
imohitawasthi/agile-tracker
9b4ded9dd3394cce3b0917a6972c214919f1d721
[ "MIT" ]
null
null
null
from rest_framework import serializers from . import models class AtBucketSerializerV1(serializers.ModelSerializer): class Meta: model=models.AtBucketV1 fields = "__all__" class AtTaskSerializerV1(serializers.ModelSerializer): class Meta: model=models.AtTaskV1 fields = "__all_...
25.277778
56
0.723077
ecb6bfacd0dc3edbdcf61f165c4be16293b1b849
5,979
py
Python
felica/kururu_reader.py
thinkAmi-sandbox/nfcpy-sample
06daa02caee3bc26a074c9f4cf016aab27a7e549
[ "Unlicense" ]
null
null
null
felica/kururu_reader.py
thinkAmi-sandbox/nfcpy-sample
06daa02caee3bc26a074c9f4cf016aab27a7e549
[ "Unlicense" ]
null
null
null
felica/kururu_reader.py
thinkAmi-sandbox/nfcpy-sample
06daa02caee3bc26a074c9f4cf016aab27a7e549
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # 以下を参考にKURURUを読みました。m2wasabiさん、ありがとうございます。 # https://github.com/m2wasabi/nfcpy-suica-sample/blob/master/suica_read.py import struct import textwrap import nfc import nfc.tag.tt3 KURURU_SERVICE_CODE = 0x000f class HistoryRecord(object): def __init__(self, data): # ビッグエンディアンでバイト列を...
31.140625
116
0.588727
be0e4b31e6b19169b1841796f614c1b33bd082cb
411
py
Python
main.py
freshskates/Graph-Theory
a93311d9453ffe986b5b8b82b3b34277b71d6602
[ "MIT" ]
null
null
null
main.py
freshskates/Graph-Theory
a93311d9453ffe986b5b8b82b3b34277b71d6602
[ "MIT" ]
null
null
null
main.py
freshskates/Graph-Theory
a93311d9453ffe986b5b8b82b3b34277b71d6602
[ "MIT" ]
null
null
null
# from Nodes.node import Node from linked_list.linkedlist import LinkedList def main(): list_node = LinkedList() list_node.add("data") list_node.add("data1") list_node.add("data2") list_node.add("data3") list_node.show() print(list_node.vectorize()) list_node.remove(1) list_node.rem...
21.631579
45
0.671533
25349641f6de6d6a7781623e9b135442bcf04a8a
234
py
Python
src/config.py
takeruadelbert/epass-barrier-gate
62af69bef52dddc6da74b74bd2fdaff1ee166988
[ "Unlicense" ]
null
null
null
src/config.py
takeruadelbert/epass-barrier-gate
62af69bef52dddc6da74b74bd2fdaff1ee166988
[ "Unlicense" ]
null
null
null
src/config.py
takeruadelbert/epass-barrier-gate
62af69bef52dddc6da74b74bd2fdaff1ee166988
[ "Unlicense" ]
null
null
null
# Server Configuration ip_address_server = "http://192.168.88.204" url = "/epass2018/parking_outs/api_member_out" timeout_connection = 30 # in second(s) retry_connect = 3 # in second(s) # HID Configuration hid_name = "Sycreader RFID"
29.25
46
0.760684
c741aecf0d3f642004a16cf2c6626e3c22bdc189
2,827
py
Python
examples/model_hosting/scheduled_model/generate_equipment_data.py
dmivankov/cognite-python-docs
cc01b5ab6f3fe382e646d457427eb8fa6cd61ff0
[ "Apache-2.0" ]
null
null
null
examples/model_hosting/scheduled_model/generate_equipment_data.py
dmivankov/cognite-python-docs
cc01b5ab6f3fe382e646d457427eb8fa6cd61ff0
[ "Apache-2.0" ]
null
null
null
examples/model_hosting/scheduled_model/generate_equipment_data.py
dmivankov/cognite-python-docs
cc01b5ab6f3fe382e646d457427eb8fa6cd61ff0
[ "Apache-2.0" ]
null
null
null
import random import string from datetime import datetime, timedelta from time import sleep import pandas as pd from cognite.client import CogniteClient from cognite.client.data_classes.time_series import TimeSeries client = CogniteClient() NUMBER_OF_DATAPOINTS = 20000 prefix = "".join(random.choice(string.ascii_uppe...
35.3375
118
0.696852
80db16348b41171c43ec72280be405072511ed3b
6,222
py
Python
acq4/analysis/atlas/AuditoryCortex/CortexROI.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
1
2020-06-04T17:04:53.000Z
2020-06-04T17:04:53.000Z
acq4/analysis/atlas/AuditoryCortex/CortexROI.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
24
2016-09-27T17:25:24.000Z
2017-03-02T21:00:11.000Z
acq4/analysis/atlas/AuditoryCortex/CortexROI.py
sensapex/acq4
9561ba73caff42c609bd02270527858433862ad8
[ "MIT" ]
4
2016-10-19T06:39:36.000Z
2019-09-30T21:06:45.000Z
from __future__ import print_function import acq4.pyqtgraph as pg from acq4.pyqtgraph.graphicsItems import ROI from acq4.pyqtgraph.Point import Point from acq4.util import Qt import math class CortexROI(ROI.PolyLineROI): def __init__(self, pos, state=None): ROI.PolyLineROI.__init__(self, [[0,0], [2,0...
46.432836
200
0.583735
260f1f3bceffbc53200f684770271b68bb0d96f2
7,541
py
Python
app.py
asher1112/trial_aws
cb45c87c3f0d9f9017c3b3a29e0bf6f95972b932
[ "MIT" ]
null
null
null
app.py
asher1112/trial_aws
cb45c87c3f0d9f9017c3b3a29e0bf6f95972b932
[ "MIT" ]
null
null
null
app.py
asher1112/trial_aws
cb45c87c3f0d9f9017c3b3a29e0bf6f95972b932
[ "MIT" ]
null
null
null
import time import os import numpy as np import matplotlib.pyplot as plt import streamlit as st import pandas as pd import cv2 import librosa import librosa.display import sound from tensorflow.keras.models import load_model # load models model = load_model("model.h5") # tmodel = load_model("tmodel_all.h5") # costant...
30.043825
85
0.603766
060f8231b335b301573fa1b6ddbbae68234f182a
3,597
py
Python
scalabel/label/io_test.py
batcer/scalabel
8d4a178bcf91207bf8b0d336c770d863cffb5701
[ "Apache-2.0" ]
null
null
null
scalabel/label/io_test.py
batcer/scalabel
8d4a178bcf91207bf8b0d336c770d863cffb5701
[ "Apache-2.0" ]
null
null
null
scalabel/label/io_test.py
batcer/scalabel
8d4a178bcf91207bf8b0d336c770d863cffb5701
[ "Apache-2.0" ]
null
null
null
"""Test cases for io.py.""" import json from ..unittest.util import get_test_file from .io import dump, group_and_sort, load, parse from .typing import Frame def test_parse() -> None: """Test parse label string.""" raw = json.loads( '{"name": 1, "videoName": "a", "size": [10, 20], ' '"labels"...
35.613861
76
0.614401
a28df8be9c71380abb2471f81b5cadbbabc3d118
559
py
Python
learning_logs/migrations/0001_initial.py
benjithorpe/learning_log
cc26ca432d8532af2a1d727736698a25d170979b
[ "MIT" ]
null
null
null
learning_logs/migrations/0001_initial.py
benjithorpe/learning_log
cc26ca432d8532af2a1d727736698a25d170979b
[ "MIT" ]
null
null
null
learning_logs/migrations/0001_initial.py
benjithorpe/learning_log
cc26ca432d8532af2a1d727736698a25d170979b
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-10-05 19:29 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Topic', fields=[ ('id', models.BigAutoField(a...
24.304348
117
0.581395
cba5378b23565146ef48e79d92b67b0b74d37043
319
py
Python
B03898_05_Codes/zero_coupon_bond.py
prakharShuklaOfficial/Mastering-Python-for-Finance-source-codes
7b3a74a0dc78aaa977f8fe752cc3fa4f54063f33
[ "MIT" ]
446
2015-06-10T06:15:51.000Z
2022-03-28T22:16:03.000Z
B03898_05_Codes/zero_coupon_bond.py
prakharShuklaOfficial/Mastering-Python-for-Finance-source-codes
7b3a74a0dc78aaa977f8fe752cc3fa4f54063f33
[ "MIT" ]
8
2016-11-25T09:27:15.000Z
2020-07-14T21:00:26.000Z
B03898_05_Codes/zero_coupon_bond.py
prakharShuklaOfficial/Mastering-Python-for-Finance-source-codes
7b3a74a0dc78aaa977f8fe752cc3fa4f54063f33
[ "MIT" ]
277
2015-06-11T07:50:18.000Z
2022-03-22T12:54:46.000Z
""" README ====== This file contains Python codes. ====== """ def zero_coupon_bond(par, y, t): """ Price a zero coupon bond. Par - face value of the bond. y - annual yield or rate of the bond. t - time to maturity in years. """ return par/(1+y)**t print zero_coupon_bond(100, 0.05, 5)
17.722222
41
0.586207
5e62127cc7a97de5bcaf0c3d7facd282213d6bc6
8,044
py
Python
homeassistant/components/starline/config_flow.py
bg1000/core
4ee4d674d8931927eae5222e3bf8dd6e26f3c6e5
[ "Apache-2.0" ]
1
2021-03-23T07:20:03.000Z
2021-03-23T07:20:03.000Z
homeassistant/components/starline/config_flow.py
bg1000/core
4ee4d674d8931927eae5222e3bf8dd6e26f3c6e5
[ "Apache-2.0" ]
51
2020-08-03T07:30:44.000Z
2022-03-22T06:02:42.000Z
homeassistant/components/starline/config_flow.py
bg1000/core
4ee4d674d8931927eae5222e3bf8dd6e26f3c6e5
[ "Apache-2.0" ]
null
null
null
"""Config flow to configure StarLine component.""" from __future__ import annotations from starline import StarlineAuth import voluptuous as vol from homeassistant import config_entries, core from homeassistant.const import CONF_PASSWORD, CONF_USERNAME from .const import ( # pylint: disable=unused-import _LOGGE...
33.516667
88
0.574714
5243dcf05cfdafff69d28c49ba0b2942989adbe3
914
py
Python
flexmeasures/cli/tests/utils.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
12
2021-12-18T10:41:10.000Z
2022-03-29T23:00:29.000Z
flexmeasures/cli/tests/utils.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
103
2021-12-07T08:51:15.000Z
2022-03-31T13:28:48.000Z
flexmeasures/cli/tests/utils.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
3
2022-01-18T04:45:48.000Z
2022-03-14T09:48:22.000Z
from typing import List, Callable from click.core import Command as ClickCommand def to_flags(cli_input: dict) -> list: """Turn dictionary of CLI input into a list of CLI flags ready for use in FlaskCliRunner.invoke(). Example: cli_input = { "year": 2020, "country": "NL", ...
26.882353
102
0.577681
0f80a9e3135560f0591099bad1bb7a5ddbb51087
3,826
py
Python
src/dirbs/dimensions/duplicate_threshold.py
bryang-qti-qualcomm/DIRBS-Core
6b48457715338cce4eb6b3948940297ebd789189
[ "BSD-3-Clause-Clear" ]
null
null
null
src/dirbs/dimensions/duplicate_threshold.py
bryang-qti-qualcomm/DIRBS-Core
6b48457715338cce4eb6b3948940297ebd789189
[ "BSD-3-Clause-Clear" ]
null
null
null
src/dirbs/dimensions/duplicate_threshold.py
bryang-qti-qualcomm/DIRBS-Core
6b48457715338cce4eb6b3948940297ebd789189
[ "BSD-3-Clause-Clear" ]
null
null
null
""" DIRBS dimension function for duplicate threshold within a time period. Copyright (c) 2018 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the fol...
50.342105
118
0.715369
238949fa51e9cd34fca3d2b53dacfb22c8e656a1
8,225
py
Python
untitled7/apps/trade/views.py
pop993012/111122
cee79d5e6eb5b1c9714e3f712503cce9fccfb8c2
[ "Apache-2.0" ]
null
null
null
untitled7/apps/trade/views.py
pop993012/111122
cee79d5e6eb5b1c9714e3f712503cce9fccfb8c2
[ "Apache-2.0" ]
null
null
null
untitled7/apps/trade/views.py
pop993012/111122
cee79d5e6eb5b1c9714e3f712503cce9fccfb8c2
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.shortcuts import render from rest_framework import viewsets from rest_framework import mixins from .models import ShopCar, OrderInfo, OrderGoods from rest_framework.permissions import IsAuthenticated from rest_framework.authentication import BasicAuthentication, SessionA...
35.606061
93
0.632827
fedc91091fb03e737d51b48a693d491a9be23b2a
2,129
py
Python
usaspending_api/search/tests/test_spending_over_time.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
null
null
null
usaspending_api/search/tests/test_spending_over_time.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
1
2021-11-15T17:53:27.000Z
2021-11-15T17:53:27.000Z
usaspending_api/search/tests/test_spending_over_time.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
null
null
null
import json import pytest from rest_framework import status from usaspending_api.search.tests.test_mock_data_search import all_filters @pytest.mark.django_db def test_spending_over_time_success(client, refresh_matviews): # test for needed filters resp = client.post( '/api/v2/search/spending_over_ti...
29.164384
74
0.646783
f6beda9b8c401a6860f8c037e7edbde5c86c1a4f
6,374
py
Python
salt/utils/hashutils.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
salt/utils/hashutils.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
salt/utils/hashutils.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ A collection of hashing and encoding utils. """ from __future__ import absolute_import, print_function, unicode_literals # Import python libs import base64 import hashlib import hmac import os import random import salt.utils.files import salt.utils.platform import salt.utils.stringutils # Impor...
28.841629
84
0.661908
dc7ae05f2092de1ce17c9678a77e6f88049b7c9c
9,525
py
Python
bloomon/utils/bouqet_manager.py
belushkin/bloomon
472dd48d297737335d114d770c27a6cac986c4e6
[ "MIT" ]
null
null
null
bloomon/utils/bouqet_manager.py
belushkin/bloomon
472dd48d297737335d114d770c27a6cac986c4e6
[ "MIT" ]
null
null
null
bloomon/utils/bouqet_manager.py
belushkin/bloomon
472dd48d297737335d114d770c27a6cac986c4e6
[ "MIT" ]
null
null
null
import re from bloomon.entities.bouqet_design import BouqetDesign from collections import defaultdict class BouqetManager(object): """ A class used to operate input data from the input stream. It takes input data and decide whether it is flower or design, then it stores it in internal storage ...
38.253012
116
0.567454