hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
f0e63c97d6fcc120f5d220c8bb7de4c5493386dc
3,787
py
Python
scripts/test.py
MrGemy95/pytorch-SelectiveNet
50540c433e235d3e3824d4799fd61869f512f723
[ "MIT" ]
13
2020-03-06T04:54:22.000Z
2022-03-29T11:33:24.000Z
scripts/test.py
MrGemy95/pytorch-SelectiveNet
50540c433e235d3e3824d4799fd61869f512f723
[ "MIT" ]
1
2021-04-13T12:31:15.000Z
2021-04-13T12:31:15.000Z
scripts/test.py
MrGemy95/pytorch-SelectiveNet
50540c433e235d3e3824d4799fd61869f512f723
[ "MIT" ]
7
2020-03-02T15:20:12.000Z
2022-01-23T07:59:57.000Z
import os import sys base = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../') sys.path.append(base) import click from collections import OrderedDict import torch import torchvision from external.dada.flag_holder import FlagHolder from external.dada.metric import MetricDict from external.dada.io import...
36.066667
154
0.693425
c5dc75a9336259e8a465110d81fadc9d20408ac5
2,201
py
Python
detection/show.py
cititude/Media-and-Cognition-Homework
dabaaef6d8ec115171e7115731c5f76b518d9bde
[ "MIT" ]
null
null
null
detection/show.py
cititude/Media-and-Cognition-Homework
dabaaef6d8ec115171e7115731c5f76b518d9bde
[ "MIT" ]
null
null
null
detection/show.py
cititude/Media-and-Cognition-Homework
dabaaef6d8ec115171e7115731c5f76b518d9bde
[ "MIT" ]
null
null
null
import torch import json from utils.utils import * import cv2 import numpy as np import matplotlib.pyplot as plt import os def plot_one_box(x, img, color=None, label=None, line_thickness=None): # Plots one bounding box on image img tl = line_thickness or round(0.002 * (img.shape[0] + img.shape[1]) / 2) + 1 ...
36.683333
115
0.585189
79fe90bf1096715710cd8d51ad5c6b3e37b37163
2,601
py
Python
gazoo_device/tests/unit_tests/esp32_pigweed_locking_test.py
google/gazoo-device
f333b386f5993c8d4c9e12c89ebb620a0c4f5506
[ "Apache-2.0" ]
14
2020-11-05T23:23:32.000Z
2022-03-01T18:59:29.000Z
gazoo_device/tests/unit_tests/esp32_pigweed_locking_test.py
google/gazoo-device
f333b386f5993c8d4c9e12c89ebb620a0c4f5506
[ "Apache-2.0" ]
null
null
null
gazoo_device/tests/unit_tests/esp32_pigweed_locking_test.py
google/gazoo-device
f333b386f5993c8d4c9e12c89ebb620a0c4f5506
[ "Apache-2.0" ]
5
2021-05-20T22:52:51.000Z
2022-02-21T08:46:21.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.633803
80
0.772011
2a0b876d49420fc816cc67f8c26adaa6ca1b83a6
682
py
Python
ctapipe/flow/algorithms/pair.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
ctapipe/flow/algorithms/pair.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
ctapipe/flow/algorithms/pair.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
from ctapipe.core import Component from time import sleep class Pair(Component): """Odd` class represents a Stage for pipeline. It returns received value to Add stage except when received value is a multiple of 5. In this case it returns received value to Inverse stage """ def init(self): ...
25.259259
62
0.589443
a394b5ddaffc919cf3b20b9d9b979e7fcfe4b583
866
py
Python
setup.py
gigapixel/robotframework-cylon
909cfef10dcca42958f220481f3e51ac1398d74e
[ "MIT" ]
null
null
null
setup.py
gigapixel/robotframework-cylon
909cfef10dcca42958f220481f3e51ac1398d74e
[ "MIT" ]
null
null
null
setup.py
gigapixel/robotframework-cylon
909cfef10dcca42958f220481f3e51ac1398d74e
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='robotframework-cylon', version='0.0.1', description='', url='https://github.com/gigapixel', author='Peerapat S.', author_email='gigapixel7@gmail.com', license='MIT', classifiers=[ 'Development Status :: 2 - Pre-Alpha', '...
30.928571
71
0.571594
f8e6083dbbaa37834dca61c4518f6c21ed728e2b
21,170
py
Python
pudb/settings.py
mlubimow/pudb
b36b10e8905971c700ddb6b41bf6102ea0a310c4
[ "MIT" ]
null
null
null
pudb/settings.py
mlubimow/pudb
b36b10e8905971c700ddb6b41bf6102ea0a310c4
[ "MIT" ]
null
null
null
pudb/settings.py
mlubimow/pudb
b36b10e8905971c700ddb6b41bf6102ea0a310c4
[ "MIT" ]
1
2021-05-13T13:15:47.000Z
2021-05-13T13:15:47.000Z
__copyright__ = """ Copyright (C) 2009-2017 Andreas Kloeckner Copyright (C) 2014-2017 Aaron Meurer """ __license__ = """ 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, includ...
34.311183
84
0.611242
0c6aa0b1bb393485828a6ca1c2e9dc2570518096
153
py
Python
news/admin.py
alcibiadesBustillo/resumen-news
62f2cf821e619703e058d2b996ebf2513854bb73
[ "MIT" ]
1
2021-07-09T07:17:17.000Z
2021-07-09T07:17:17.000Z
news/admin.py
alcibiadesBustillo/resumen-news
62f2cf821e619703e058d2b996ebf2513854bb73
[ "MIT" ]
null
null
null
news/admin.py
alcibiadesBustillo/resumen-news
62f2cf821e619703e058d2b996ebf2513854bb73
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import News # Register your models here. @admin.register(News) class NewsAdmin(admin.ModelAdmin): pass
21.857143
34
0.784314
37d7ee2c1e9b74419a6e83877774e41c506ea88a
1,019
py
Python
src/Reset Ease Automatically/__init__.py
RisingOrange/Reset-Ease-Automatically
7c2fd16b7cac32ba499d87f681c75cfcfb617405
[ "MIT" ]
5
2020-09-06T10:51:39.000Z
2021-11-11T01:46:06.000Z
src/Reset Ease Automatically/__init__.py
RisingOrange/Reset-Ease-Automatically
7c2fd16b7cac32ba499d87f681c75cfcfb617405
[ "MIT" ]
6
2020-09-06T11:28:47.000Z
2021-06-13T00:22:03.000Z
src/Reset Ease Automatically/__init__.py
RisingOrange/Reset-Ease-Automatically
7c2fd16b7cac32ba499d87f681c75cfcfb617405
[ "MIT" ]
1
2020-09-06T10:52:43.000Z
2020-09-06T10:52:43.000Z
from anki.hooks import addHook from aqt import mw from aqt.utils import tooltip from PyQt5.QtWidgets import * from . import preferences_dialog from .reset_ease import reset_ease from .store_restore_ease import add_deck_options def main(): setup_toolbar_menu() addHook('unloadProfile', reset_ease_and_show...
25.475
70
0.747792
c95539e24d49b17eb6f1423afa669e17b4fcd237
29,280
py
Python
tagger.py
sjyttkl/convseg
4cd970283e128be38c1588820f741d781b709511
[ "MIT" ]
1
2018-12-10T02:20:38.000Z
2018-12-10T02:20:38.000Z
tagger.py
sjyttkl/convseg
4cd970283e128be38c1588820f741d781b709511
[ "MIT" ]
null
null
null
tagger.py
sjyttkl/convseg
4cd970283e128be38c1588820f741d781b709511
[ "MIT" ]
null
null
null
# from __future__ import print_function import tensorflow as tf import tensorflow.contrib.layers as layers import tensorflow.contrib.crf as crf import time import codecs import os import pickle import numpy as np # from itertools import izip INT_TYPE = np.int32 FLOAT_TYPE = np.float32 ###############################...
43.442136
131
0.555294
7352c08c3df705bbb0de6ece15eaa02958efb3e7
1,436
py
Python
test/test_bad_request_source.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
test/test_bad_request_source.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
test/test_bad_request_source.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest im...
26.592593
97
0.676184
d00dc8f0343d56d319263b74102fea2cd36830c1
3,735
py
Python
nbox/framework/__init__.py
NimbleBoxAI/aibox
9d1f76dd6b5d1435dc3f351800153db76cc1369c
[ "BSD-3-Clause" ]
9
2021-09-28T19:01:39.000Z
2022-03-22T19:01:29.000Z
nbox/framework/__init__.py
NimbleBoxAI/nbox
9d1f76dd6b5d1435dc3f351800153db76cc1369c
[ "BSD-3-Clause" ]
2
2021-08-06T10:25:41.000Z
2022-03-18T08:31:19.000Z
nbox/framework/__init__.py
NimbleBoxAI/nbox
9d1f76dd6b5d1435dc3f351800153db76cc1369c
[ "BSD-3-Clause" ]
4
2021-09-17T12:40:44.000Z
2022-02-16T06:14:44.000Z
r"""This submodule concerns itself with conversion of different framworks to other frameworks. It achieves this by providing a fix set of functions for each framework. There are a couple of caveats that the developer must know about. 1. We use joblib to serialize the model, see `reason <https://stackoverflow.com/quest...
40.16129
160
0.685408
dc9e185ca9f3550d54cd41d0a8182bf42957cefe
7,451
py
Python
homeassistant/components/screenlogic/climate.py
tizzen33/core
2a1884a1f7a07848b8b63afd29f59c81f1ffaf62
[ "Apache-2.0" ]
7
2019-08-15T13:36:58.000Z
2020-03-18T10:46:29.000Z
homeassistant/components/screenlogic/climate.py
tizzen33/core
2a1884a1f7a07848b8b63afd29f59c81f1ffaf62
[ "Apache-2.0" ]
87
2020-07-15T13:43:35.000Z
2022-03-23T07:43:10.000Z
homeassistant/components/screenlogic/climate.py
tizzen33/core
2a1884a1f7a07848b8b63afd29f59c81f1ffaf62
[ "Apache-2.0" ]
7
2018-10-04T10:12:45.000Z
2021-12-29T20:55:40.000Z
"""Support for a ScreenLogic heating device.""" import logging from screenlogicpy.const import DATA as SL_DATA, EQUIPMENT, HEAT_MODE from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( ATTR_PRESET_MODE, CURRENT_HVAC_HEAT, CURRENT_HVAC_IDLE, C...
33.714932
100
0.643404
187ba4f53fe90367dc3e93593f506e59cdfcee16
78,980
py
Python
runs/2016/dnn2016med_traps/traps9/src/dataset.py
rohit21122012/DCASE2013
5360402265331d1c9032cf0fa94ef73f8c3c1047
[ "MIT" ]
2
2016-10-19T06:26:50.000Z
2016-10-19T13:39:42.000Z
runs/2016/dnn2016med_traps/traps9/src/dataset.py
rohit21122012/DCASE2013
5360402265331d1c9032cf0fa94ef73f8c3c1047
[ "MIT" ]
null
null
null
runs/2016/dnn2016med_traps/traps9/src/dataset.py
rohit21122012/DCASE2013
5360402265331d1c9032cf0fa94ef73f8c3c1047
[ "MIT" ]
2
2016-06-29T02:32:05.000Z
2017-08-05T08:15:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import locale import socket import tarfile import urllib2 import zipfile from sklearn.cross_validation import StratifiedShuffleSplit, KFold from files import * from general import * from ui import * class Dataset(object): """Dataset base class. The specific da...
39.688442
143
0.518005
139e590525475657c335071ae28d9f2bf096dfb2
463
py
Python
mdv/tests/files/manual/run_all.py
guye1296/terminal_markdown_viewer
80f333ba51dc2f1dfa854e203d3374a112aecbd3
[ "BSD-3-Clause" ]
1,745
2015-07-14T09:35:20.000Z
2022-03-31T15:53:06.000Z
mdv/tests/files/manual/run_all.py
guye1296/terminal_markdown_viewer
80f333ba51dc2f1dfa854e203d3374a112aecbd3
[ "BSD-3-Clause" ]
91
2015-07-15T13:44:31.000Z
2022-02-06T14:18:08.000Z
mdv/tests/files/manual/run_all.py
guye1296/terminal_markdown_viewer
80f333ba51dc2f1dfa854e203d3374a112aecbd3
[ "BSD-3-Clause" ]
140
2015-07-14T10:11:50.000Z
2022-03-19T22:46:57.000Z
#!/usr/bin/env python2.7 print 'Please inspect visually.' import os, sys sys.argv.append('') # substring match on filenames, if not given run all: match = sys.argv[1] exe = '../../mdv/markdownviewer.py' for file in os.listdir('.'): if not file.endswith('.md') or not match in file: continue print '\n\n'...
27.235294
73
0.598272
550b20bd2ed32b1b48be31c5bad7ac1c883ca89d
3,825
py
Python
google/appengine/_internal/django/core/files/base.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/google/appengine/_internal/django/core/files/base.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/google/appengine/_internal/django/core/files/base.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
import os try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from google.appengine._internal.django.utils.encoding import smart_str, smart_unicode from google.appengine._internal.django.core.files.utils import FileProxyMixin class File(FileProxyMixin): DEFAULT_CHUNK_SIZE...
28.333333
85
0.579869
b214e8e4c22725a924739c28e7398529f668608d
1,894
py
Python
ppq/samples/quantize_dsp.py
openppl-public/ppq
0fdea7d4982bc57feb6bb8548c7f012707fbd607
[ "Apache-2.0" ]
100
2021-12-31T09:34:06.000Z
2022-03-25T02:54:51.000Z
ppq/samples/quantize_dsp.py
openppl-public/ppq
0fdea7d4982bc57feb6bb8548c7f012707fbd607
[ "Apache-2.0" ]
12
2021-12-31T10:28:15.000Z
2022-03-31T07:08:44.000Z
ppq/samples/quantize_dsp.py
openppl-public/ppq
0fdea7d4982bc57feb6bb8548c7f012707fbd607
[ "Apache-2.0" ]
21
2021-12-31T09:51:02.000Z
2022-03-30T12:21:55.000Z
from typing import Iterable import torch import torchvision from ppq import BaseGraph, QuantizationSettingFactory, TargetPlatform from ppq.api import export_ppq_graph, quantize_torch_model from torch.utils.data import DataLoader BATCHSIZE = 32 INPUT_SHAPE = [3, 224, 224] DEVICE = 'cuda' # only cuda is fully tested :(...
38.653061
95
0.786167
2bdf58b94d41d4986bfc9bd1faad2d7817695c3f
11,278
py
Python
repos.py
fisadev/student-repos-handler
da45f29bce844e221ba5c509189d7fa10296775e
[ "MIT" ]
null
null
null
repos.py
fisadev/student-repos-handler
da45f29bce844e221ba5c509189d7fa10296775e
[ "MIT" ]
null
null
null
repos.py
fisadev/student-repos-handler
da45f29bce844e221ba5c509189d7fa10296775e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 import sys from os import path, system, listdir, putenv from collections import namedtuple import requests from termcolor import colored Repo = namedtuple('Repo', 'vcs slug description') class Repo(object): def __init__(self, alias, vcs, features, service, slug, server, de...
35.354232
95
0.546019
a26e77c2db38e053bb17af33ac639ae747124d2f
8,765
py
Python
TLCS/generator.py
BridgeQZH/Deep-QLearning-Agent-for-Traffic-Signal-Control
194924e51d816daa992faa4bd8cdbfd22dc7b3e8
[ "MIT" ]
null
null
null
TLCS/generator.py
BridgeQZH/Deep-QLearning-Agent-for-Traffic-Signal-Control
194924e51d816daa992faa4bd8cdbfd22dc7b3e8
[ "MIT" ]
null
null
null
TLCS/generator.py
BridgeQZH/Deep-QLearning-Agent-for-Traffic-Signal-Control
194924e51d816daa992faa4bd8cdbfd22dc7b3e8
[ "MIT" ]
null
null
null
import numpy as np import math class TrafficGenerator: def __init__(self, max_steps, n_cars_generated): self._n_cars_generated = n_cars_generated # how many cars per episode self._max_steps = max_steps def generate_routefile(self, seed): """ Generation of the route of every ca...
79.681818
182
0.552767
c71fcd717893db02087c8fdcbd67f460ebd87753
2,254
py
Python
underline_macro.py
Nateowami/libreoffice-underline-macro
2dc3178a719ee9a80929ba067f377cff3a966536
[ "MIT" ]
1
2021-04-19T13:26:39.000Z
2021-04-19T13:26:39.000Z
underline_macro.py
Nateowami/libreoffice-underline-macro
2dc3178a719ee9a80929ba067f377cff3a966536
[ "MIT" ]
null
null
null
underline_macro.py
Nateowami/libreoffice-underline-macro
2dc3178a719ee9a80929ba067f377cff3a966536
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import uno # Logging util for debugging when run from within LibreOffice. def log(data): # Logging only works on *nix systems f = open('~/log.txt', 'a') f.write(data + '\n') f.close() def getDesktop(): # If being run from inside LibreOffice, XSCRIPTCONTEXT will be defined ...
30.459459
78
0.700532
06f8766c417a71951bcd7909236a6e6638046f1a
368
py
Python
labs/lab10/ex1/ex1.py
jamestiotio/dbsys
26f545a51626ce232c0dc26b70ef206e71b273fc
[ "MIT" ]
null
null
null
labs/lab10/ex1/ex1.py
jamestiotio/dbsys
26f545a51626ce232c0dc26b70ef206e71b273fc
[ "MIT" ]
null
null
null
labs/lab10/ex1/ex1.py
jamestiotio/dbsys
26f545a51626ce232c0dc26b70ef206e71b273fc
[ "MIT" ]
null
null
null
import sys if sys.version_info[0] == 3: from functools import reduce else: pass def min(l): return reduce(lambda x, y: x if x < y else y, l, sys.maxsize) def max(l): return reduce(lambda x, y: x if x > y else y, l, -sys.maxsize - 1) if __name__ == "__main__": assert min([32, 63, 7, 10, 100]) ...
19.368421
70
0.592391
a2ae6bcfe0f18ddf6a1811247e8e8a8b79ff7585
5,598
py
Python
src/computer_vision/training/transfer_classifier.py
mldiego/Platooning-F1Tenth
ec5eadb137da8428642b3ffd1b8ca31fde4f6dff
[ "MIT" ]
null
null
null
src/computer_vision/training/transfer_classifier.py
mldiego/Platooning-F1Tenth
ec5eadb137da8428642b3ffd1b8ca31fde4f6dff
[ "MIT" ]
null
null
null
src/computer_vision/training/transfer_classifier.py
mldiego/Platooning-F1Tenth
ec5eadb137da8428642b3ffd1b8ca31fde4f6dff
[ "MIT" ]
null
null
null
# import the neccessary packages # import sys so we can use packages outside of this folder in # either python 2 or python 3, I know it's janky, chill import sys import os from pathlib import Path #insert parent directory into the path sys.path.insert(0,str(Path(os.path.abspath(__file__)).parent.parent)) from sklear...
35.884615
129
0.770096
d52566b12cc891708dbf566aedfc3818d03677f4
18,211
py
Python
scout/server/blueprints/variants/views.py
mhkc/scout
a7162f28c0f3490c3f3376268118fa8e6072a9db
[ "BSD-3-Clause" ]
null
null
null
scout/server/blueprints/variants/views.py
mhkc/scout
a7162f28c0f3490c3f3376268118fa8e6072a9db
[ "BSD-3-Clause" ]
null
null
null
scout/server/blueprints/variants/views.py
mhkc/scout
a7162f28c0f3490c3f3376268118fa8e6072a9db
[ "BSD-3-Clause" ]
null
null
null
"""Views for the variants""" import datetime import io import logging import os.path import pathlib import shutil import zipfile import pymongo from flask import ( Blueprint, abort, current_app, flash, redirect, request, send_file, session, url_for, ) from flask_login import current...
37.165306
99
0.670419
e4499448b98c0fc26b314d9cfb8ac093d03d0cef
4,642
py
Python
inertia/views.py
zodman/inertia-django
a8515083371baf649982bd6bb0dddebac723143b
[ "Unlicense" ]
77
2020-04-11T14:27:21.000Z
2022-03-31T16:16:42.000Z
inertia/views.py
zodman/inertia-django
a8515083371baf649982bd6bb0dddebac723143b
[ "Unlicense" ]
13
2020-05-28T19:28:20.000Z
2022-02-11T10:19:59.000Z
inertia/views.py
zodman/inertia-django
a8515083371baf649982bd6bb0dddebac723143b
[ "Unlicense" ]
19
2020-04-16T06:19:34.000Z
2022-01-23T17:33:49.000Z
import json from inspect import signature from django.core.exceptions import ImproperlyConfigured from django.http.response import HttpResponse, HttpResponseRedirect from django.views.generic import View from django.views.generic.list import BaseListView from django.views.generic.detail import BaseDetailView from djang...
31.794521
96
0.647997
668e03dc90e20dd48cf7d41300bcd7a1f6ed3182
1,122
py
Python
acscore/metrics.py
CheckiePy/CheckiePyCore
475ae75c4a30e4d7444fef218ffa7928fd4df4e2
[ "MIT" ]
2
2017-08-27T15:04:09.000Z
2017-08-27T21:05:44.000Z
acscore/metrics.py
acsproj/acscore
475ae75c4a30e4d7444fef218ffa7928fd4df4e2
[ "MIT" ]
2
2017-07-27T13:51:44.000Z
2017-08-05T06:54:10.000Z
acscore/metrics.py
CheckiePy/CheckiePyCore
475ae75c4a30e4d7444fef218ffa7928fd4df4e2
[ "MIT" ]
3
2017-05-31T21:20:18.000Z
2017-08-03T20:16:47.000Z
from .metric.file_length import FileLength from .metric.function_name_case import FunctionNameCase from .metric.nesting_loops import NestingLoops from .metric.class_name_case import ClassNameCase from .metric.indent_type import IndentType from .metric.quotes_type import QuotesType from .metric.spaces_near_round_bracket...
37.4
72
0.842246
dce6e5c8dc0bbaeec1e096d34aa98f71cba7ac2a
434
py
Python
instagram_api/response/direct_share_inbox.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
13
2019-08-07T21:24:34.000Z
2020-12-12T12:23:50.000Z
instagram_api/response/direct_share_inbox.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
instagram_api/response/direct_share_inbox.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
from .mapper import ApiResponse, ApiResponseInterface from .mapper.types import Timestamp, AnyType __all__ = ['DirectShareInboxResponse'] class DirectShareInboxResponseInterface(ApiResponseInterface): shares: AnyType max_id: str new_shares: AnyType patches: AnyType last_counted_at: AnyType ne...
24.111111
79
0.799539
d27465e7e2b79ba732ca99e7cbc3e169d683dd79
11,678
py
Python
core/storage/file/gae_models_test.py
sagangwee/oppia
c4bf0673b4d3ec30cff609109241656f71a63a82
[ "Apache-2.0" ]
3
2021-06-26T09:45:19.000Z
2021-11-17T11:11:39.000Z
core/storage/file/gae_models_test.py
sagangwee/oppia
c4bf0673b4d3ec30cff609109241656f71a63a82
[ "Apache-2.0" ]
7
2019-08-20T08:30:43.000Z
2022-02-12T18:47:57.000Z
core/storage/file/gae_models_test.py
ledriod/oppia
4f8f95c6689cd36f0b65672b80d98a3463b001f8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2018 The Oppia 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 requi...
46.158103
119
0.711081
8805faf68cbab58b1bfb25bb3c923dd18eed6c35
3,999
py
Python
pyta/python_ta/reporters/node_printers.py
AbChatt/Tweet-Analyser-Python
2953137b021a71d65fe6a83e6d4b87be36d4039b
[ "MIT" ]
null
null
null
pyta/python_ta/reporters/node_printers.py
AbChatt/Tweet-Analyser-Python
2953137b021a71d65fe6a83e6d4b87be36d4039b
[ "MIT" ]
null
null
null
pyta/python_ta/reporters/node_printers.py
AbChatt/Tweet-Analyser-Python
2953137b021a71d65fe6a83e6d4b87be36d4039b
[ "MIT" ]
null
null
null
"""Specify how errors should be rendered.""" import astroid from enum import Enum def render_message(msg, source_lines): """Render a message based on type.""" renderer = CUSTOM_MESSAGES.get(msg.symbol, render_generic) yield from renderer(msg, source_lines) def render_generic(msg, source_lines=None): ...
40.806122
130
0.674169
74618184653e401f2187f2bdfd163c694e2b2110
20,577
py
Python
cycle_gan/cycle_gan.py
asahi417/CycleGAN
44ab135f6666bd976299a2d86cc785f20c3b7860
[ "MIT" ]
2
2019-05-20T05:14:53.000Z
2021-04-22T16:50:14.000Z
cycle_gan/cycle_gan.py
asahi417/CycleGAN
44ab135f6666bd976299a2d86cc785f20c3b7860
[ "MIT" ]
null
null
null
cycle_gan/cycle_gan.py
asahi417/CycleGAN
44ab135f6666bd976299a2d86cc785f20c3b7860
[ "MIT" ]
1
2021-02-20T09:59:24.000Z
2021-02-20T09:59:24.000Z
import os import tensorflow as tf import numpy as np from .dataset_tool import tfrecord_parser from .util import create_log from .util_tf import generator_resnet, discriminator_patch DATA_TYPE = ['trainB', 'trainA', 'testA', 'testB'] class CycleGAN: """ Only valid for images with shape [256, 256, 3] """...
45.524336
118
0.565146
c609eebaf2478d42917fbf6d3029ebf5fd8da01d
7,615
py
Python
predict.py
The-ML-Hero/Robo-Semantic-Segmentation
17904ebc7d2f0f388da641140daac6f6602ef5ea
[ "MIT" ]
5
2021-01-27T13:09:13.000Z
2021-01-28T12:20:11.000Z
predict.py
The-ML-Hero/Robo-Semantic-Segmentation
17904ebc7d2f0f388da641140daac6f6602ef5ea
[ "MIT" ]
null
null
null
predict.py
The-ML-Hero/Robo-Semantic-Segmentation
17904ebc7d2f0f388da641140daac6f6602ef5ea
[ "MIT" ]
null
null
null
import argparse import logging import os import sys import numpy as np import torch import torch.nn as nn from torch import optim from tqdm import tqdm from eval import eval_net from unet import UNet from torch.utils.tensorboard import SummaryWriter from utils.dataset import BasicDataset,CarvanaDataset from torch.ut...
40.505319
118
0.580565
9c8e402b2290299a3cd3785de2a4be4563095858
4,120
py
Python
tests/test_preprocess_winograd.py
PterosDiacos/jiant
5aca4c5c54c4385708d3bda2d53420224ddf5dc3
[ "MIT" ]
null
null
null
tests/test_preprocess_winograd.py
PterosDiacos/jiant
5aca4c5c54c4385708d3bda2d53420224ddf5dc3
[ "MIT" ]
null
null
null
tests/test_preprocess_winograd.py
PterosDiacos/jiant
5aca4c5c54c4385708d3bda2d53420224ddf5dc3
[ "MIT" ]
null
null
null
import csv import os import pandas as pd import shutil import tempfile import unittest import src.utils.retokenize as retokenize import json import copy """ Tests scripts/winograd/preprocess_winograd.py. """ class TestPreprocessWinograd(unittest.TestCase): def setUp(self): self.temp_dir = tempfile.mkdtem...
34.049587
80
0.433738
b56cbd67278be53c24d217ea331c9a69928358c0
2,749
py
Python
yodatools/dataloader/controller/WizardSummaryPageController.py
ODM2/YODAParser
274a1fc5ed1810bc748a4ab108855254f8b9fc46
[ "BSD-3-Clause" ]
null
null
null
yodatools/dataloader/controller/WizardSummaryPageController.py
ODM2/YODAParser
274a1fc5ed1810bc748a4ab108855254f8b9fc46
[ "BSD-3-Clause" ]
21
2016-02-06T00:43:44.000Z
2018-02-02T20:22:05.000Z
yodatools/dataloader/controller/WizardSummaryPageController.py
ODM2/ODM2YODAParser
274a1fc5ed1810bc748a4ab108855254f8b9fc46
[ "BSD-3-Clause" ]
1
2017-07-06T18:42:22.000Z
2017-07-06T18:42:22.000Z
import os import time import wx from pubsub import pub from yodatools.converter.Inputs.excelInput import ExcelInput from yodatools.converter.Inputs.yamlInput import yamlInput from yodatools.converter.Outputs.yamlOutput import yamlOutput from yodatools.converter.Outputs.dbOutput import dbOutput from yodatools.dataload...
30.208791
106
0.64387
efbe555d6b324a494ed9bb22ac1fb27e83c6950f
17,539
py
Python
siliconcompiler/sphinx_ext/dynamicgen.py
siliconcompiler/siliconcompiler
6aa2b53441608f228bd520b68c0324fc9cf96377
[ "Apache-2.0" ]
424
2021-12-04T15:45:12.000Z
2022-03-31T20:27:55.000Z
siliconcompiler/sphinx_ext/dynamicgen.py
siliconcompiler/siliconcompiler
6aa2b53441608f228bd520b68c0324fc9cf96377
[ "Apache-2.0" ]
105
2021-12-03T21:25:29.000Z
2022-03-31T22:36:59.000Z
siliconcompiler/sphinx_ext/dynamicgen.py
siliconcompiler/siliconcompiler
6aa2b53441608f228bd520b68c0324fc9cf96377
[ "Apache-2.0" ]
38
2021-12-04T21:26:20.000Z
2022-03-21T02:39:29.000Z
'''Sphinx extension that provides directives for automatically generating documentation for dynamically loaded modules used by SC. ''' from docutils import nodes from sphinx.util.nodes import nested_parse_with_titles from docutils.statemachine import ViewList from sphinx.util.docutils import SphinxDirective import doc...
35.576065
125
0.611608
39b6f45b01e2bdfd59d3064c3805dc932e82e1d3
7,542
py
Python
doc/conf.py
heavywatal/pysam
482e887e67ce035e8a9e8fe1ec55be6c80d3e5dc
[ "MIT" ]
553
2015-01-02T15:04:03.000Z
2022-03-31T18:14:11.000Z
doc/conf.py
heavywatal/pysam
482e887e67ce035e8a9e8fe1ec55be6c80d3e5dc
[ "MIT" ]
940
2015-01-05T05:12:07.000Z
2022-03-30T17:09:19.000Z
doc/conf.py
heavywatal/pysam
482e887e67ce035e8a9e8fe1ec55be6c80d3e5dc
[ "MIT" ]
287
2015-01-04T22:46:07.000Z
2022-03-23T20:37:25.000Z
# -*- coding: utf-8 -*- # # samtools documentation build configuration file, created by # sphinx-quickstart on Wed Aug 12 14:43:42 2009. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
33.371681
83
0.713073
54509ce70f7f7000be44c003e1dcb13dc5f8820f
32,969
py
Python
torchgeo/datasets/geo.py
RitwikGupta/torchgeo
14c19e35c2b17f9cd6f2dcbdc0968283aa89fbbb
[ "MIT" ]
1
2022-01-07T01:42:32.000Z
2022-01-07T01:42:32.000Z
torchgeo/datasets/geo.py
RitwikGupta/torchgeo
14c19e35c2b17f9cd6f2dcbdc0968283aa89fbbb
[ "MIT" ]
null
null
null
torchgeo/datasets/geo.py
RitwikGupta/torchgeo
14c19e35c2b17f9cd6f2dcbdc0968283aa89fbbb
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Base classes for all :mod:`torchgeo` datasets.""" import abc import functools import glob import os import re import sys from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, cast import fiona import f...
33.607543
88
0.586187
5f588fafa9a52f8cd14bda675f3e912187a27c51
4,664
py
Python
uplink/hooks.py
sthagen/prkumar-uplink
089335833acf60cf9b206278580d856814f4067d
[ "MIT" ]
null
null
null
uplink/hooks.py
sthagen/prkumar-uplink
089335833acf60cf9b206278580d856814f4067d
[ "MIT" ]
null
null
null
uplink/hooks.py
sthagen/prkumar-uplink
089335833acf60cf9b206278580d856814f4067d
[ "MIT" ]
null
null
null
""" This module provides a class for defining custom handling for specific points of an HTTP transaction. """ # Local imports from uplink import compat __all__ = ["TransactionHook", "RequestAuditor", "ResponseHandler"] def _wrap_if_necessary(hook, requires_consumer): if not requires_consumer: return _wra...
32.615385
79
0.687393
f02b79d4db48bf40af5b1d64ef0e22db3fabafc8
7,483
py
Python
plugins/modules/oci_marketplace_agreement_facts.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
108
2020-05-19T20:46:10.000Z
2022-03-25T14:10:01.000Z
plugins/modules/oci_marketplace_agreement_facts.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
90
2020-06-14T22:07:11.000Z
2022-03-07T05:40:29.000Z
plugins/modules/oci_marketplace_agreement_facts.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
42
2020-08-30T23:09:12.000Z
2022-03-25T16:58:01.000Z
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
31.049793
121
0.648403
1ebc4107db903302aaffd24e454dc300550934f0
888
py
Python
caliper-workspace/Performance/Read_latency.py
weishancc/SPChain
1a10d2253b7cead862092df9f740ae768124df39
[ "Apache-2.0" ]
1
2021-12-26T07:41:11.000Z
2021-12-26T07:41:11.000Z
caliper-workspace/Performance/Read_latency.py
weishancc/SPChain
1a10d2253b7cead862092df9f740ae768124df39
[ "Apache-2.0" ]
null
null
null
caliper-workspace/Performance/Read_latency.py
weishancc/SPChain
1a10d2253b7cead862092df9f740ae768124df39
[ "Apache-2.0" ]
1
2021-07-20T04:25:03.000Z
2021-07-20T04:25:03.000Z
# -*- coding: utf-8 -*- """ Created on Mon May 17 15:27:10 2021 @author: Koma """ # Plotted read functions include: # - readConsent # - readArtwork # - getHistoryForArtwork # - readLog # - readModel # - readBalance # - invokeModel import matplotlib.pyplot as plt import util ...
28.645161
149
0.626126
c6d22c4d2abce021e524d16d012bc4030e580b0d
242
py
Python
corelib/core/__init__.py
guillaume-florent/corelib
9e25b862b5eaf1fe1a9b68af070a743184f992ba
[ "MIT" ]
1
2018-05-05T02:11:59.000Z
2018-05-05T02:11:59.000Z
corelib/core/__init__.py
guillaume-florent/corelib
9e25b862b5eaf1fe1a9b68af070a743184f992ba
[ "MIT" ]
null
null
null
corelib/core/__init__.py
guillaume-florent/corelib
9e25b862b5eaf1fe1a9b68af070a743184f992ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- r"""__init__ module of the core package""" from __future__ import unicode_literals # API from corelib.core.profiling import timeit from corelib.core.memoize import memoize from corelib.core.timeout import timeout
18.615385
42
0.768595
b48695d9c5281ea3834309a324bcda348ab27867
3,038
py
Python
deephyper/benchmark/datasets/airlines.py
Z223I/deephyper
4fd1054dc22f15197567bdd93c6e7a95a614b8e2
[ "BSD-3-Clause" ]
185
2018-11-06T18:49:47.000Z
2022-03-31T22:10:41.000Z
deephyper/benchmark/datasets/airlines.py
Z223I/deephyper
4fd1054dc22f15197567bdd93c6e7a95a614b8e2
[ "BSD-3-Clause" ]
108
2018-12-17T17:58:05.000Z
2022-03-16T10:22:08.000Z
deephyper/benchmark/datasets/airlines.py
Z223I/deephyper
4fd1054dc22f15197567bdd93c6e7a95a614b8e2
[ "BSD-3-Clause" ]
50
2018-12-11T20:41:41.000Z
2022-02-25T19:50:47.000Z
import numpy as np import openml from sklearn.preprocessing import LabelEncoder from sklearn import model_selection def load_data( random_state=42, verbose=False, test_size=0.33, valid_size=0.33, categoricals_to_integers=False, ): """Load the "Airlines" dataset from OpenML. Args: ...
33.755556
136
0.64944
75cd7c8b4980332ce8bdbd0e3118348d5996e303
154,846
py
Python
python/tvm/relay/frontend/pytorch.py
pfk-beta/tvm
5ecb8c384a66933fec8c7f033cba03337eb1a726
[ "Apache-2.0" ]
null
null
null
python/tvm/relay/frontend/pytorch.py
pfk-beta/tvm
5ecb8c384a66933fec8c7f033cba03337eb1a726
[ "Apache-2.0" ]
null
null
null
python/tvm/relay/frontend/pytorch.py
pfk-beta/tvm
5ecb8c384a66933fec8c7f033cba03337eb1a726
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.520233
120
0.578523
fc20c7ff23103be71b3e60c22a0f246c31449383
16,994
py
Python
art/utils.py
b0bbybaldi/adversarial-robustness-toolbox
68a170642d96194c4586d6f9e8c801ccf7b1c1f6
[ "MIT" ]
1
2019-05-24T12:11:49.000Z
2019-05-24T12:11:49.000Z
art/utils.py
b0bbybaldi/adversarial-robustness-toolbox
68a170642d96194c4586d6f9e8c801ccf7b1c1f6
[ "MIT" ]
null
null
null
art/utils.py
b0bbybaldi/adversarial-robustness-toolbox
68a170642d96194c4586d6f9e8c801ccf7b1c1f6
[ "MIT" ]
null
null
null
# MIT License # # Copyright (C) IBM Corporation 2018 # # 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...
37.514349
120
0.619866
6d9332fd23d153a16b08083b8b5821e556a4f859
6,248
py
Python
trio/_core/_mock_clock.py
RmStorm/trio
708c2e3029f210832ee8c9354887879e0161b065
[ "Apache-2.0", "MIT" ]
null
null
null
trio/_core/_mock_clock.py
RmStorm/trio
708c2e3029f210832ee8c9354887879e0161b065
[ "Apache-2.0", "MIT" ]
null
null
null
trio/_core/_mock_clock.py
RmStorm/trio
708c2e3029f210832ee8c9354887879e0161b065
[ "Apache-2.0", "MIT" ]
null
null
null
import time from math import inf from .. import _core from ._run import GLOBAL_RUN_CONTEXT from .._abc import Clock from .._util import SubclassingDeprecatedIn_v0_15_0 ################################################################ # The glorious MockClock ############################################################...
37.638554
84
0.649808
70b33e0510862179f13f8965a43f0354ea7bc9cb
3,036
py
Python
codescroll/_project_information_builder.py
Suresoft-GLaDOS/cxbuild
1eb568bc11ae8854b1a6025c969ec94c96d6a4a9
[ "MIT" ]
2
2021-11-01T02:11:59.000Z
2021-11-04T09:19:45.000Z
codescroll/_project_information_builder.py
HansolChoe/cxbuild
c289e40efdf92f34e7781772b3b84e0a1c7d0af2
[ "MIT" ]
3
2021-11-04T06:23:38.000Z
2021-11-19T01:54:05.000Z
codescroll/_project_information_builder.py
HansolChoe/cxbuild
c289e40efdf92f34e7781772b3b84e0a1c7d0af2
[ "MIT" ]
2
2021-11-01T03:01:28.000Z
2021-11-04T09:19:28.000Z
import json import cslib import compiler from codescroll.runner import * def _normalize_command_list(commands): # commands 는 모두 절대경로로 변경된 상태로 들어온다 # absolute_command_list 에 따옴표가 들어 있는 것들을 노멀라이즈한 후 검토 # STCS-165, 매크로 인자에도 " 가 존재할 수 있으므로 첫번째와 마지막에 같은 기호가 존재하는지 확인 normalize_commands = [] for cmd in c...
34.11236
86
0.589262
bc527ca716ff9f8bed67ff5a0e3707c54d5bbc06
1,006
py
Python
earthquakeformat/example2.py
pinaky/utilities
c76123defa2b233992399a5647588684c54264d4
[ "MIT" ]
null
null
null
earthquakeformat/example2.py
pinaky/utilities
c76123defa2b233992399a5647588684c54264d4
[ "MIT" ]
null
null
null
earthquakeformat/example2.py
pinaky/utilities
c76123defa2b233992399a5647588684c54264d4
[ "MIT" ]
null
null
null
from earthquakeformat import CSMIPVolume2Record import os.path s = CSMIPVolume2Record('test2.V2') # --- This block of commands export acceleration data from all channels to CSV format basename = 'CE1430V2_ACC_' channelnumber = 0 # From each channel, get (#data points, time step) and check that they're all t...
41.916667
119
0.65507
7c358cffc20e4e15f117068a8a7d4885e3913b15
27,325
py
Python
aiokafka/client.py
patkivikram/aiokafka-1
bbbfc4bf4ed02c0a25b4a86c8ec7afa5b5867975
[ "Apache-2.0" ]
1
2021-10-01T08:02:17.000Z
2021-10-01T08:02:17.000Z
aiokafka/client.py
patkivikram/aiokafka-1
bbbfc4bf4ed02c0a25b4a86c8ec7afa5b5867975
[ "Apache-2.0" ]
null
null
null
aiokafka/client.py
patkivikram/aiokafka-1
bbbfc4bf4ed02c0a25b4a86c8ec7afa5b5867975
[ "Apache-2.0" ]
2
2020-12-04T22:05:41.000Z
2022-03-16T22:26:49.000Z
import asyncio import logging import random import time from kafka.conn import collect_hosts from kafka.protocol.metadata import MetadataRequest from kafka.protocol.commit import OffsetFetchRequest from kafka.protocol.fetch import FetchRequest import aiokafka.errors as Errors from aiokafka import __version__ from aio...
40.541543
101
0.60505
da171f97851ae5d0f58aa3d0b1bb9b78258b0349
1,412
py
Python
tools/nntool/importer/onnx/handlers/backend/mul.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
118
2018-05-22T08:45:59.000Z
2022-03-30T07:00:45.000Z
tools/nntool/importer/onnx/handlers/backend/mul.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
213
2018-07-25T02:37:32.000Z
2022-03-30T18:04:01.000Z
tools/nntool/importer/onnx/handlers/backend/mul.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
76
2018-07-04T08:19:27.000Z
2022-03-24T09:58:05.000Z
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
36.205128
78
0.706091
d1474f79fc8f33e52087301cb746b04cc0e61c19
1,565
py
Python
companies/models.py
miclemabasie/jobizar
1dde7aab4ba02de75517a5cf91d54b43ac41e3cb
[ "MIT" ]
null
null
null
companies/models.py
miclemabasie/jobizar
1dde7aab4ba02de75517a5cf91d54b43ac41e3cb
[ "MIT" ]
null
null
null
companies/models.py
miclemabasie/jobizar
1dde7aab4ba02de75517a5cf91d54b43ac41e3cb
[ "MIT" ]
null
null
null
from django.db import models from users.models import Profile class Company(models.Model): name = models.CharField(max_length=255) line_of_engagement = models.CharField(max_length=255, null=True, blank=True) location = models.CharField(max_length=255) logo = models.ImageField(upload_to='companies', de...
46.029412
118
0.722045
98ab713602c578de9e6bc2cb074f71d4843f4c82
54,919
py
Python
python/paddle/fluid/layers/tensor.py
honlinchen/Paddle
99d30bfc367d6b472d8b667656678f6b6d84db0c
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/layers/tensor.py
honlinchen/Paddle
99d30bfc367d6b472d8b667656678f6b6d84db0c
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/layers/tensor.py
honlinchen/Paddle
99d30bfc367d6b472d8b667656678f6b6d84db0c
[ "Apache-2.0" ]
1
2020-09-12T21:35:19.000Z
2020-09-12T21:35:19.000Z
# Copyright (c) 2018 PaddlePaddle 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 # # Unlessf required by ap...
37.385296
171
0.563029
789bcf3999beabe4b78b031c82dd0da11d13971d
4,070
py
Python
testing/legion/examples/http_example/http_test.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
testing/legion/examples/http_example/http_test.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
testing/legion/examples/http_example/http_test.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright 2015 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 argparse import logging import os import socket import sys import time TESTING_DIR = os.path.join( os.path.dirname(os.path.abspath(__file__)), '....
28.661972
80
0.660934
a975e20dea25fa8ed21cee0a6272199672e98ba7
20,927
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv6_acl_datatypes.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv6_acl_datatypes.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ipv6_acl_datatypes.py
bopopescu/ACI
dd717bc74739eeed4747b3ea9e36b239580df5e1
[ "ECL-2.0", "Apache-2.0" ]
1
2020-07-22T04:04:44.000Z
2020-07-22T04:04:44.000Z
""" Cisco_IOS_XR_ipv6_acl_datatypes This module contains a collection of generally useful derived YANG data types. Copyright (c) 2013\-2017 by Cisco Systems, Inc. All rights reserved. """ from collections import OrderedDict from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, L...
18.197391
126
0.624361
0d8a4340868fe6ed30637cf1e8c52f187b8b49cc
15,036
py
Python
modoboa/core/models.py
Arvedui/modoboa
404f4bc0f544506d23ac534ff02ae6c6e3b6558c
[ "ISC" ]
null
null
null
modoboa/core/models.py
Arvedui/modoboa
404f4bc0f544506d23ac534ff02ae6c6e3b6558c
[ "ISC" ]
null
null
null
modoboa/core/models.py
Arvedui/modoboa
404f4bc0f544506d23ac534ff02ae6c6e3b6558c
[ "ISC" ]
null
null
null
# -*- coding: utf-8 -*- """Core models.""" from __future__ import unicode_literals import re from email.header import Header import jsonfield from reversion import revisions as reversion from django.conf import settings from django.contrib.auth.models import AbstractUser, Group from django.contrib.contenttypes.fie...
33.118943
78
0.618183
a96c26dc03007de2017b22a3ffa3914a7819ed92
1,059
py
Python
5.1 Newton otimizacao nao linear irrestrito.py
HigorAnjos/Fundamentos-VI
e0aa3cb37e4c54d24ac7123ea3bd8038196e0edb
[ "MIT" ]
null
null
null
5.1 Newton otimizacao nao linear irrestrito.py
HigorAnjos/Fundamentos-VI
e0aa3cb37e4c54d24ac7123ea3bd8038196e0edb
[ "MIT" ]
null
null
null
5.1 Newton otimizacao nao linear irrestrito.py
HigorAnjos/Fundamentos-VI
e0aa3cb37e4c54d24ac7123ea3bd8038196e0edb
[ "MIT" ]
null
null
null
from FuncoesCauchyNewton import * from sympy import * import numpy as np x = Symbol('x') y = Symbol('y') ponto_x = Matrix([1, 0]) f = 1/2*(x - 2)**2 + (y - 1)**2 constante = 1 Matdiff = Matrix([[diff(f.subs(y, constante))], [diff(f.subs(x, constante))]]) # vetor derivada primeira d = - Matdiff.subs(x, ponto_x[0])...
24.627907
137
0.620397
76b1aad19ca5850515d3525d0a82f62145059d08
14,200
py
Python
userbot/plugins/so_IQ.py
TeleOniOn/telethon-iraq
a247d2a44c547a2a98befdc4d7be93d55a077f70
[ "Apache-2.0" ]
null
null
null
userbot/plugins/so_IQ.py
TeleOniOn/telethon-iraq
a247d2a44c547a2a98befdc4d7be93d55a077f70
[ "Apache-2.0" ]
null
null
null
userbot/plugins/so_IQ.py
TeleOniOn/telethon-iraq
a247d2a44c547a2a98befdc4d7be93d55a077f70
[ "Apache-2.0" ]
null
null
null
# credits to @TeleOniOn from telethon import events import asyncio from userbot.utils import admin_cmd from userbot import ALIVE_NAME import random, re from userbot import CMD_HELP from collections import deque DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "cat" @borg.on(admin_cmd(pattern=f"loading$", ...
55.03876
781
0.406338
c74f1b750e0ef58e421a7c8b5c1ac411bce8f83e
2,584
py
Python
vk/bot_framework/dispatcher/handler.py
fossabot/vk.py
94d5c719eb8da6d778d2be208038c447971d5cff
[ "MIT" ]
null
null
null
vk/bot_framework/dispatcher/handler.py
fossabot/vk.py
94d5c719eb8da6d778d2be208038c447971d5cff
[ "MIT" ]
null
null
null
vk/bot_framework/dispatcher/handler.py
fossabot/vk.py
94d5c719eb8da6d778d2be208038c447971d5cff
[ "MIT" ]
null
null
null
import abc import asyncio import logging import typing from vk.bot_framework.dispatcher import data_ from vk.bot_framework.dispatcher.rule import BaseRule from vk.types.events.community.events_list import Event logger = logging.getLogger(__name__) class BaseHandler(abc.ABC): @property def event_type(self) -...
24.846154
87
0.566176
daae9923c4299e7e4b25b6125c3f59c5e1730ed8
7,671
py
Python
T4_trd_env.py
EY4L/Bitcoin-trading-bot
d57325e165ddb2731089cf0a600114617bff0d82
[ "MIT" ]
null
null
null
T4_trd_env.py
EY4L/Bitcoin-trading-bot
d57325e165ddb2731089cf0a600114617bff0d82
[ "MIT" ]
null
null
null
T4_trd_env.py
EY4L/Bitcoin-trading-bot
d57325e165ddb2731089cf0a600114617bff0d82
[ "MIT" ]
1
2021-11-21T15:47:44.000Z
2021-11-21T15:47:44.000Z
import gym from gym import spaces import pandas as pd import numpy as np import random import gym from gym import spaces import pandas as pd import numpy as np import random class trading_env(gym.Env): """Single Stock Trading Environment""" def __init__(self,df, init_capital=10000): #instance attributes...
47.645963
252
0.639421
2c4b93c40bbcb708ed1954792251763307ebe751
786
py
Python
rest_service/client_rest.py
mgzeke0/movie_classifier
df24e29e8a3c3f04e77a13a03d301f4daa6b8385
[ "Apache-2.0" ]
null
null
null
rest_service/client_rest.py
mgzeke0/movie_classifier
df24e29e8a3c3f04e77a13a03d301f4daa6b8385
[ "Apache-2.0" ]
5
2020-09-25T21:16:41.000Z
2022-02-10T00:38:07.000Z
rest_service/client_rest.py
mgzeke0/movie_classifier
df24e29e8a3c3f04e77a13a03d301f4daa6b8385
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json import traceback import requests from config import PORT def test(): """ Utility function to debug FastAPI service :return: """ url = f'http://127.0.0.1:{PORT}/predict_genre/' while True: title = input('Insert movie title: ') overview = inp...
22.457143
63
0.52799
5e64adce2d9f7dffa22395236fbf1f9e486cc783
3,177
py
Python
airflow/providers/datadog/sensors/datadog.py
dorranh/airflow
1a9a2cadcf8606cfcb729d1323dd33dfacc64633
[ "Apache-2.0" ]
null
null
null
airflow/providers/datadog/sensors/datadog.py
dorranh/airflow
1a9a2cadcf8606cfcb729d1323dd33dfacc64633
[ "Apache-2.0" ]
1
2020-05-24T15:53:39.000Z
2020-05-24T15:53:39.000Z
airflow/providers/datadog/sensors/datadog.py
dorranh/airflow
1a9a2cadcf8606cfcb729d1323dd33dfacc64633
[ "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 #...
37.376471
88
0.687441
dcf03fe5aa03bde678f2ed82914789262f44883a
9,009
py
Python
nova/tests/unit/cells/test_cells_weights.py
lixiaoy1/nova
357b8b38e88300948bb2e07d1bbaabd1e9d7b60e
[ "Apache-2.0" ]
2
2021-10-11T04:56:25.000Z
2022-02-16T08:49:29.000Z
nova/tests/unit/cells/test_cells_weights.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
132
2017-03-27T11:31:52.000Z
2022-03-30T08:45:02.000Z
nova/tests/unit/cells/test_cells_weights.py
woraser/nova
fc3890667e4971e3f0f35ac921c2a6c25f72adec
[ "Apache-2.0" ]
8
2017-03-27T07:50:38.000Z
2020-02-14T16:55:56.000Z
# Copyright (c) 2012 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 ...
41.516129
78
0.676768
ce1bf201a160fdb55900343f242bdac3cbfd2131
1,019
py
Python
sample_app/migrations/0001_initial.py
Draft2Digital/react-in-django
09906fd69b5ce574d3cb798e4ea1f6a3334f9dfb
[ "MIT" ]
null
null
null
sample_app/migrations/0001_initial.py
Draft2Digital/react-in-django
09906fd69b5ce574d3cb798e4ea1f6a3334f9dfb
[ "MIT" ]
null
null
null
sample_app/migrations/0001_initial.py
Draft2Digital/react-in-django
09906fd69b5ce574d3cb798e4ea1f6a3334f9dfb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Author', fields=[ ('id', models.AutoField(verbo...
30.878788
114
0.533857
04f83863146f3e50ce4964fcf0e8e9dd5376764b
11,882
py
Python
src/azure-cli/azure/cli/command_modules/storage/_client_factory.py
chef-davin/azure-cli
2ebd33d5f69a27d07404cc48cf475d5fbdda6378
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/storage/_client_factory.py
chef-davin/azure-cli
2ebd33d5f69a27d07404cc48cf475d5fbdda6378
[ "MIT" ]
1
2021-06-02T04:24:22.000Z
2021-06-02T04:24:22.000Z
src/azure-cli/azure/cli/command_modules/storage/_client_factory.py
chef-davin/azure-cli
2ebd33d5f69a27d07404cc48cf475d5fbdda6378
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
47.338645
115
0.680693
1b9c1967527aa13f2b84d821cdb771ccef93c933
62,656
py
Python
src/genie/libs/parser/iosxr/show_platform.py
miuvlad/genieparser
60b1151e3c67c6b55d75e30359d0bf52825efad8
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxr/show_platform.py
miuvlad/genieparser
60b1151e3c67c6b55d75e30359d0bf52825efad8
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxr/show_platform.py
miuvlad/genieparser
60b1151e3c67c6b55d75e30359d0bf52825efad8
[ "Apache-2.0" ]
null
null
null
''' show_platform.py IOSXR parsers for the following show commands: * 'show version' * 'show sdr detail' * 'show platform' * 'show platform vm' * 'show install active summary' * 'show install inactive summary' * 'show install commit summary' * 'show inventory' * 'admin show diag cha...
40.449322
125
0.465223
6ad5444041e41103d8caef6b528585a77533e037
17,586
py
Python
google/ads/googleads/v4/services/services/keyword_view_service/client.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/services/services/keyword_view_service/client.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/services/services/keyword_view_service/client.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
40.708333
120
0.637439
df09567d4892044b4f5d5cdba93f80b181ef202d
6,160
py
Python
Controller/NovoFornecedorController.py
rennancockles/gigapy
4fb0cd97e689c6460254a466a7a8d9137c2392b1
[ "MIT" ]
null
null
null
Controller/NovoFornecedorController.py
rennancockles/gigapy
4fb0cd97e689c6460254a466a7a8d9137c2392b1
[ "MIT" ]
null
null
null
Controller/NovoFornecedorController.py
rennancockles/gigapy
4fb0cd97e689c6460254a466a7a8d9137c2392b1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from View import NovoFornecedorView from DAO import FornecedorDAO from Model.TelefoneModel import Telefone from Model.EmailModel import Email from Model.FornecedorModel import Fornecedor from PyQt4 import QtGui class NovoFornecedor(QtGui.QMainWindow, NovoFornecedorView.Ui_NovoFornecedor): ...
31.428571
132
0.618994
447ecf981b52993051e05b9b3407b5ba591ea2ee
3,322
py
Python
saleor/menu/models.py
mmmcorpsvit/saleor
09e40a2af549109fbc2f8e82c68a195053e8224e
[ "BSD-3-Clause" ]
null
null
null
saleor/menu/models.py
mmmcorpsvit/saleor
09e40a2af549109fbc2f8e82c68a195053e8224e
[ "BSD-3-Clause" ]
null
null
null
saleor/menu/models.py
mmmcorpsvit/saleor
09e40a2af549109fbc2f8e82c68a195053e8224e
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.postgres.fields import JSONField from django.db import models from django.utils.translation import pgettext_lazy from mptt.managers import TreeManager from mptt.models import MPTTModel from ..core.models import SortableModel from ..core.utils.translations import TranslationProxy from ..page.models ...
31.942308
78
0.665563
01cb3746d1820266b80596bef731013d68387939
439
py
Python
pol/ptst.py
mlares/CMB_polarization
936d17d0be81564dbae96d8aae0cb9f824f8a94d
[ "MIT" ]
null
null
null
pol/ptst.py
mlares/CMB_polarization
936d17d0be81564dbae96d8aae0cb9f824f8a94d
[ "MIT" ]
null
null
null
pol/ptst.py
mlares/CMB_polarization
936d17d0be81564dbae96d8aae0cb9f824f8a94d
[ "MIT" ]
null
null
null
from Parser import Parser from sys import argv #import PixelSky as pxs import cmfg #from configparser import ConfigParser if len(argv) > 1: config = Parser(argv[1]) else: config = Parser() #filename = pxs.check_file(argv) #config = ConfigParser() #config.read(filename) #config = Parser('../set/...
19.086957
38
0.653759
dc040750089650045d2f2ec4f082ac76b18ea976
9,014
py
Python
venv/Lib/site-packages/celery/bin/worker.py
Verckolf/MyInterfaceTest
e05674bd673a6a43cfb33f7cb4318886ba92a05c
[ "MIT" ]
39
2016-12-05T14:36:37.000Z
2021-07-29T18:22:34.000Z
microblog/flask/venv/lib/python2.7/site-packages/celery/bin/worker.py
johankaito/fufuka
32a96ecf98ce305c2206c38443e58fdec88c788d
[ "Apache-2.0" ]
68
2016-12-12T20:38:47.000Z
2020-07-26T18:28:49.000Z
microblog/flask/venv/lib/python2.7/site-packages/celery/bin/worker.py
johankaito/fufuka
32a96ecf98ce305c2206c38443e58fdec88c788d
[ "Apache-2.0" ]
120
2016-08-18T14:53:03.000Z
2020-06-16T13:27:20.000Z
# -*- coding: utf-8 -*- """ The :program:`celery worker` command (previously known as ``celeryd``) .. program:: celery worker .. seealso:: See :ref:`preload-options`. .. cmdoption:: -c, --concurrency Number of child processes processing the queue. The default is the number of CPUs available on your sy...
33.261993
79
0.637342
49a05265bb854182d7f2865ec9a6936496e2d54e
812
py
Python
python/opencv/color-detection/detect_color.py
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
1
2020-01-09T03:22:09.000Z
2020-01-09T03:22:09.000Z
python/opencv/color-detection/detect_color.py
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
null
null
null
python/opencv/color-detection/detect_color.py
lijiansong/lang
e255709da2b12e09dea45f86d54f77a19b96f13b
[ "WTFPL" ]
null
null
null
# USAGE # python3 detect_color.py --image pokemon_games.png import numpy as np import cv2 # load the image image = cv2.imread('pokemon_games.png') # define the list of boundaries boundaries = [ ([17, 15, 100], [50, 56, 200]), ([86, 31, 4], [220, 88, 50]), ([25, 146, 190], [62, 174, 250]), ([103, 86, ...
24.606061
63
0.641626
86719db4609affe2ab17f4139b0925e50fea220f
4,454
py
Python
JavaScripts/ImageCollection/LandsatSimpleComposite.py
OIEIEIO/earthengine-py-notebooks
5d6c5cdec0c73bf02020ee17d42c9e30d633349f
[ "MIT" ]
1,008
2020-01-27T02:03:18.000Z
2022-03-24T10:42:14.000Z
JavaScripts/ImageCollection/LandsatSimpleComposite.py
rafatieppo/earthengine-py-notebooks
99fbc4abd1fb6ba41e3d8a55f8911217353a3237
[ "MIT" ]
8
2020-02-01T20:18:18.000Z
2021-11-23T01:48:02.000Z
JavaScripts/ImageCollection/LandsatSimpleComposite.py
rafatieppo/earthengine-py-notebooks
99fbc4abd1fb6ba41e3d8a55f8911217353a3237
[ "MIT" ]
325
2020-01-27T02:03:36.000Z
2022-03-25T20:33:33.000Z
# %% """ <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/JavaScripts/ImageCollection/LandsatSimpleComposite.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></...
50.613636
1,021
0.748541
4970a28b266621d087080991a28c4ba7bbf93393
30,399
py
Python
guts/api/xmlutil.py
smallwormer/stable-liberty-guts
e635b710cdd210f70e9d50c3b85fffdeb53e8f01
[ "Apache-2.0" ]
null
null
null
guts/api/xmlutil.py
smallwormer/stable-liberty-guts
e635b710cdd210f70e9d50c3b85fffdeb53e8f01
[ "Apache-2.0" ]
null
null
null
guts/api/xmlutil.py
smallwormer/stable-liberty-guts
e635b710cdd210f70e9d50c3b85fffdeb53e8f01
[ "Apache-2.0" ]
1
2022-03-03T05:41:31.000Z
2022-03-03T05:41:31.000Z
# Copyright (c) 2015 Aptira Pty Ltd. # 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 requi...
31.371517
78
0.593605
a83cd8246e345ca8860b4a62c06df0f0a1b8fdf9
12,501
py
Python
tests/unit/modules/test_cmci_get.py
vera-chan/ibm_zos_cics
727867b121ff6d6e0dfd01488d7a588597208e2b
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_cmci_get.py
vera-chan/ibm_zos_cics
727867b121ff6d6e0dfd01488d7a588597208e2b
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_cmci_get.py
vera-chan/ibm_zos_cics
727867b121ff6d6e0dfd01488d7a588597208e2b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) IBM Corporation 2020 # Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0) from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible_collections.ibm.ibm_zos_cics.plugins.modules import cmci_get from ansible_coll...
29.623223
121
0.584513
146eae829642956c5318bdbc5073f1cfd4e06145
26,399
py
Python
deepdiff/delta.py
dtorres-sf/deepdiff
1dd0aecbc8307842e54ce429ddb254ef4bc97724
[ "MIT" ]
1,349
2015-01-15T20:25:28.000Z
2022-03-30T11:58:03.000Z
deepdiff/delta.py
dtorres-sf/deepdiff
1dd0aecbc8307842e54ce429ddb254ef4bc97724
[ "MIT" ]
270
2015-02-25T00:58:09.000Z
2022-03-31T18:02:17.000Z
deepdiff/delta.py
dtorres-sf/deepdiff
1dd0aecbc8307842e54ce429ddb254ef4bc97724
[ "MIT" ]
187
2015-02-24T18:21:07.000Z
2022-03-06T18:38:20.000Z
import logging from collections.abc import Mapping from copy import deepcopy from deepdiff import DeepDiff from deepdiff.serialization import pickle_load, pickle_dump from deepdiff.helper import ( strings, short_repr, numbers, np_ndarray, np_array_factory, numpy_dtypes, get_doc, not_found, numpy_dtype_strin...
46.477113
163
0.637751
b9c184207839866636d560f91d98548195dece76
259
py
Python
demo_stock/A_1day/D02_merge_total_shares.py
jiangtiantu/kquant_data
9bd47ba23c23110757186897e37ea36234bdce2c
[ "BSD-2-Clause" ]
23
2017-08-05T04:35:47.000Z
2020-12-16T09:40:08.000Z
demo_stock/A_1day/D02_merge_total_shares.py
jiangtiantu/kquant_data
9bd47ba23c23110757186897e37ea36234bdce2c
[ "BSD-2-Clause" ]
2
2017-08-05T04:57:10.000Z
2018-04-14T14:52:39.000Z
demo_stock/A_1day/D02_merge_total_shares.py
wukan1986/kquant_data
9bd47ba23c23110757186897e37ea36234bdce2c
[ "BSD-2-Clause" ]
21
2017-08-01T09:56:30.000Z
2021-07-10T01:19:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 合并财务数据 """ from kquant_data.processing.merge import merge_report if __name__ == '__main__': rule = '1day' field = 'total_shares' merge_report(rule, field, field) print("Done") debug = 1
17.266667
53
0.629344
00d0255e06c68688d9db33323d750f7605745852
13,806
py
Python
colour/appearance/tests/test_kim2009.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
colour/appearance/tests/test_kim2009.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
colour/appearance/tests/test_kim2009.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
# !/usr/bin/env python """Defines the unit tests for the :mod:`colour.appearance.kim2009` module.""" import numpy as np import unittest from itertools import permutations from colour.appearance import ( MEDIA_PARAMETERS_KIM2009, VIEWING_CONDITIONS_KIM2009, InductionFactors_Kim2009, CAM_Specification_K...
30.409692
79
0.488121
8be51723ecb3eb9e718a4675e48dbe31ad8519be
7,249
py
Python
datamodels/doc/source/conf.py
mwregan2/MiriTE
6b65939454db60bf10619d50fcb5769d23598b76
[ "CNRI-Python" ]
null
null
null
datamodels/doc/source/conf.py
mwregan2/MiriTE
6b65939454db60bf10619d50fcb5769d23598b76
[ "CNRI-Python" ]
24
2019-08-09T15:03:20.000Z
2022-03-04T10:04:48.000Z
datamodels/doc/source/conf.py
mwregan2/MiriTE
6b65939454db60bf10619d50fcb5769d23598b76
[ "CNRI-Python" ]
4
2019-06-16T15:03:23.000Z
2020-12-02T19:51:52.000Z
# -*- coding: utf-8 -*- # # filter documentation build configuration file, created by # sphinx-quickstart on Tue Jun 1 21:59:45 2010. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
32.653153
88
0.71265
0168b42604d1d2d0ddc1b76fab177b82426af792
123,968
py
Python
src/v96.py
numb3r33/Kaggle_Home_Credit
f8f56a0514b928d7ed4b8f38c6edc53b67bab32d
[ "MIT" ]
null
null
null
src/v96.py
numb3r33/Kaggle_Home_Credit
f8f56a0514b928d7ed4b8f38c6edc53b67bab32d
[ "MIT" ]
14
2020-01-28T22:02:01.000Z
2022-03-11T23:33:08.000Z
src/v96.py
numb3r33/Kaggle_Home_Credit
f8f56a0514b928d7ed4b8f38c6edc53b67bab32d
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import scipy as sp import argparse import os import gc import time from base import * from features import * from datetime import datetime from sklearn.externals import joblib from sklearn.model_selection import cross_val_score, StratifiedKFold basepath = os.path.expanduser('....
54.063672
178
0.621604
bfe223b8dc7fabe5eb052ff84f4d3f160ebb1ec5
1,757
py
Python
termicoder/utils/parse.py
apb7/termicoder
f0540a2fb4fe0858fa6a9d63e722ad5aa525e14a
[ "MIT" ]
1
2018-06-22T06:59:24.000Z
2018-06-22T06:59:24.000Z
termicoder/utils/parse.py
apb7/termicoder
f0540a2fb4fe0858fa6a9d63e722ad5aa525e14a
[ "MIT" ]
null
null
null
termicoder/utils/parse.py
apb7/termicoder
f0540a2fb4fe0858fa6a9d63e722ad5aa525e14a
[ "MIT" ]
null
null
null
import os import json import click import termicoder.utils.display as display supported_extensions = [".py", ".cpp", ".c", ".java", ".c++", ".cc"] def get_judge(): problem_file_path = ".problem" try: f = open(problem_file_path, "r") except BaseException: display.file_read_error(problem_f...
23.426667
81
0.622652
12a4cdb9de3bde812b09c5f54bac42e1d4b154b4
5,320
py
Python
eucaconsole/forms/securitygroups.py
gholms/eucaconsole
4629c961c90e3aae27e3a869a7f157bafeda6489
[ "BSD-2-Clause" ]
null
null
null
eucaconsole/forms/securitygroups.py
gholms/eucaconsole
4629c961c90e3aae27e3a869a7f157bafeda6489
[ "BSD-2-Clause" ]
null
null
null
eucaconsole/forms/securitygroups.py
gholms/eucaconsole
4629c961c90e3aae27e3a869a7f157bafeda6489
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2013-2016 Hewlett Packard Enterprise Development LP # # Redistribution and use of this software in source and binary forms, # with or without modification, are permitted provided that the following # conditions are met: # # Redistributions of source code must retain the above copyrig...
46.26087
119
0.709962
578554499d010d3b09aa6ec6fe400fa5275b5c86
6,874
py
Python
datadog_checks_dev/datadog_checks/dev/tooling/config_validator/validator.py
tanner-bruce/integrations-core
36337b84fefb73e94d4f1ee28aaeb669dc12fb59
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/config_validator/validator.py
tanner-bruce/integrations-core
36337b84fefb73e94d4f1ee28aaeb669dc12fb59
[ "BSD-3-Clause" ]
null
null
null
datadog_checks_dev/datadog_checks/dev/tooling/config_validator/validator.py
tanner-bruce/integrations-core
36337b84fefb73e94d4f1ee28aaeb669dc12fb59
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from .config_block import ConfigBlock from .utils import get_end_of_part, get_indent, is_at_least_indented, is_blank from .validator_errors import SEVERITY_WARNING, ValidatorError def validate_config(con...
42.695652
123
0.686063
2208af44a2e6f99d8e95d530a79e85e70dfd47c2
3,373
py
Python
Trakttv.bundle/Contents/Libraries/Shared/trakt/objects/season.py
disrupted/Trakttv.bundle
24712216c71f3b22fd58cb5dd89dad5bb798ed60
[ "RSA-MD" ]
1,346
2015-01-01T14:52:24.000Z
2022-03-28T12:50:48.000Z
Trakttv.bundle/Contents/Libraries/Shared/trakt/objects/season.py
alcroito/Plex-Trakt-Scrobbler
4f83fb0860dcb91f860d7c11bc7df568913c82a6
[ "RSA-MD" ]
474
2015-01-01T10:27:46.000Z
2022-03-21T12:26:16.000Z
Trakttv.bundle/Contents/Libraries/Shared/trakt/objects/season.py
alcroito/Plex-Trakt-Scrobbler
4f83fb0860dcb91f860d7c11bc7df568913c82a6
[ "RSA-MD" ]
191
2015-01-02T18:27:22.000Z
2022-03-29T10:49:48.000Z
from trakt.core.helpers import to_iso8601_datetime, from_iso8601_datetime, deprecated from trakt.objects.core.helpers import update_attributes from trakt.objects.media import Media class Season(Media): def __init__(self, client, keys=None, index=None): super(Season, self).__init__(client, keys, index) ...
26.147287
104
0.565372
d3a091a1f07abe82eb3fb181f720fb9da96dfac2
7,302
py
Python
build/lib/scripts/database_tools.py
nicolas998/ifis_tools
f7b06473a916324fc37937bc5e9034cc57bc1623
[ "MIT" ]
3
2019-09-05T14:47:02.000Z
2021-11-12T15:31:56.000Z
build/lib/scripts/database_tools.py
nicolas998/ifis_tools
f7b06473a916324fc37937bc5e9034cc57bc1623
[ "MIT" ]
2
2019-11-13T21:36:22.000Z
2019-12-16T21:16:43.000Z
build/lib/scripts/database_tools.py
nicolas998/ifis_tools
f7b06473a916324fc37937bc5e9034cc57bc1623
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: jupyter_scripts//ipynb,scripts//py # text_representation: # extension: .py # format_name: light # format_version: '1.3' # jupytext_version: 1.0.0 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # d...
40.793296
665
0.665845
28174f965e0920e05ef5a65c29d714d927e3e844
11,416
py
Python
tests/test_gpu_aamp.py
profintegra/stumpy
66b3402d91820005b466e1da6fe353b61e6246c5
[ "BSD-3-Clause" ]
1
2021-07-27T11:14:01.000Z
2021-07-27T11:14:01.000Z
tests/test_gpu_aamp.py
profintegra/stumpy
66b3402d91820005b466e1da6fe353b61e6246c5
[ "BSD-3-Clause" ]
null
null
null
tests/test_gpu_aamp.py
profintegra/stumpy
66b3402d91820005b466e1da6fe353b61e6246c5
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import numpy.testing as npt import pandas as pd from stumpy import gpu_aamp from stumpy import config from numba import cuda import pytest import naive config.THREADS_PER_BLOCK = 10 if not cuda.is_available(): pytest.skip("Skipping Tests No GPUs Available", allow_module_level=True) test_data ...
34.077612
88
0.656184
79ef4a5fd7f4f90112e6a20dcba81e0008826c1f
2,260
py
Python
homeassistant/components/switch/litejet.py
sara0871/laughing--barnacle-
70412fc0ba42ccfe446c0c62e327eceeda56a2ab
[ "Apache-2.0" ]
7
2018-08-03T10:15:36.000Z
2019-03-25T13:31:55.000Z
homeassistant/components/switch/litejet.py
sara0871/https-wakatime.com-android-studio
5a15b2c036b332c17d5f6a06664378e9273d684f
[ "Apache-2.0" ]
3
2021-09-08T03:06:43.000Z
2022-03-12T00:56:04.000Z
homeassistant/components/switch/litejet.py
sara0871/https-wakatime.com-android-studio
5a15b2c036b332c17d5f6a06664378e9273d684f
[ "Apache-2.0" ]
3
2018-12-04T11:54:27.000Z
2019-08-31T14:41:32.000Z
""" Support for LiteJet switch. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/switch.litejet/ """ import logging from homeassistant.components import litejet from homeassistant.components.switch import SwitchDevice DEPENDENCIES = ['litejet'] ATTR_NUM...
26.904762
74
0.652655
6ebe95d8e08d07c2d56895a42ec83c841e448ef8
3,544
py
Python
ayesaac/services/natural_language_understanding/main.py
F21CA-group-6/aye-saac
0b1b4d1365b84c80047796a05c10dcfe9c8e921a
[ "BSD-3-Clause" ]
1
2021-03-08T13:24:59.000Z
2021-03-08T13:24:59.000Z
ayesaac/services/natural_language_understanding/main.py
F21CA-group-6/aye-saac
0b1b4d1365b84c80047796a05c10dcfe9c8e921a
[ "BSD-3-Clause" ]
null
null
null
ayesaac/services/natural_language_understanding/main.py
F21CA-group-6/aye-saac
0b1b4d1365b84c80047796a05c10dcfe9c8e921a
[ "BSD-3-Clause" ]
1
2021-03-11T13:54:00.000Z
2021-03-11T13:54:00.000Z
from os import listdir from os.path import isdir, join from rasa.nlu.model import Interpreter from ayesaac.services.common import QueueManager from ayesaac.utils.config import Config from ayesaac.utils.logger import get_logger config = Config() logger = get_logger(__file__) def contains_word(s, w): """ Ch...
31.362832
86
0.615406
3650a4d3cd6c02ad1d01cdb72f78256610333141
982
py
Python
sdat/tools_sam/split_bam.py
Chipeyown/SPLiT-seq-Data-Analysis_Toolkit
903fdbeeed8d0ef91c7a08af6226731297b21bdc
[ "MIT" ]
4
2019-09-11T07:20:22.000Z
2020-09-04T09:21:18.000Z
sdat/tools_sam/split_bam.py
Chipeyown/SPLiT-seq-Data-Analysis_Toolkit
903fdbeeed8d0ef91c7a08af6226731297b21bdc
[ "MIT" ]
1
2019-09-10T01:37:18.000Z
2019-09-10T01:45:42.000Z
sdat/tools_sam/split_bam.py
Chipeyown/SPLiT-seq-Data-Analysis_Toolkit
903fdbeeed8d0ef91c7a08af6226731297b21bdc
[ "MIT" ]
1
2020-09-17T02:24:06.000Z
2020-09-17T02:24:06.000Z
import subprocess import time def split_bam(in_dir, out_folder): p = subprocess.Popen('samtools view %s' % in_dir, shell=True, stdout=subprocess.PIPE) chr_list = [] line0 = p.stdout.readline().decode() chr0 = line0.split('\t')[2] chr_list.append(chr0) fo = open('%s/%s.sam' % (out_folder, chr0)...
35.071429
133
0.528513
08033c98ed901d172c8037688f66d333fa92c377
1,360
py
Python
api.py
unmix-io/unmix-api
0d029c0a6b93f46c17e3c13588d649529036d1a2
[ "MIT" ]
null
null
null
api.py
unmix-io/unmix-api
0d029c0a6b93f46c17e3c13588d649529036d1a2
[ "MIT" ]
null
null
null
api.py
unmix-io/unmix-api
0d029c0a6b93f46c17e3c13588d649529036d1a2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf8 """ unmix.io RESTful API to extract vocals and instrumental from audio streams. """ __author__ = 'David Flury, Andreas Kaufmann, Raphael Müller' __email__ = "info@unmix.io" from flask import Flask from flask_restful import Api, Resource, reqparse from flask_cors import CORS im...
30.909091
156
0.741912
c3e1b5d9914fa604affa4b5a0ce7f15002c09cea
9,971
py
Python
meta/enc.py
Cypher1/naive
768443236032149a368f2e0f6eedc0392820367d
[ "MIT" ]
12
2017-02-04T17:32:58.000Z
2022-02-06T17:26:58.000Z
meta/enc.py
Cypher1/naive
768443236032149a368f2e0f6eedc0392820367d
[ "MIT" ]
4
2018-05-13T20:00:04.000Z
2021-08-23T10:01:56.000Z
meta/enc.py
Cypher1/naive
768443236032149a368f2e0f6eedc0392820367d
[ "MIT" ]
5
2017-10-11T03:33:51.000Z
2021-08-18T03:24:20.000Z
#!/usr/bin/env python3 # Generates code for encoding assembly instructions (and potentially decoding # in the future for a disassembler). The format that is parsed matches the # format used in the Intel architecture manual, read it for further details. import pprint import re import sys from collections import namedt...
40.864754
129
0.512687
94af275a644c43f8140f0ab469bbc543eb28564d
1,095
py
Python
openedx/admin.py
mitodl/mitxonline
adf6084b1f4addd57473153ed6bd08ea09bc4685
[ "BSD-3-Clause" ]
1
2021-07-25T21:29:12.000Z
2021-07-25T21:29:12.000Z
openedx/admin.py
drhodes/mitxonline
2af72db40723e7d61c0229b6fc80216a3a94cd9e
[ "BSD-3-Clause" ]
420
2021-07-13T14:58:52.000Z
2022-03-31T20:50:10.000Z
openedx/admin.py
drhodes/mitxonline
2af72db40723e7d61c0229b6fc80216a3a94cd9e
[ "BSD-3-Clause" ]
1
2021-07-25T21:28:32.000Z
2021-07-25T21:28:32.000Z
""" Admin site bindings for profiles """ from django.contrib import admin from openedx.models import OpenEdxApiAuth, OpenEdxUser class OpenEdxUserAdmin(admin.ModelAdmin): """Admin for OpenEdxUser""" model = OpenEdxUser search_fields = ["user__username", "user__email", "user__name", "platform"] list...
28.076923
79
0.703196
69e2212e02234c0bbb671ad0c6742df50727cf92
1,176
py
Python
apps/home/models.py
alex112401/Black-Dashboard-Django
e1746b7ef35afda448e47b96f11ac2e7e49d084a
[ "MIT" ]
null
null
null
apps/home/models.py
alex112401/Black-Dashboard-Django
e1746b7ef35afda448e47b96f11ac2e7e49d084a
[ "MIT" ]
null
null
null
apps/home/models.py
alex112401/Black-Dashboard-Django
e1746b7ef35afda448e47b96f11ac2e7e49d084a
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ Copyright (c) 2019 - present AppSeed.us """ from django.db import models from django.contrib.auth.models import User # Create your models here. class EventList(models.Model): username = models.ForeignKey(User, on_delete = models.CASCADE) eventname = models.CharField(max_length=5...
32.666667
163
0.705782
a4bc47eae6a5d4242780cb28a858e103d6538c90
344
py
Python
cobiv/modules/core/gestures/gesture.py
gokudomatic/cobiv
c095eda704fab319fccc04d43d8099f1e8327734
[ "MIT" ]
4
2017-12-26T07:19:46.000Z
2019-09-20T08:27:58.000Z
cobiv/modules/core/gestures/gesture.py
gokudomatic/cobiv
c095eda704fab319fccc04d43d8099f1e8327734
[ "MIT" ]
4
2017-10-01T12:18:43.000Z
2019-06-09T10:29:03.000Z
cobiv/modules/core/gestures/gesture.py
gokudomatic/cobiv
c095eda704fab319fccc04d43d8099f1e8327734
[ "MIT" ]
1
2019-01-07T19:58:00.000Z
2019-01-07T19:58:00.000Z
from cobiv.modules.core.component import Component class Gesture(Component): def initialize(self, touches): pass def validate(self, touches, strokes): pass def process(self, touches, strokes): pass def finalize(self, touches, strokes): pass def required_touch_co...
18.105263
50
0.645349
c9477ae1161a1b44f13c2a99d73ed9089e8d1087
8,965
py
Python
almost_make/cli.py
personalizedrefrigerator/AlmostMake
9b91021282315ef1cdf47643e6c3058398eb9111
[ "BSD-3-Clause" ]
7
2020-09-04T00:05:57.000Z
2021-11-29T20:02:23.000Z
almost_make/cli.py
personalizedrefrigerator/AlmostMake
9b91021282315ef1cdf47643e6c3058398eb9111
[ "BSD-3-Clause" ]
3
2021-11-29T19:58:01.000Z
2022-02-28T20:54:26.000Z
almost_make/cli.py
personalizedrefrigerator/AlmostMake
9b91021282315ef1cdf47643e6c3058398eb9111
[ "BSD-3-Clause" ]
1
2022-02-14T17:32:53.000Z
2022-02-14T17:32:53.000Z
#!/usr/bin/python3 import sys, os from almost_make.utils.printUtil import * import almost_make.utils.makeUtil as makeUtility import almost_make.utils.macroUtil as macroUtility from almost_make.utils.argsUtil import * from almost_make import version ARGUMENT_MAPPINGS = \ { 'h': "help", 'k': 'keep-going', 'p...
41.313364
148
0.609035
0c9093a1bbfc9ca1ce36e266432acd577b30ad92
19,424
py
Python
cottoncandy/Encryption.py
moflo/cottoncandy
b38a1a7094474a29224fbc518d391384f770da24
[ "BSD-2-Clause" ]
35
2016-08-01T19:34:19.000Z
2022-02-07T19:45:27.000Z
cottoncandy/Encryption.py
moflo/cottoncandy
b38a1a7094474a29224fbc518d391384f770da24
[ "BSD-2-Clause" ]
56
2016-08-16T23:35:02.000Z
2022-03-13T02:39:06.000Z
cottoncandy/Encryption.py
moflo/cottoncandy
b38a1a7094474a29224fbc518d391384f770da24
[ "BSD-2-Clause" ]
15
2016-10-03T00:50:11.000Z
2020-03-29T04:45:13.000Z
from __future__ import print_function import os import struct from Crypto import Random from Crypto.Cipher import AES, PKCS1_OAEP from Crypto.PublicKey import RSA from io import BytesIO CIPHER_BLOCK_CHAIN = AES.MODE_CBC INIT_VECT_SIZE = 16 DEFAULT_CHUNK_SIZE = 64 * 1024 FILE_LENGTH_FIELD_SIZE = struct.calcsize('Q') W...
30.540881
165
0.58196
67e5917141e14d476e102357580ce92b2c81cd92
18,553
py
Python
Resnet12/data/mini_imagenet.py
HanChangHun/dsn_fewshot
dbe8d637bce1cb17bfb7c7fd7784bcdebb79085c
[ "MIT" ]
80
2020-06-09T06:27:30.000Z
2022-03-09T22:23:00.000Z
Resnet12/data/mini_imagenet.py
HanChangHun/dsn_fewshot
dbe8d637bce1cb17bfb7c7fd7784bcdebb79085c
[ "MIT" ]
14
2020-09-20T18:54:29.000Z
2022-02-08T04:43:39.000Z
Resnet12/data/mini_imagenet.py
HanChangHun/dsn_fewshot
dbe8d637bce1cb17bfb7c7fd7784bcdebb79085c
[ "MIT" ]
15
2020-07-09T13:09:08.000Z
2022-03-12T13:34:16.000Z
# Dataloader of Gidaris & Komodakis, CVPR 2018 # Adapted from: # https://github.com/gidariss/FewShotWithoutForgetting/blob/master/dataloader.py from __future__ import print_function import os import os.path import numpy as np import random import pickle import json import math import torch import torch.utils.data as ...
41.137472
107
0.617259
00df031bfc33fae4fdd71f5c04b2d239dc6528d0
709
py
Python
examples/manipulate_userdata.py
tracivar/zegami-python-sdk
3d273d2c987ccf2d311733f29529e2c5b25beceb
[ "Apache-2.0" ]
null
null
null
examples/manipulate_userdata.py
tracivar/zegami-python-sdk
3d273d2c987ccf2d311733f29529e2c5b25beceb
[ "Apache-2.0" ]
null
null
null
examples/manipulate_userdata.py
tracivar/zegami-python-sdk
3d273d2c987ccf2d311733f29529e2c5b25beceb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Download images from a collection with a specific tag.""" from zegami_sdk.client import ZegamiClient WORKSPACE_ID = '' COLLECTION_ID = '' USERNAME = '' PASSWORD = '' zc = ZegamiClient(username=USERNAME, password=PASSWORD) workspace = zc.get_workspace_by_id(WORKSPACE_ID) collection = work...
19.162162
60
0.732017
5d9ad098ecb4d7f5289f2ed25d27c5915fcf2f1d
279
py
Python
Act1/cssenv/Scripts/csaplication/login/urls.py
Talox1/Cliente-Servidor
fb243832684f818416c10fdcdaf397fccda09321
[ "MIT" ]
null
null
null
Act1/cssenv/Scripts/csaplication/login/urls.py
Talox1/Cliente-Servidor
fb243832684f818416c10fdcdaf397fccda09321
[ "MIT" ]
null
null
null
Act1/cssenv/Scripts/csaplication/login/urls.py
Talox1/Cliente-Servidor
fb243832684f818416c10fdcdaf397fccda09321
[ "MIT" ]
null
null
null
from django.urls import path,re_path from django.conf.urls import include from django.contrib.auth.models import User # from rest_framework import routers, serilizers, viewsets from login.views import CustomAuthToken urlpatterns = [ re_path(r'^',CustomAuthToken.as_view()), ]
31
58
0.802867
ef407def11be145f06cedacb996051e9e7391bf1
3,158
py
Python
SoftLayer/managers/ssl.py
corneil/softlayer-python
bbaf562fb76536c5cc652e356729723f38f48b66
[ "MIT" ]
1
2019-11-06T13:54:07.000Z
2019-11-06T13:54:07.000Z
SoftLayer/managers/ssl.py
underscorephil/softlayer-python
567540a328d5258e55594466127cd22b9a04a2ea
[ "MIT" ]
null
null
null
SoftLayer/managers/ssl.py
underscorephil/softlayer-python
567540a328d5258e55594466127cd22b9a04a2ea
[ "MIT" ]
1
2020-07-07T12:18:26.000Z
2020-07-07T12:18:26.000Z
""" SoftLayer.ssl ~~~~~~~~~~~~~ SSL Manager/helpers :license: MIT, see LICENSE for more details. """ class SSLManager(object): """Manages SSL certificates. :param SoftLayer.API.Client client: an API client instance Example:: # Initialize the Manager. # env variables. Thes...
27.701754
78
0.591514
ca394a2d66766faa097b16504926b432d2ddde2b
13,371
py
Python
siphon/tests/test_catalog.py
story645/siphon
d2d4584f953cc4034e2b60bcb0ced8bc7ec4fee5
[ "BSD-3-Clause" ]
null
null
null
siphon/tests/test_catalog.py
story645/siphon
d2d4584f953cc4034e2b60bcb0ced8bc7ec4fee5
[ "BSD-3-Clause" ]
null
null
null
siphon/tests/test_catalog.py
story645/siphon
d2d4584f953cc4034e2b60bcb0ced8bc7ec4fee5
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2013-2017 Siphon Contributors. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Test the catalog access API.""" from datetime import datetime import logging import pytest from siphon.catalog import get_latest_access_url, TDSCatalog from siphon.test...
39.559172
95
0.687234
6056888e31e0f6b32971566ba3dd54d4fbde30b2
3,202
bzl
Python
api/bazel/repository_locations.bzl
yuxiaobo96/envoy
789a95989f62ed1bbb2822c0f236300099f1bdb9
[ "Apache-2.0" ]
null
null
null
api/bazel/repository_locations.bzl
yuxiaobo96/envoy
789a95989f62ed1bbb2822c0f236300099f1bdb9
[ "Apache-2.0" ]
null
null
null
api/bazel/repository_locations.bzl
yuxiaobo96/envoy
789a95989f62ed1bbb2822c0f236300099f1bdb9
[ "Apache-2.0" ]
null
null
null
BAZEL_SKYLIB_RELEASE = "0.8.0" BAZEL_SKYLIB_SHA256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e" OPENCENSUS_PROTO_GIT_SHA = "5cec5ea58c3efa81fa808f2bd38ce182da9ee731" # Jul 25, 2019 OPENCENSUS_PROTO_SHA256 = "faeb93f293ff715b0cb530d273901c0e2e99277b9ed1c0a0326bca9ec5774ad2" PGV_GIT_SHA = "a183...
48.515152
158
0.732667
9dbe6b8ab778cbd94d61248fc74b976bdb72f82b
1,127
py
Python
medium/781-rabbits-in-forest.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
2
2021-03-14T11:38:26.000Z
2021-03-14T11:38:30.000Z
medium/781-rabbits-in-forest.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
null
null
null
medium/781-rabbits-in-forest.py
wanglongjiang/leetcode
c61d2e719e81575cfb5bde9d64e15cee7cf01ef3
[ "MIT" ]
1
2022-01-17T19:33:23.000Z
2022-01-17T19:33:23.000Z
''' 森林中的兔子 森林中,每个兔子都有颜色。其中一些兔子(可能是全部)告诉你还有多少其他的兔子和自己有相同的颜色。我们将这些回答放在 answers 数组里。 返回森林中兔子的最少数量。 示例: 输入: answers = [1, 1, 2] 输出: 5 解释: 两只回答了 "1" 的兔子可能有相同的颜色,设为红色。 之后回答了 "2" 的兔子不会是红色,否则他们的回答会相互矛盾。 设回答了 "2" 的兔子为蓝色。 此外,森林中还应有另外 2 只蓝色兔子的回答没有包含在数组中。 因此森林中兔子的最少数量是 5: 3 只回答的和 2 只没有回答的。 输入: answers = [10, 10, 10] 输出: 11 输入: ...
19.77193
70
0.597161
636fac92cd5a53da0dbc4ae3081c8311393376d1
4,086
py
Python
text_based_sorts/test.py
AshuHK/Sorting_Visualization
24d4edbda1ef15f950dc2acf27e93e005c6c0522
[ "MIT" ]
null
null
null
text_based_sorts/test.py
AshuHK/Sorting_Visualization
24d4edbda1ef15f950dc2acf27e93e005c6c0522
[ "MIT" ]
null
null
null
text_based_sorts/test.py
AshuHK/Sorting_Visualization
24d4edbda1ef15f950dc2acf27e93e005c6c0522
[ "MIT" ]
1
2020-05-04T23:43:23.000Z
2020-05-04T23:43:23.000Z
# import the sorts here from InsertionSort import insertion_sort from SelectionSort import selection_sort from BubbleSort import bubble_sort from QuickSort import quick_sort from MergeSort import merge_sort # used to generate the rules import random import time def generate_results(test_list, total_time, sort_type):...
23.084746
79
0.679148
115bbe7e5ca5952a8bc3797ada001c2c9855137e
17,668
py
Python
serv.py
pindos11/2017_17-01_project
725f334594c609aa57b31c3bc55ccbe4fec14dc5
[ "MIT" ]
null
null
null
serv.py
pindos11/2017_17-01_project
725f334594c609aa57b31c3bc55ccbe4fec14dc5
[ "MIT" ]
1
2017-12-27T17:28:17.000Z
2017-12-27T17:28:17.000Z
serv.py
pindos11/2017_17-01_project
725f334594c609aa57b31c3bc55ccbe4fec14dc5
[ "MIT" ]
null
null
null
from multiprocessing import Process import socket,time,sqlite3,time,os,random try: import serv_settings except: f = open("serv_settings.py","w") t = ''' IP_ADDRESS = "" PORT = 9090 KEY_DECAY_TIME = 3600 ONLINE_CONFIRM_TIME = 600 LOGGING = 1 LOGFOLDER = "logs" MAX_CLIENTS = 100 ...
33.462121
103
0.482001