hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
212f55bed5be44ad07abd662ad7f00782b2158b4
2,351
py
Python
qiskit/aqua/circuits/__init__.py
Unathi-Skosana/qiskit-aqua
e13f66eda6d8b819a6f132319a2bac819941f6b1
[ "Apache-2.0" ]
2
2020-06-29T16:08:12.000Z
2020-08-07T22:42:13.000Z
qiskit/aqua/circuits/__init__.py
Unathi-Skosana/qiskit-aqua
e13f66eda6d8b819a6f132319a2bac819941f6b1
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/circuits/__init__.py
Unathi-Skosana/qiskit-aqua
e13f66eda6d8b819a6f132319a2bac819941f6b1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
28.325301
98
0.747342
212f5813ebf928925e4d8a029d0a081f2ec3a0c7
1,188
py
Python
Homework 1/methods/logistic.py
hugcis/Homeworks-PGM
fdc392a30809f4ea876261c43587c181ee5d6371
[ "MIT" ]
null
null
null
Homework 1/methods/logistic.py
hugcis/Homeworks-PGM
fdc392a30809f4ea876261c43587c181ee5d6371
[ "MIT" ]
null
null
null
Homework 1/methods/logistic.py
hugcis/Homeworks-PGM
fdc392a30809f4ea876261c43587c181ee5d6371
[ "MIT" ]
null
null
null
import numpy as np def sigmoid(x): return 1 / (1 + np.exp(-x)) class Logistic: def __init__(self, reg=0): self.reg=reg def fit(self, X, y, tol=1e-4): X = np.concatenate((np.ones_like(X[:, 0])[:, np.newaxis], X), axis=1) start=True w = np.zeros(X[0, :].T.shape) ...
28.97561
95
0.508418
212f5a625858c8f6bafb1e35c113c291def9177d
9,767
py
Python
appengine/monorail/search/test/backendsearchpipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/search/test/backendsearchpipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/search/test/backendsearchpipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# 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 or at # https://developers.google.com/open-source/licenses/bsd """Tests for the backendsearchpipeline module.""" from __future__ import print_function from __...
38.912351
79
0.715061
212f8d2f5d7cbd03dc56a4d936941331f13eeec8
344
py
Python
vapor_manager/users/api/serializers.py
codescribblr/project-manager-django3
d0dc79e992811eee3e35666acdb16bcafa16d98d
[ "MIT" ]
null
null
null
vapor_manager/users/api/serializers.py
codescribblr/project-manager-django3
d0dc79e992811eee3e35666acdb16bcafa16d98d
[ "MIT" ]
null
null
null
vapor_manager/users/api/serializers.py
codescribblr/project-manager-django3
d0dc79e992811eee3e35666acdb16bcafa16d98d
[ "MIT" ]
null
null
null
from rest_framework import serializers from vapor_manager.users.models import User class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ["username", "email", "name", "url"] extra_kwargs = { "url": {"view_name": "api:user-detail", "lookup_field"...
24.571429
79
0.636628
212f99649140554910eecbf7f30d77727fa784b5
1,017
py
Python
york_scraper/items.py
jackehuynh/YorkU-Site-Scraper
d83596dc71ec832580bbdbfe847ff4b7c2a4676d
[ "MIT" ]
null
null
null
york_scraper/items.py
jackehuynh/YorkU-Site-Scraper
d83596dc71ec832580bbdbfe847ff4b7c2a4676d
[ "MIT" ]
null
null
null
york_scraper/items.py
jackehuynh/YorkU-Site-Scraper
d83596dc71ec832580bbdbfe847ff4b7c2a4676d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class YorkSubjectItem(scrapy.Item): faculty = scrapy.Field() subject = scrapy.Field() name = scrapy.Field() expanded_name = scrapy.Fiel...
28.25
69
0.672566
212f9c16e13ea27925f12f08d549ae208246cf72
4,908
py
Python
update_examples.py
nuagenetworks/nuage-metroae-conf
727e218144cf38541f1968242633d6a06969f2f5
[ "Apache-2.0" ]
3
2020-04-22T19:39:08.000Z
2021-06-16T16:03:29.000Z
update_examples.py
nuagenetworks/nuage-metroae-conf
727e218144cf38541f1968242633d6a06969f2f5
[ "Apache-2.0" ]
8
2020-04-27T14:48:16.000Z
2021-09-09T15:37:16.000Z
update_examples.py
nuagenetworks/nuage-metroae-conf
727e218144cf38541f1968242633d6a06969f2f5
[ "Apache-2.0" ]
1
2021-10-13T20:30:39.000Z
2021-10-13T20:30:39.000Z
#!/usr/bin/env python import argparse import os import subprocess DESCRIPTION = """This tool is used to update the example ouput in templates""" ENV_TEMPLATE = 'TEMPLATE_PATH' ENV_SOFTWARE_VERSION = 'SOFTWARE_VERSION' ENV_VSD_SPECIFICATIONS = 'VSD_SPECIFICATIONS_PATH' TEMP_FILE = "/tmp/metroae-config-example.yml" IND...
32.078431
78
0.584148
212fac0b30af9675597de77768838eb5344036b5
545
py
Python
source/demo.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
151
2015-01-09T19:25:05.000Z
2022-01-05T02:05:52.000Z
source/demo.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
1
2016-08-04T13:12:51.000Z
2016-08-04T13:12:51.000Z
source/demo.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
59
2015-02-04T19:13:58.000Z
2021-07-28T23:36:09.000Z
""" This file quickly demonstrates some of the capabilities of the project. @authors: David Duvenaud (dkd23@cam.ac.uk) James Robert Lloyd (jrl44@cam.ac.uk) Roger Grosse (rgrosse@mit.edu) Created April 2013 """ import experiment import postprocessing experiment.run_experiment...
27.25
100
0.713761
212facff2ca46e54867ea7f98d1d47e106559e11
3,452
py
Python
Util/beacon.py
wisrovi/MANITOR-WISROVI
e4b08a9bae4ec9d1a1f0acde08a84e2b8c5e7b51
[ "MIT" ]
null
null
null
Util/beacon.py
wisrovi/MANITOR-WISROVI
e4b08a9bae4ec9d1a1f0acde08a84e2b8c5e7b51
[ "MIT" ]
null
null
null
Util/beacon.py
wisrovi/MANITOR-WISROVI
e4b08a9bae4ec9d1a1f0acde08a84e2b8c5e7b51
[ "MIT" ]
null
null
null
from beacontools import BeaconScanner, IBeaconAdvertisement from Util.util import diff, vector_vacio from Config.beacon import FCV size_vector = 10 class Beacon_Obj(object): mac = str() rssi = int() uuid = str() tx_power = int() major = int() minor = int() def __init__(self, mac: str, rs...
32.87619
117
0.659618
212fadd3e76f3dc839b7dd25049400f7d34834d6
542
py
Python
manage.py
Rildlanster/django_local_library
eddf8f8c36b996bc2fcef11193632848174d8ab0
[ "Apache-2.0" ]
null
null
null
manage.py
Rildlanster/django_local_library
eddf8f8c36b996bc2fcef11193632848174d8ab0
[ "Apache-2.0" ]
null
null
null
manage.py
Rildlanster/django_local_library
eddf8f8c36b996bc2fcef11193632848174d8ab0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mozillaTut.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. A...
33.875
74
0.688192
212fbadb06e3c5e2e4ac7163a213ca265e418fc0
9,056
py
Python
scripts/labtainer-student/bin/InspectRemoteReg.py
jakuta-tech/Labtainers
f674204022ad5d13ad6bccaf02a14a283470d23f
[ "Apache-2.0" ]
null
null
null
scripts/labtainer-student/bin/InspectRemoteReg.py
jakuta-tech/Labtainers
f674204022ad5d13ad6bccaf02a14a283470d23f
[ "Apache-2.0" ]
null
null
null
scripts/labtainer-student/bin/InspectRemoteReg.py
jakuta-tech/Labtainers
f674204022ad5d13ad6bccaf02a14a283470d23f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ''' This software was created by United States Government employees at The Center for Cybersecurity and Cyber Operations (C3O) at the Naval Postgraduate School NPS. Please note that within the United States, copyright protection is not available for any works created by United States Govern...
43.961165
206
0.607111
212fdcc9a8190fb22987352f4efa3643a281cda5
458
py
Python
src/oscar/apps/customer/notifications/services.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/customer/notifications/services.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/customer/notifications/services.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from oscar.core.loading import get_model Notification = get_model('customer', 'Notification') def notify_user(user, msg, **kwargs): """ Send a simple notification to a user """ Notification.objects.create(recipient=user, subject=msg, **kwargs) def notify_users(users, msg, **kwargs): ...
24.105263
71
0.646288
212ffb52491088c3b5b5a293c6e91839a5f79189
756
py
Python
Code/lsd/migrations/0006_remove_product_category.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
2
2021-12-15T21:58:43.000Z
2021-12-15T22:17:26.000Z
Code/lsd/migrations/0006_remove_product_category.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
null
null
null
Code/lsd/migrations/0006_remove_product_category.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
1
2021-12-19T17:02:02.000Z
2021-12-19T17:02:02.000Z
# Generated by Django 2.1.7 on 2020-07-21 16:36, Modified by SHentges from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("lsd", "0006_auto_20200708_1629"), ] operations = [ migrations.SeparateDatabaseAndState( state_operations=...
26.068966
88
0.468254
213016ceaaa4e6e0c77c38ccd850ddd127922832
5,674
py
Python
geoapps/simpegPF/EM/Utils/CurrentUtils.py
RichardScottOZ/geoapps
5b3c1d4fd11add45992e8b2497312ac014272b69
[ "MIT" ]
1
2022-02-18T16:24:53.000Z
2022-02-18T16:24:53.000Z
geoapps/simpegPF/EM/Utils/CurrentUtils.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
geoapps/simpegPF/EM/Utils/CurrentUtils.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
import numpy as np from .. import Utils def line(a, t, l): """ Linear interpolation between a and b 0 <= t <= 1 """ return a + t * l def weight(t, a1, l1, h1, a2, l2, h2): """ Edge basis functions """ x1 = line(a1, t, l1) x2 = line(a2, t, l2) w0 = (1.0 - x1 / ...
29.398964
84
0.471977
21301afc4a9805198fac2a83aed20b9976bc5edc
16,379
py
Python
src/olympia/landfill/serializers.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/landfill/serializers.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/landfill/serializers.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import collections import mimetypes import os import random import uuid from django.conf import settings from django.utils.translation import activate from django.core.files.uploadedfile import SimpleUploadedFile from django.test.client import RequestFactory from fxa.constants import ENVIRONME...
37.056561
79
0.589108
21301c0ec8e7610a6c36bf5aac6c9417b5668f87
5,274
py
Python
utils/resnet.py
robustrobotics/multi_view_stereonet
ab37254ed6c17a9057d0a006dc7ea2dd636cdd2f
[ "BSD-2-Clause" ]
16
2021-07-04T13:20:02.000Z
2022-03-14T07:17:34.000Z
utils/resnet.py
robustrobotics/multi_view_stereonet
ab37254ed6c17a9057d0a006dc7ea2dd636cdd2f
[ "BSD-2-Clause" ]
1
2022-03-16T03:52:31.000Z
2022-03-16T03:52:31.000Z
utils/resnet.py
robustrobotics/multi_view_stereonet
ab37254ed6c17a9057d0a006dc7ea2dd636cdd2f
[ "BSD-2-Clause" ]
4
2021-07-14T17:17:15.000Z
2021-12-28T03:32:25.000Z
# Copyright 2021 Massachusetts Institute of Technology # # @file resnet.py # @author W. Nicholas Greene # @date 2020-04-24 12:14:10 (Fri) import torch import torch.nn as nn def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1, bias=False): """3x3 convolution with padding""" return nn.Conv2d(in_pl...
32.9625
100
0.639363
2130277c3cd264c9391a56f3d900b8d8f8d85b7f
22,606
py
Python
pyhapi/hdata.py
portalmk2/pyhapi
2540e3de5c02adc832cf51e7dc1115ace267ddce
[ "MIT" ]
null
null
null
pyhapi/hdata.py
portalmk2/pyhapi
2540e3de5c02adc832cf51e7dc1115ace267ddce
[ "MIT" ]
null
null
null
pyhapi/hdata.py
portalmk2/pyhapi
2540e3de5c02adc832cf51e7dc1115ace267ddce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Houdini Engine's internal data types Author : Maajor Email : info@ma-yidong.com """ from ctypes import Structure, Array,\ c_int, c_int32, c_int64, c_float, c_bool import enum import numpy as np class StructureWithEnums(Structure): """Add missing enum feature to ctypes Structures. ...
25.258101
81
0.549323
213053e34e6704399a38b4d6e99e200d29994852
30,122
py
Python
pims/cine.py
tsmbland/pims
4f51b31f6a5bac41f4c680c7db1396f00838369e
[ "BSD-3-Clause" ]
208
2015-02-15T19:08:15.000Z
2022-03-24T09:35:04.000Z
pims/cine.py
tsmbland/pims
4f51b31f6a5bac41f4c680c7db1396f00838369e
[ "BSD-3-Clause" ]
264
2015-01-07T10:54:33.000Z
2022-03-24T12:46:07.000Z
pims/cine.py
tsmbland/pims
4f51b31f6a5bac41f4c680c7db1396f00838369e
[ "BSD-3-Clause" ]
60
2015-04-15T14:12:43.000Z
2021-12-13T15:43:38.000Z
############################################################################### # Reader for CINE files produced by Vision Research Phantom Software # Author: Dustin Kleckner # dkleckner@uchicago.edu # Modified by Thomas A Caswell (tcaswell@uchicago.edu) # Added to PIMS by Thomas A Caswell (tcaswell@gmail.com) # Mod...
32.564324
131
0.546411
21306912c131257400b3c9581c633882402e3600
10,409
py
Python
torchblocks/processor/base.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
1
2021-04-26T08:01:25.000Z
2021-04-26T08:01:25.000Z
torchblocks/processor/base.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
null
null
null
torchblocks/processor/base.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
null
null
null
import os import torch import string import logging from torch.utils.data import TensorDataset logger = logging.getLogger(__name__) LOWERCASE_STRS = list(string.ascii_lowercase) # 获取26个小写字 class DataProcessor: """Base class for processor converters data_dir: 数据目录 tokenizer: tokenizer ...
44.67382
121
0.577481
21308689b917b00024ac6bc365d471accdf44ba5
115
py
Python
portal/apps/memcached/views.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/apps/memcached/views.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/apps/memcached/views.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
# -*- coding: utf-8 -*- from memcached_status import view def memcached_status(request): return view(request)
19.166667
33
0.721739
2130a85633329b6dc950b7c9445fb89e92b7a880
23,123
py
Python
gisele/functions.py
Energy4Growing/gisele_v01
833445022ffbbc07885915581822b62bf07ad331
[ "Apache-2.0" ]
3
2021-09-21T08:13:07.000Z
2022-03-02T16:18:51.000Z
gisele/functions.py
Energy4Growing/gisele_v01
833445022ffbbc07885915581822b62bf07ad331
[ "Apache-2.0" ]
null
null
null
gisele/functions.py
Energy4Growing/gisele_v01
833445022ffbbc07885915581822b62bf07ad331
[ "Apache-2.0" ]
null
null
null
""" GIS For Electrification (GISEle) Developed by the Energy Department of Politecnico di Milano Supporting Code Group of supporting functions used inside all the process of GISEle algorithm """ #test comment import os import requests import pandas as pd import geopandas as gpd import numpy as np import json import sh...
41.738267
110
0.596852
2130b066af98924fc5f6894b3583072c446975c3
7,082
py
Python
dapy/filters/base.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
11
2020-07-29T07:46:39.000Z
2022-03-17T01:28:07.000Z
dapy/filters/base.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
1
2020-07-14T11:49:17.000Z
2020-07-29T07:43:22.000Z
dapy/filters/base.py
hassaniqbal209/data-assimilation
ec52d655395dbed547edf4b4f3df29f017633f1b
[ "MIT" ]
10
2020-07-14T11:34:24.000Z
2022-03-07T09:08:12.000Z
"""Abstract base classes for ensemble filters for inference in state space models.""" import abc from typing import Sequence, Dict import numpy as np from numpy.random import Generator from dapy.models.base import AbstractModel from dapy.utils.progressbar import ProgressBar class AbstractEnsembleFilter(abc.ABC): ...
50.22695
88
0.6573
2130ee58fdbabaa8ca60112f42622c7c40368d02
2,301
py
Python
unit3_lesson_03_understanding_print.py
AbhishekKumar1277/Mission-RnD-Python-
3e039dd3016db7ff0d67ad1cce2123852f15d093
[ "MIT" ]
null
null
null
unit3_lesson_03_understanding_print.py
AbhishekKumar1277/Mission-RnD-Python-
3e039dd3016db7ff0d67ad1cce2123852f15d093
[ "MIT" ]
null
null
null
unit3_lesson_03_understanding_print.py
AbhishekKumar1277/Mission-RnD-Python-
3e039dd3016db7ff0d67ad1cce2123852f15d093
[ "MIT" ]
null
null
null
__author__ = 'Kalyan' print_debugging = ''' As the name suggests, you add additional print statements as required into the buggy function to be clear about what intermediate states are, when the test fail. You need to figure out what additional state you want to see etc. Then you infer what went wrong based on...
30.68
100
0.647545
2130f63e6f2d91f31fc3fe548a1162886286bd42
5,629
py
Python
api_tests/base/test_views.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
api_tests/base/test_views.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
4
2016-05-13T14:24:16.000Z
2017-03-30T15:28:31.000Z
api_tests/base/test_views.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import httplib as http import pkgutil import mock from nose import SkipTest from nose.tools import * # flake8: noqa from tests.base import ApiTestCase from osf_tests import factories from framework.auth.oauth_scopes import CoreScopes from api.base.settings.defaults import API_BASE from res...
37.526667
132
0.674365
2130f8128ab683d26a9f1c5664300dc201db88f7
1,006
py
Python
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/content_sections.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
26
2016-09-14T18:15:29.000Z
2021-12-01T20:01:29.000Z
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/content_sections.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
122
2017-09-12T15:22:03.000Z
2021-09-27T17:25:08.000Z
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/content_sections.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
17
2017-02-16T16:04:41.000Z
2021-02-06T05:36:44.000Z
from utilities import db, moocdb_utils from common import * def GetContentSections(vars): # DB connections # -------------- s = vars['source'] general_db_selector = db.Selector(s['host'], s['user'], s['password'], s['port'], s['general_db']) resource_type_id = moocdb_utils.GetResourceTypeMap(v...
33.533333
106
0.628231
2130fcb43b819c8738c65c4416cd3afdeb34612a
7,748
py
Python
lib/galaxy/tools/parameters/meta.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/galaxy/tools/parameters/meta.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/galaxy/tools/parameters/meta.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
import copy import itertools import logging from galaxy import ( exceptions, model, util ) from galaxy.util import permutations log = logging.getLogger(__name__) def expand_workflow_inputs(inputs): """ Expands incoming encoded multiple payloads, into the set of all individual payload combination...
47.243902
356
0.604156
213103043e23ada4e794ecf0cce9b5ca3d9e0fed
3,404
py
Python
tf2onnx/tflite/OperatorCode.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,473
2018-03-16T02:47:33.000Z
2022-03-31T03:43:52.000Z
tf2onnx/tflite/OperatorCode.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,208
2018-03-14T09:58:49.000Z
2022-03-31T17:56:20.000Z
tf2onnx/tflite/OperatorCode.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
350
2018-04-03T03:48:40.000Z
2022-03-30T11:23:55.000Z
# SPDX-License-Identifier: Apache-2.0 # automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class OperatorCode(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=...
40.52381
141
0.721798
213166a49c4403e12ead7b0e6892468bc5bf9dc8
14,737
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
38.578534
94
0.820588
2131920db340cfec4d98cf4f217609ae26d36fe2
1,911
py
Python
admin_sdk/reseller/quickstart.py
btb/python-samples
6ebd2b6391ab036e6645f89c2065738677b6dd4a
[ "Apache-2.0" ]
null
null
null
admin_sdk/reseller/quickstart.py
btb/python-samples
6ebd2b6391ab036e6645f89c2065738677b6dd4a
[ "Apache-2.0" ]
null
null
null
admin_sdk/reseller/quickstart.py
btb/python-samples
6ebd2b6391ab036e6645f89c2065738677b6dd4a
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.22
74
0.712193
21319db634973d42dae12b4b9c67bf0fedd0884c
4,388
py
Python
postprocess/valid_ensemble.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
postprocess/valid_ensemble.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
postprocess/valid_ensemble.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
import os import sys sys.path.append('..') from utility.draw import * from utility.metric import compute_average_precision_for_mask from train import * def eval_augment(image, multi_mask, meta, index): pad_image = pad_to_factor(image, factor=16) input = torch.from_numpy(pad_image.transpose((2,0,1))).float().d...
38.831858
117
0.592753
21322d0aef91540f9f97dc8c516ff9163e2b3e9b
2,424
py
Python
terrascript/data/chanzuckerberg/snowflake.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/chanzuckerberg/snowflake.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/chanzuckerberg/snowflake.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/chanzuckerberg/snowflake.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:27:17 UTC) import terrascript class snowflake_current_account(terrascript.Data): pass class snowflake_external_functions(terrascript.Data): pass class snowflake_external_tables(terrascript.Data): ...
18.9375
73
0.77764
21324dba09c88beecebfad0494c0498cd7cfb162
2,029
py
Python
watson_developer_cloud/natural_language_understanding/features/v1/__init__.py
Omegastick/python-sdk
568db5c5afabb3d99e2cb6be1afd69b08e2191d5
[ "Apache-2.0" ]
1
2020-01-16T19:22:37.000Z
2020-01-16T19:22:37.000Z
watson_developer_cloud/natural_language_understanding/features/v1/__init__.py
SamArtGS/python-sdk
7be6a4fe75d4a9fd365ef626d6289c0dc8457f3a
[ "Apache-2.0" ]
10
2020-06-05T18:08:03.000Z
2022-03-11T23:19:52.000Z
watson_developer_cloud/natural_language_understanding/features/v1/__init__.py
SamArtGS/python-sdk
7be6a4fe75d4a9fd365ef626d6289c0dc8457f3a
[ "Apache-2.0" ]
3
2019-08-20T11:37:29.000Z
2020-07-18T11:22:14.000Z
# coding: utf-8 class Feature(object): def toDict(self): res = {} if not hasattr(self, "_dataTuples"): return res for t in self._dataTuples: self.addKey(t[0], t[1], res) return res def name(self): return self._name def addKey(self, var, name...
27.418919
77
0.593889
2132572c4fb2d865cd29863b1e6302f64e7ed4b0
4,682
py
Python
experiments/ashvin/icml2020/reference/hand/awac_relocate1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/reference/hand/awac_relocate1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/reference/hand/awac_relocate1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies im...
30.402597
77
0.558522
21325ba4c6c606b17e8be09825a568133d5bcbb6
1,488
py
Python
controllers/proc.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
controllers/proc.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
controllers/proc.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" Procurement A module to handle Procurement Currently handles Suppliers Planned Procurements Purchase Orders (POs) @ToDo: Extend to Purchase Requests (PRs) """ module = request.controller #resourcename = request.function if not settings.has_module(module): rai...
26.571429
79
0.399194
2132671632c6964abed7d51c4cce318fe2047f3a
3,658
py
Python
venv/Lib/site-packages/pyrogram/raw/types/update_bot_inline_query.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/update_bot_inline_query.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/update_bot_inline_query.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
35.173077
171
0.604702
2132ad6d1182b74abc4d7dbda1ce4c61f03c70cd
18,902
py
Python
avatar_sgg/game_master_slurk.py
rafiberlin/clp-sose21-pm-vision
55c786182ed4568cdeda4bb3676fa02b9580d68d
[ "MIT" ]
null
null
null
avatar_sgg/game_master_slurk.py
rafiberlin/clp-sose21-pm-vision
55c786182ed4568cdeda4bb3676fa02b9580d68d
[ "MIT" ]
null
null
null
avatar_sgg/game_master_slurk.py
rafiberlin/clp-sose21-pm-vision
55c786182ed4568cdeda4bb3676fa02b9580d68d
[ "MIT" ]
null
null
null
""" Slurk client for the game master """ import socketIO_client from avatar_sgg.game import MapWorldGame from avatar_sgg.config.util import get_config import random def check_error_callback(success, error=None): if error: print("Error: ", error) class GameMaster(socketIO_client.BaseNamespace): "...
45.004762
173
0.582743
2132cc3e1dcc501b37ea40382c00e5492ba5b54e
43,115
py
Python
tripleoclient/tests/v1/overcloud_node/test_overcloud_node.py
openstack/python-tripleoclient
3712cede1f859f5eb7b1d86b1721272448c219b0
[ "Apache-2.0" ]
39
2015-09-08T14:34:36.000Z
2022-02-20T21:00:44.000Z
tripleoclient/tests/v1/overcloud_node/test_overcloud_node.py
openstack/python-tripleoclient
3712cede1f859f5eb7b1d86b1721272448c219b0
[ "Apache-2.0" ]
1
2021-02-28T06:06:29.000Z
2021-02-28T06:06:29.000Z
tripleoclient/tests/v1/overcloud_node/test_overcloud_node.py
openstack/python-tripleoclient
3712cede1f859f5eb7b1d86b1721272448c219b0
[ "Apache-2.0" ]
33
2015-10-01T17:53:04.000Z
2022-03-10T11:50:38.000Z
# Copyright 2015 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
39.0181
79
0.50915
2132e25080948d047307e7ff5a32228a2933f6b6
3,066
py
Python
Tools/Scripts/webkitpy/tool/steps/applywatchlist.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/tool/steps/applywatchlist.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/tool/steps/applywatchlist.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2011 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
44.434783
114
0.712655
2132f4f6e726ad8ece296d69d7773f457c43eecf
568
py
Python
redash/handlers/__init__.py
steedos/redash
46d954843f229d74b5712384e74b4b0fdcef621b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
redash/handlers/__init__.py
steedos/redash
46d954843f229d74b5712384e74b4b0fdcef621b
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
redash/handlers/__init__.py
steedos/redash
46d954843f229d74b5712384e74b4b0fdcef621b
[ "BSD-2-Clause-FreeBSD" ]
1
2021-07-27T06:27:29.000Z
2021-07-27T06:27:29.000Z
from flask import jsonify from flask_login import login_required from redash.wsgi import app from redash.permissions import require_permission from redash.monitor import get_status @app.route('/ping', methods=['GET']) def ping(): return 'PONG.' @app.route('/status.json') @login_required @require_permission('ad...
22.72
117
0.762324
2132f8f52645f80e84b5c07f402651b92ceaedbd
183
py
Python
tests/test_tests.py
adbenitez/fbchat
8052b818de5de9682f6d64405579ad640cd657ee
[ "BSD-3-Clause" ]
1
2020-08-06T00:51:25.000Z
2020-08-06T00:51:25.000Z
tests/test_tests.py
adbenitez/fbchat
8052b818de5de9682f6d64405579ad640cd657ee
[ "BSD-3-Clause" ]
null
null
null
tests/test_tests.py
adbenitez/fbchat
8052b818de5de9682f6d64405579ad640cd657ee
[ "BSD-3-Clause" ]
null
null
null
import pytest def test_catch_event(client2, catch_event): mid = "test" with catch_event("onMessage") as x: client2.onMessage(mid=mid) assert x.res["mid"] == mid
20.333333
43
0.661202
2132fca8463d2da245f4cfc61659826155bac8cb
12,222
py
Python
aesara/gpuarray/rng_mrg.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
aesara/gpuarray/rng_mrg.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
aesara/gpuarray/rng_mrg.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
""" GPU implementation of MRG31k3p random number generator for Aesara. Generator code in SSJ package (L'Ecuyer & Simard). http://www.iro.umontreal.ca/~simardr/ssj/indexe.html """ from aesara import tensor as at from aesara.gpuarray.basic_ops import ( GpuFromHost, GpuKernelBase, Kernel, as_gpuarray_v...
34.820513
168
0.509655
21331214d0d6a36f3bf1a8e34b5e31aafc5490db
714
py
Python
tests/metaworlds/envs/mujoco/maze/test_swimmer_maze_env.py
rlworkgroup/metaworlds
be03cfed9890a37b84283c597209b849e8a086cc
[ "MIT" ]
5
2019-02-27T20:55:30.000Z
2019-08-24T19:24:41.000Z
tests/metaworlds/envs/mujoco/maze/test_swimmer_maze_env.py
rlworkgroup/metaworlds
be03cfed9890a37b84283c597209b849e8a086cc
[ "MIT" ]
8
2019-02-28T04:07:10.000Z
2020-01-02T10:54:10.000Z
tests/metaworlds/envs/mujoco/maze/test_swimmer_maze_env.py
rlworkgroup/metaworlds
be03cfed9890a37b84283c597209b849e8a086cc
[ "MIT" ]
1
2021-09-13T18:35:34.000Z
2021-09-13T18:35:34.000Z
import pickle import unittest from metaworlds.envs.mujoco.maze.swimmer_maze_env import SwimmerMazeEnv from tests.helpers import step_env class TestSwimmerMazeEnv(unittest.TestCase): def test_pickleable(self): env = SwimmerMazeEnv(n_bins=2) round_trip = pickle.loads(pickle.dumps(env)) asse...
27.461538
71
0.662465
21332028f829e3760ed8249befb61205c3e78278
6,228
py
Python
djangae/contrib/security/middleware.py
benvand/djangae
7b186fbe6952c5ae0afe5eb8258516c35760f96d
[ "BSD-3-Clause" ]
null
null
null
djangae/contrib/security/middleware.py
benvand/djangae
7b186fbe6952c5ae0afe5eb8258516c35760f96d
[ "BSD-3-Clause" ]
null
null
null
djangae/contrib/security/middleware.py
benvand/djangae
7b186fbe6952c5ae0afe5eb8258516c35760f96d
[ "BSD-3-Clause" ]
null
null
null
import __builtin__ import cPickle import functools import io import json import logging import pickle import yaml from google.appengine.api import urlfetch from django.conf import settings class ApiSecurityException(Exception): """Error when attempting to call an unsafe API.""" pass def find_argument_ind...
34.032787
102
0.662653
213361dc4af06daf2192163ce75a2b14b6338891
1,104
py
Python
apps/core/migrations/0024_article_comment_count.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
19
2017-09-13T07:51:58.000Z
2022-03-28T11:04:03.000Z
apps/core/migrations/0024_article_comment_count.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
147
2017-09-14T13:45:30.000Z
2022-03-14T15:54:09.000Z
apps/core/migrations/0024_article_comment_count.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
5
2019-08-31T13:13:30.000Z
2021-03-26T15:46:38.000Z
# Generated by Django 3.1 on 2020-10-29 17:10 from django.db import migrations, models def forwards_func(apps, schema_editor): article_model = apps.get_model("core", "Article") articles = article_model.objects.using(schema_editor.connection.alias).annotate( comment_set__count=models.Count('comment_s...
29.052632
121
0.708333
213367a4d54a5c0cb63b42da76cc2a8e27392779
21,146
py
Python
openstackclient/tests/network/v2/test_security_group.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/network/v2/test_security_group.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/network/v2/test_security_group.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distrib...
31.142857
79
0.641729
2133b9d36d9443b2145dada700f92edcaeb8afe1
8,457
py
Python
reprexlite/code.py
jayqi/reprexlite
efe0fa3190bd77ba8d47be6995cd9a0d040d36d4
[ "MIT" ]
6
2021-02-15T11:33:05.000Z
2021-05-31T04:14:18.000Z
reprexlite/code.py
jayqi/reprexlite
efe0fa3190bd77ba8d47be6995cd9a0d040d36d4
[ "MIT" ]
51
2021-02-15T21:06:51.000Z
2022-03-31T15:11:21.000Z
reprexlite/code.py
jayqi/reprexlite
efe0fa3190bd77ba8d47be6995cd9a0d040d36d4
[ "MIT" ]
null
null
null
from contextlib import redirect_stdout from io import StringIO from itertools import chain from pprint import pformat import traceback from typing import Any, List, Optional, Union import libcst as cst NO_RETURN = object() """Explicit placeholder object for statements, which have no return value (as opposed to expres...
39.891509
99
0.610264
2133c700e2906d3b6da27efbb4ad33455f8e6a0a
14,535
py
Python
pointcloud_utils/alignment_check.py
mintpancake/2d-collision-net
0ca4d36b2623c703d87d58ce2031a226a0b64df8
[ "MIT" ]
9
2020-09-15T06:36:50.000Z
2021-09-08T11:13:06.000Z
pointcloud_utils/alignment_check.py
mintpancake/2d-collision-net
0ca4d36b2623c703d87d58ce2031a226a0b64df8
[ "MIT" ]
null
null
null
pointcloud_utils/alignment_check.py
mintpancake/2d-collision-net
0ca4d36b2623c703d87d58ce2031a226a0b64df8
[ "MIT" ]
1
2021-09-02T22:46:46.000Z
2021-09-02T22:46:46.000Z
import numpy as np import pointcloud_utils.farthest_point_sampling as fps import torch import torch.nn.functional as F # from pointnet3.loss.chamfer import * from scipy.spatial.transform import Rotation as RotTool from PIL import Image from sklearn.neighbors import NearestNeighbors from scipy.spatial.distance import m...
36.612091
139
0.608875
213425787ff6729dc84d6210a7e94cdbbeac44ee
6,872
py
Python
Plug-and-play module/attention/ObjectContextualRepresentation/OCRModule.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
Plug-and-play module/attention/ObjectContextualRepresentation/OCRModule.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
Plug-and-play module/attention/ObjectContextualRepresentation/OCRModule.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
# source: https://github.com/IndigoAI/SemanticSegmentation/blob/master/HRNet/OCR.py import torch import torch.nn as nn import torch._utils import torch.nn.functional as F from OCRForClothes.HRNet.batchnorm import SynchronizedBatchNorm2d BatchNorm2d = SynchronizedBatchNorm2d import warnings warnings.filterwarnings("ign...
39.045455
109
0.592986
213444f5d1c63df3ada3081372064a7c6c35f13e
525
py
Python
test/utility/AriesTest.py
LordOfTheRains/cookieJar
57838b9f5103dacad5b3bdc643905e65d576af94
[ "MIT" ]
null
null
null
test/utility/AriesTest.py
LordOfTheRains/cookieJar
57838b9f5103dacad5b3bdc643905e65d576af94
[ "MIT" ]
null
null
null
test/utility/AriesTest.py
LordOfTheRains/cookieJar
57838b9f5103dacad5b3bdc643905e65d576af94
[ "MIT" ]
null
null
null
from __future__ import absolute_import import unittest from softwareprocess.utility.aries import Aries class AriesTest(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_get_greenwich_hour_angle(self): """ internal and validated inpu...
21.875
57
0.571429
213478f1d8703defb0e8bde5915ef5f490b88df8
403
py
Python
examples/backup/commands/platforms/selections/list.py
fmenabe/python-clg-splitup
a3e159ca66f03ac619d44c6a0a077b13092fc809
[ "MIT" ]
1
2017-05-12T11:29:29.000Z
2017-05-12T11:29:29.000Z
examples/backup/commands/platforms/selections/list.py
fmenabe/python-clg-splitup
a3e159ca66f03ac619d44c6a0a077b13092fc809
[ "MIT" ]
1
2022-03-12T13:32:04.000Z
2022-03-12T13:33:14.000Z
examples/backup/commands/platforms/selections/list.py
fmenabe/python-clif
7d74b344337567f7951046406510a980afd7ee97
[ "MIT" ]
null
null
null
# coding: utf-8 """Command for listing selection of a platform.""" import clif.conf as conf import clif.logger as logger from pprint import pformat def main(args): conf.init(args) logger.info('command-line arguments:\n%s' % pformat(vars(args))) logger.info('columns definition from configuration file (con...
28.785714
102
0.699752
21348ac92e63b1afb3a8533bd174969ccbc046bb
50,912
py
Python
src/sage/dynamics/flat_surfaces/strata.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/dynamics/flat_surfaces/strata.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/dynamics/flat_surfaces/strata.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
r""" Strata of differentials on Riemann surfaces .. WARNING:: This module is deprecated. You are advised to install and use the surface_dynamics package instead available at https://pypi.python.org/pypi/surface_dynamics/ The space of Abelian (or quadratic) differentials is stratified by the degrees of th...
29.075957
152
0.547062
2134b4aff0b18c1725ec66e19071e584b0b66357
6,614
py
Python
cinder/volume/drivers/hitachi/vsp_iscsi.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/hitachi/vsp_iscsi.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/hitachi/vsp_iscsi.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2016, Hitachi, Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
35.180851
79
0.691412
2134cfb98411a505d2071299054c4358e1a952b2
16,035
py
Python
tests/unit/frontend/tvm/relay_tools/test_relay_l3_math_and_transform.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
25
2020-06-17T22:41:13.000Z
2022-03-22T16:28:22.000Z
tests/unit/frontend/tvm/relay_tools/test_relay_l3_math_and_transform.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
25
2021-03-16T06:26:44.000Z
2022-03-18T11:28:33.000Z
tests/unit/frontend/tvm/relay_tools/test_relay_l3_math_and_transform.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
19
2020-07-30T10:03:02.000Z
2021-06-29T01:18:16.000Z
# Copyright 2020 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.858696
94
0.56464
213521d3de0ad339a38b89e4d2f0febf6745c0ac
277
py
Python
lang/python/base/outputString.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
8
2015-06-07T13:25:48.000Z
2022-03-22T23:14:50.000Z
lang/python/base/outputString.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
30
2016-01-29T01:36:41.000Z
2018-09-19T07:01:22.000Z
lang/python/base/outputString.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
null
null
null
with open("1.txt") as f: dct = {} dct["var"] = "def" dct["topdir"] = "top...." lst = ["A", "B"] dct["list"] = " ".join(lst) fmt = """#$## thsi file is auto dont's edit it export topdir=${topdir} def ${var} """ s = fmt.format(**dct) print s >> f
18.466667
35
0.469314
21353454a0dbeacc197b0f385c267e1f9fff4a86
16,522
py
Python
nodemonitor/common.py
foxty/node_monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
3
2018-01-09T05:58:21.000Z
2021-07-15T13:18:10.000Z
nodemonitor/common.py
foxty/node_monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
14
2018-01-17T06:19:48.000Z
2022-02-12T02:29:14.000Z
nodemonitor/common.py
foxty/node-monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Created on 2017-12-22 @author: foxty Common for node monitor """ # ============================== # Common Area (Agent & Master) # ============================== import sys import os import re import logging try: import json, json.decoder except: pass import log...
29.985481
114
0.591212
21353590bd1176a460c6f7fde97f56735b03391d
909
py
Python
test_IOboard.py
LeMaker/LeScratch
0dde167925afe40cf63cf8ccba13321761494c25
[ "Apache-2.0" ]
4
2015-06-23T17:57:47.000Z
2016-02-15T12:52:46.000Z
test_IOboard.py
LeMaker/LeScratch
0dde167925afe40cf63cf8ccba13321761494c25
[ "Apache-2.0" ]
1
2021-08-18T03:17:45.000Z
2021-08-18T03:17:45.000Z
test_IOboard.py
LeMaker/LeScratch
0dde167925afe40cf63cf8ccba13321761494c25
[ "Apache-2.0" ]
4
2015-07-13T14:43:24.000Z
2015-12-25T09:14:50.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # # Test IOboard import sys import IOboard if len(sys.argv) != 4: print("usage: {0} Address Channel[0|1|2|3] DigitalOut[0~255].".format(sys.argv[0])) print("example: {0} I2C Address Read from Channel 0 and write 127 to D/A converter. ".format(sys.argv[0])...
24.567568
111
0.647965
21357c2b852fd18f558331c61fc7ed5acaf0b01e
1,058
py
Python
test/generate/autotest/D0_POP_d.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
test/generate/autotest/D0_POP_d.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
20
2020-01-13T04:19:37.000Z
2020-02-12T14:25:44.000Z
test/generate/autotest/D0_POP_d.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
######################################################### # 2020-01-27 21:13:38 # AI # ins: PUSH direct ######################################################### import random from .. import testutil as u from ..sim51util import SIMRAM from ..asmconst import * p = u.create_test() ram = SIMRAM() def one(p, count): ...
24.045455
62
0.495274
2135a8fcc20a986b3d58e0df1f8c4b1757de8c53
773
py
Python
google/colab/_import_hooks/__init__.py
nersusurya/colabtools
75bf78e1e50ed644f3f744a3b6d7cf94f0480827
[ "Apache-2.0" ]
5
2019-06-06T14:24:10.000Z
2020-05-01T15:12:06.000Z
google/colab/_import_hooks/__init__.py
srikanthlakkoju/colabtools
75bf78e1e50ed644f3f744a3b6d7cf94f0480827
[ "Apache-2.0" ]
null
null
null
google/colab/_import_hooks/__init__.py
srikanthlakkoju/colabtools
75bf78e1e50ed644f3f744a3b6d7cf94f0480827
[ "Apache-2.0" ]
2
2019-01-25T13:43:17.000Z
2020-01-07T10:28:13.000Z
# Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.809524
74
0.769728
2135da84caa2f94bc823d58bec41dc2dfa93dcee
510
py
Python
src/apps/metas/migrations/0003_auto_20200407_1409.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/metas/migrations/0003_auto_20200407_1409.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/metas/migrations/0003_auto_20200407_1409.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-07 19:09 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('metas', '0002_auto_20200407_1407'), ] operations = [ migrations.AlterField( model_name='goal', ...
25.5
147
0.647059
2135eba54c2fa5fe7b6b747f9185506e9bfc41fd
2,411
py
Python
fil2014/settings.py
betoesquivel/fil2014
4c2e9188769096391bb206b76ed1ab8bd2ff66a1
[ "MIT" ]
1
2016-05-18T18:46:48.000Z
2016-05-18T18:46:48.000Z
fil2014/settings.py
betoesquivel/fil2014
4c2e9188769096391bb206b76ed1ab8bd2ff66a1
[ "MIT" ]
null
null
null
fil2014/settings.py
betoesquivel/fil2014
4c2e9188769096391bb206b76ed1ab8bd2ff66a1
[ "MIT" ]
null
null
null
""" Django settings for fil2014 project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) im...
23.871287
72
0.718374
21362b96959535152cae2297feb0b1d4c6782d52
187
py
Python
exec/tilemap/tilemap_visual_run.py
Fladdimir/casymda
6cf599bed2229c4aff9bca31350604b38ef76138
[ "MIT" ]
19
2020-04-18T14:47:37.000Z
2022-03-26T14:18:21.000Z
exec/tilemap/tilemap_visual_run.py
Fladdimir/casymda
6cf599bed2229c4aff9bca31350604b38ef76138
[ "MIT" ]
4
2020-03-17T21:01:58.000Z
2021-09-24T21:07:25.000Z
exec/tilemap/tilemap_visual_run.py
Fladdimir/casymda
6cf599bed2229c4aff9bca31350604b38ef76138
[ "MIT" ]
4
2020-05-09T16:31:57.000Z
2022-01-23T09:11:19.000Z
import sys sys.path.append(".") from examples.tilemap import tilemap_visualizer_test if __name__ == "__main__": tilemap_visualizer_test.test_visualized_run_tilemap(rt_factor=0.25)
20.777778
71
0.802139
21362cdf743f30b7a9fdfd606cf38eb84ec54b28
14,053
py
Python
src/sardana/taurus/core/tango/sardana/test/test_macro.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
43
2016-11-25T15:21:23.000Z
2021-08-20T06:09:40.000Z
src/sardana/taurus/core/tango/sardana/test/test_macro.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
1,263
2016-11-25T15:58:37.000Z
2021-11-02T22:23:47.000Z
src/sardana/taurus/core/tango/sardana/test/test_macro.py
marc2332/sardana
48dc9191baaa63f6c714d8c025e8f3f96548ad26
[ "CC-BY-3.0" ]
58
2016-11-21T11:33:55.000Z
2021-09-01T06:21:21.000Z
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
40.151429
80
0.56785
21367791a8df1352595c7d5041dbeb8a1e2f399b
3,005
py
Python
api/views/stories.py
hack4impact-uiuc/nnb-backend-v2
05babff223eaad95c6cf47dddc0e30b894af9830
[ "MIT" ]
1
2018-03-07T17:40:10.000Z
2018-03-07T17:40:10.000Z
api/views/stories.py
hack4impact-uiuc/nnb-backend-v2
05babff223eaad95c6cf47dddc0e30b894af9830
[ "MIT" ]
29
2018-02-23T10:06:58.000Z
2018-04-29T09:44:52.000Z
api/views/stories.py
hack4impact-uiuc/nnb-backend-v2
05babff223eaad95c6cf47dddc0e30b894af9830
[ "MIT" ]
null
null
null
from api import app, db from api.models import Story, StoryPOI from api.utils import create_response, row_constructor from api.auth_tokens import token_required from flask import Blueprint, request mod = Blueprint('stories', __name__) STORIES_URL = "/stories" STORIES_ID_URL = "/stories/<int:story_id>" @ap...
40.066667
121
0.678869
21367d68533c14a651edbe5dcda129d6d114ccba
95
py
Python
spoonbill/writers/__init__.py
anton-shakh-qg/spoonbill
b54d48f053009d2d6dd8c6a023348af2d54188fe
[ "BSD-3-Clause" ]
2
2021-03-02T01:19:02.000Z
2021-04-19T09:15:40.000Z
spoonbill/writers/__init__.py
anton-shakh-qg/spoonbill
b54d48f053009d2d6dd8c6a023348af2d54188fe
[ "BSD-3-Clause" ]
101
2021-03-04T16:23:21.000Z
2021-12-15T21:08:46.000Z
spoonbill/writers/__init__.py
anton-shakh-qg/spoonbill
b54d48f053009d2d6dd8c6a023348af2d54188fe
[ "BSD-3-Clause" ]
6
2021-04-19T15:05:40.000Z
2021-07-07T21:23:54.000Z
from .csv import CSVWriter from .xlsx import XlsxWriter __all__ = ["CSVWriter", "XlsxWriter"]
19
37
0.757895
21369a25593f648c923111bc4b813b7d48c5c251
8,215
py
Python
nova/tests/unit/api/openstack/compute/test_migrations.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_migrations.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_migrations.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-07-24T01:18:44.000Z
2020-07-24T01:18:44.000Z
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
34.087137
78
0.60986
2136d7db232e0c3960bd7a782dc4cfc6be25e5f4
1,170
py
Python
alipay/aop/api/response/AlipayMerchantPayforprivilegeMemberremainingQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayMerchantPayforprivilegeMemberremainingQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayMerchantPayforprivilegeMemberremainingQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayMerchantPayforprivilegeMemberremainingQueryResponse(AlipayResponse): def __init__(self): super(AlipayMerchantPayforprivilegeMemberremainingQueryResponse, self).__init__...
32.5
130
0.734188
2136d8b6ba336b35dbde3a7047b7da8ea45fcee2
4,292
py
Python
papers/none2021_ecrad/views/heating_rates.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
papers/none2021_ecrad/views/heating_rates.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
papers/none2021_ecrad/views/heating_rates.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.getcwd()) import pickle import json import numpy as np import matplotlib import matplotlib.pyplot as plt import iris import restools from papers.none2021_ecrad.data import Summary from papers.none2021_ecrad.extensions import EcradIO, heating_rate_diff_rms, plot_data_on_mixed_li...
48.224719
112
0.646785
2136dcfe47cb30eb1388c393427cd2ae384a49db
1,730
py
Python
photometry/photometry/tasoc_db.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
photometry/photometry/tasoc_db.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
photometry/photometry/tasoc_db.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Connection to the central TASOC database. Note: This function requires the user to be connected to the TASOC network at Aarhus University. It connects to the TASOC database to get a complete list of all stars in the TESS Input Catalog (TIC), which is a very large table. .. codeauthor::...
28.360656
109
0.679769
2136edf3bef5c92c39c8a6e62f435fbf0b81b7ba
296
py
Python
whmcs_nutanix_module/nutanix/lib/nutanix/project.py
halsayed/whmcs-demo
da60d0b22a65fa79b31580838b0e23f35eb5f750
[ "MIT" ]
null
null
null
whmcs_nutanix_module/nutanix/lib/nutanix/project.py
halsayed/whmcs-demo
da60d0b22a65fa79b31580838b0e23f35eb5f750
[ "MIT" ]
null
null
null
whmcs_nutanix_module/nutanix/lib/nutanix/project.py
halsayed/whmcs-demo
da60d0b22a65fa79b31580838b0e23f35eb5f750
[ "MIT" ]
null
null
null
from .httpClient import CalmClient def list(params): client = CalmClient(params) result = client.project_list() projects = [] if len(result): for project in result: projects.append({project['metadata']['uuid']: project['spec']['name']}) return projects
22.769231
83
0.635135
2136f0d7b27bb04abea70306f490c33095e400fd
6,504
py
Python
aqara/device.py
javefang/pyaqara
84c0edc991ba435b3eb6f0225737461850de96aa
[ "MIT" ]
23
2017-01-27T14:35:25.000Z
2021-07-27T04:10:59.000Z
aqara/device.py
javefang/pyaqara
84c0edc991ba435b3eb6f0225737461850de96aa
[ "MIT" ]
2
2017-11-17T11:01:58.000Z
2018-02-25T15:42:10.000Z
aqara/device.py
javefang/pyaqara
84c0edc991ba435b3eb6f0225737461850de96aa
[ "MIT" ]
10
2017-07-14T19:21:35.000Z
2021-02-03T17:06:15.000Z
"""Aqara Devices""" import json import logging from pydispatch import dispatcher from aqara.const import ( AQARA_DEVICE_HT, AQARA_DEVICE_MOTION, AQARA_DEVICE_MAGNET, AQARA_DEVICE_SWITCH, AQARA_SWITCH_ACTION_CLICK, AQARA_SWITCH_ACTION_DOUBLE_CLICK, AQARA_SWITCH_ACTION_LONG_CLICK_PRESS, ...
30.111111
90
0.658518
2136f56ce328850644790912446dc642521e8952
521
py
Python
GPSVI/test/testkernel.py
AlchemicalChest/gaussian-process-svi
56111e9a125cdd322473685b1b7ef875d584653e
[ "MIT" ]
null
null
null
GPSVI/test/testkernel.py
AlchemicalChest/gaussian-process-svi
56111e9a125cdd322473685b1b7ef875d584653e
[ "MIT" ]
null
null
null
GPSVI/test/testkernel.py
AlchemicalChest/gaussian-process-svi
56111e9a125cdd322473685b1b7ef875d584653e
[ "MIT" ]
1
2017-02-08T03:45:25.000Z
2017-02-08T03:45:25.000Z
# -*- coding: utf-8 -*- """ Created on Wed Apr 29 14:37:22 2015 @author: Ziang """ import numpy as np from util.kernel import compute_kernel from util.inverse import cho_inverse from sklearn import datasets data = datasets.load_digits() from sklearn.cross_validation import train_test_split xTr, xTe, yTr, yTe = train...
22.652174
76
0.738964
2137035b1dbbc2833b37c5a1c859b80a1b7ed63a
3,569
py
Python
ddpg_curiosity_mc_her/ddpg/her.py
yeocy/CDMCH-Pytorch
3fbe00d7607a2081d923e1a4f5dbb413e43dfbae
[ "MIT" ]
null
null
null
ddpg_curiosity_mc_her/ddpg/her.py
yeocy/CDMCH-Pytorch
3fbe00d7607a2081d923e1a4f5dbb413e43dfbae
[ "MIT" ]
null
null
null
ddpg_curiosity_mc_her/ddpg/her.py
yeocy/CDMCH-Pytorch
3fbe00d7607a2081d923e1a4f5dbb413e43dfbae
[ "MIT" ]
null
null
null
import numpy as np from mpi4py import MPI class her_sampler: def __init__(self, replay_strategy, replay_k, reward_func=None, sub_goal_divisions = None): self.replay_strategy = replay_strategy#future self.replay_k = replay_k#4 if self.replay_strategy == 'future': self.future_p = ...
51.724638
116
0.663771
21372f54af5e2cbaac257daefd3ee704e41b7825
16,730
py
Python
dgeq/utils.py
qcoumes/dgeq
087bdbf934d59d7aedcef84735a8f18460cda1d0
[ "MIT" ]
null
null
null
dgeq/utils.py
qcoumes/dgeq
087bdbf934d59d7aedcef84735a8f18460cda1d0
[ "MIT" ]
1
2021-01-24T22:53:53.000Z
2021-01-24T22:53:53.000Z
dgeq/utils.py
qcoumes/dgeq
087bdbf934d59d7aedcef84735a8f18460cda1d0
[ "MIT" ]
null
null
null
import operator from collections import abc from functools import reduce from typing import Any, Callable, Dict, Iterable, List, Set, Tuple, Type, Union from django.conf import settings from django.contrib.auth.models import AnonymousUser, User from django.core.exceptions import FieldDoesNotExist from django.db import...
36.448802
100
0.632756
21373889a7bc1f1a037a9599ea6c5bcb39e8d8ce
930
py
Python
test/test_sign_pythonrsa.py
JeffLIrion/python-adb
ab99e77ef3c1a58f19597b0c34c93bd6dc56a1f3
[ "Apache-2.0" ]
1
2019-07-17T18:42:18.000Z
2019-07-17T18:42:18.000Z
test/test_sign_pythonrsa.py
JeffLIrion/python-adb
ab99e77ef3c1a58f19597b0c34c93bd6dc56a1f3
[ "Apache-2.0" ]
1
2018-10-04T04:07:23.000Z
2018-10-04T20:54:16.000Z
test/test_sign_pythonrsa.py
JeffLIrion/python-adb
ab99e77ef3c1a58f19597b0c34c93bd6dc56a1f3
[ "Apache-2.0" ]
1
2018-10-03T14:11:31.000Z
2018-10-03T14:11:31.000Z
from mock import patch import os import unittest from adb.adb_keygen import keygen from adb.sign_pythonrsa import PythonRSASigner from adb_keygen_stub import open_priv_pub class TestPythonRSASigner(unittest.TestCase): def setUp(self): with patch('adb.sign_pythonrsa.open', open_priv_pub), patch('adb.adb_...
32.068966
106
0.672043
21375bb140ac28c89ed7350a4176d5884c6af62c
17,317
py
Python
sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
47.969529
236
0.691228
21376e54395dc4a93cc27d2b1e20ff7d5a09ed7d
8,677
py
Python
xos/synchronizers/base/steps/sync_ports.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/base/steps/sync_ports.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/base/steps/sync_ports.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
import os import base64 from django.db.models import F, Q from xos.config import Config from synchronizers.base.openstacksyncstep import OpenStackSyncStep from core.models import Controller from core.models.network import * from xos.logger import observer_logger as logger class SyncPorts(OpenStackSyncStep): reques...
44.045685
149
0.552841
2137881f2d6a3d91e19b94166f3c1f37f0c69f8d
6,767
py
Python
streaming/signal.py
FRidh/streaming
bf8e61e932aea0b9007ceff174dab98ae80c6da0
[ "BSD-2-Clause" ]
3
2018-10-22T15:29:23.000Z
2020-10-24T20:30:26.000Z
streaming/signal.py
FRidh/streaming
bf8e61e932aea0b9007ceff174dab98ae80c6da0
[ "BSD-2-Clause" ]
2
2017-08-20T10:09:41.000Z
2021-02-25T14:11:05.000Z
streaming/signal.py
FRidh/streaming
bf8e61e932aea0b9007ceff174dab98ae80c6da0
[ "BSD-2-Clause" ]
2
2017-06-10T15:57:45.000Z
2020-10-24T20:32:07.000Z
""" Signal Processing ================= The Signal Processing module contains functions for signal processing. """ from multipledispatch import dispatch, Dispatcher import numbers import numpy as np import noisy import streaming from streaming.stream import Stream, BlockStream, count import itertools from functools i...
32.07109
153
0.683759
2137971b9ce00698df95cad51290db0d9147859b
201
py
Python
secrets_sample.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
secrets_sample.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
secrets_sample.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Secrets variables per instance. Please update it within this file # before running update or install. # DO NOT commit secrets.py to repository! VOLONTULO_SENTRY_DSN = 'xxx'
25.125
67
0.736318
2137a520b8fabd86f8bba6ab750b9fb9d216b154
34,549
py
Python
core/controllers/admin_test.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
3
2021-06-26T09:45:19.000Z
2021-11-17T11:11:39.000Z
core/controllers/admin_test.py
import-keshav/oppia
899b9755a6b795a8991e596055ac24065a8435e0
[ "Apache-2.0" ]
4
2019-08-15T10:49:21.000Z
2022-03-02T05:10:20.000Z
core/controllers/admin_test.py
grishamjindal/oppia
3a29329a446e30b3b70641cf0286e23fad85418f
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 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 required by applicable ...
37.635076
80
0.657125
2137c5407c309d7b22b9132ec35288724e70269d
3,482
py
Python
onadata/apps/main/models/user_profile.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/main/models/user_profile.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/main/models/user_profile.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import from django.conf import settings from django.contrib.auth.models import User from django.db import models from django.db.models.signals import post_save from django.utils.translation import ugettext_lazy from guardian.sh...
36.652632
82
0.724009
213830c441fbc91552e34e0af12afb1939173ad8
1,550
py
Python
dev/basic_pipeline.py
RodolfoFerro/docker-luigi-pipes
0eb47a3e528b658b06f18fc4ce1c3dbf05f23221
[ "MIT" ]
null
null
null
dev/basic_pipeline.py
RodolfoFerro/docker-luigi-pipes
0eb47a3e528b658b06f18fc4ce1c3dbf05f23221
[ "MIT" ]
null
null
null
dev/basic_pipeline.py
RodolfoFerro/docker-luigi-pipes
0eb47a3e528b658b06f18fc4ce1c3dbf05f23221
[ "MIT" ]
null
null
null
from utils import * import struct import luigi import cv2 class PreprocessImage(luigi.Task): filename = luigi.Parameter(default='../assets/test.png') def requires(self): return [] def output(self): path = self.filename.split('/') return luigi.LocalTarget('{}/preproc.txt'.format('...
28.181818
78
0.577419
21384cb9798d7785ddce99996a2d55bf2dc5295c
4,422
py
Python
stereo_vision/testing/blender_script.py
olaals/prosjektoppgave
048c5c01cf428846c76b1c27abd4c0f451056e03
[ "MIT" ]
null
null
null
stereo_vision/testing/blender_script.py
olaals/prosjektoppgave
048c5c01cf428846c76b1c27abd4c0f451056e03
[ "MIT" ]
null
null
null
stereo_vision/testing/blender_script.py
olaals/prosjektoppgave
048c5c01cf428846c76b1c27abd4c0f451056e03
[ "MIT" ]
null
null
null
import bpy from math import * import numpy as np CAM1_LOC = (-1, -4, 0) CAM1_ROT = (pi/2, 0, -pi/16) CAM2_LOC = (1, -4, 0) CAM2_ROT = (pi/2, 0, pi/16) FOCAL_LEN = 50 # mm PIXELS_X = 160 PIXELS_Y = 128 PW = 10*10**(-6) print("Cam1 location:", "x: ", CAM1_LOC[0], " y:", CAM1_LOC[1], " z:", CAM1_LOC[2]) print("Cam1 rotat...
31.361702
115
0.544324
213853f5b1883cf965ffcc0c5b3d2aea3be90963
28,861
py
Python
Lib/test/test_regrtest.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
4
2016-04-02T00:01:50.000Z
2017-07-13T02:11:04.000Z
Lib/test/test_regrtest.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
null
null
null
Lib/test/test_regrtest.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
null
null
null
""" Tests of regrtest.py. Note: test_regrtest cannot be run twice in parallel. """ import argparse import contextlib import faulthandler import getopt import io import os.path import platform import re import subprocess import sys import sysconfig import tempfile import textwrap import unittest from test import libre...
37.001282
80
0.559198
21386566225ea5d2634e46b019be6af371de9e5b
93
py
Python
lewis_emulators/jsco4180/interfaces/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
2
2020-10-20T16:49:13.000Z
2021-02-19T10:41:44.000Z
lewis_emulators/jsco4180/interfaces/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
9
2019-03-22T15:35:15.000Z
2021-07-28T11:05:43.000Z
lewis_emulators/jsco4180/interfaces/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
1
2020-10-21T17:02:44.000Z
2020-10-21T17:02:44.000Z
from .stream_interface import Jsco4180StreamInterface __all__ = ['Jsco4180StreamInterface']
23.25
53
0.849462
21388244a60651a64c18210e558a977c484916a2
2,748
py
Python
AutoAspen/sensitivity_nonAspenVars.py
wilsoa6/Aspen_tool
76ff1105668899b6ad4113b89519f34992f5abdd
[ "MIT" ]
null
null
null
AutoAspen/sensitivity_nonAspenVars.py
wilsoa6/Aspen_tool
76ff1105668899b6ad4113b89519f34992f5abdd
[ "MIT" ]
null
null
null
AutoAspen/sensitivity_nonAspenVars.py
wilsoa6/Aspen_tool
76ff1105668899b6ad4113b89519f34992f5abdd
[ "MIT" ]
3
2020-12-23T21:49:28.000Z
2022-01-12T21:34:35.000Z
#!/usr/bin/env pyhton # -*- coding: UTF-8 -*- __author__ = 'Chao Wu' __date__ = '09/08/2020' __version__ = '1.2' r''' This script estimates sensitivity of outputs with respect to varied variables in .xlsm, values are enumerated (discrete) or given in range (continuous) Example python C:\Share_GoogleDrive\NREL\Soft...
32.714286
474
0.748544
2138a7f768390a70b6e05485d1263257537bfde6
1,925
py
Python
pytrack/processmodels.py
petersvenningsson/radar-Bayesian-human-motion
728db0f39c107faccf9d711670177aac74456e3f
[ "MIT" ]
1
2022-02-01T20:42:24.000Z
2022-02-01T20:42:24.000Z
pytrack/processmodels.py
petersvenningsson/radar-Bayesian-human-motion
728db0f39c107faccf9d711670177aac74456e3f
[ "MIT" ]
null
null
null
pytrack/processmodels.py
petersvenningsson/radar-Bayesian-human-motion
728db0f39c107faccf9d711670177aac74456e3f
[ "MIT" ]
null
null
null
import numpy as np np.seterr(all='raise') class ConstantVelocityModel(): """ State space: x, y, vx, vy Methods: self.F: Returns the motion Jacobian matrix self.f: Returns state prediction self.Q: Returns discrete time motion noise """ dim = 4 def __init__(self, T, sigma_ve...
29.615385
80
0.407792
2138b67bdec87e394dd154a61103bbf47bf6c1c1
23,131
py
Python
database/models/data.py
tgbugs/mlab
dacc1663cbe714bb45c31b1b133fddb7ebcf5c79
[ "MIT" ]
null
null
null
database/models/data.py
tgbugs/mlab
dacc1663cbe714bb45c31b1b133fddb7ebcf5c79
[ "MIT" ]
null
null
null
database/models/data.py
tgbugs/mlab
dacc1663cbe714bb45c31b1b133fddb7ebcf5c79
[ "MIT" ]
null
null
null
import os, socket #FIXME do we really want to handle this here? from database.imports import * from database.models.base import Base from database.models.mixins import HasNotes, HasMetaData, HasProperties, HasMirrors, HasAnalysis from database.standards import URL_STAND #some global variables that are used here and th...
49.319829
303
0.697549
2138b6d02eb6de70cc70705625e9fdc2727b6933
26,689
py
Python
Sublime Text 3/Backup/20210122193107/backrefs/st3/backrefs/uniprops/unidata/decompositiontype.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
182
2017-03-05T07:43:13.000Z
2022-03-15T13:09:07.000Z
Sublime Text 3/Backup/20210122193107/backrefs/st3/backrefs/uniprops/unidata/decompositiontype.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
3
2021-05-10T18:59:14.000Z
2021-09-02T01:50:15.000Z
Sublime Text 3/Backup/20210122193107/backrefs/st3/backrefs/uniprops/unidata/decompositiontype.py
anekeallen/Sublime-Text-3
8502b9089ca4223f8ba7ff168626a0dbe67713cb
[ "MIT" ]
16
2017-03-07T11:01:27.000Z
2022-01-08T09:21:01.000Z
"""Unicode Properties from Unicode version 6.1.0 (autogen).""" from __future__ import unicode_literals unicode_decomposition_type = { "^canonical": "\x00-\xbf\xc6\xd0\xd7-\xd8\xde-\xdf\xe6\xf0\xf7-\xf8\xfe\u0110-\u0111\u0126-\u0127\u0131-\u0133\u0138\u013f-\u0142\u0149-\u014b\u0152-\u0153\u0166-\u0167\u017f-\u019f...
333.6125
4,323
0.773727
2138d56902008443931adce655950b8f1a390479
220
py
Python
weddingwebsite/wedding/management/commands/clear_cache.py
igbt6/WeddingWebsite
5d9f1cdac3ca269e49bd30334148e08cf9133987
[ "MIT" ]
1
2018-07-09T13:09:37.000Z
2018-07-09T13:09:37.000Z
weddingwebsite/wedding/management/commands/clear_cache.py
igbt6/WeddingWebsite
5d9f1cdac3ca269e49bd30334148e08cf9133987
[ "MIT" ]
1
2018-07-28T19:57:10.000Z
2018-07-28T19:57:10.000Z
weddingwebsite/wedding/management/commands/clear_cache.py
igbt6/WeddingWebsite
5d9f1cdac3ca269e49bd30334148e08cf9133987
[ "MIT" ]
null
null
null
from django.core.management import BaseCommand from django.core.cache import cache class Command(BaseCommand): def handle(self, *args, **kwargs): cache.clear() self.stdout.write('Cleared cache\n')
22
46
0.704545
2138e0feafa24ed23a96016e9bcd717672d51369
75,865
py
Python
exiot.py
pestanko/pysett
e25051b89ca1218747091a063dad6008af987814
[ "MIT" ]
1
2021-07-28T10:50:04.000Z
2021-07-28T10:50:04.000Z
exiot.py
pestanko/pysett
e25051b89ca1218747091a063dad6008af987814
[ "MIT" ]
null
null
null
exiot.py
pestanko/pysett
e25051b89ca1218747091a063dad6008af987814
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ Executable I/O Testing Tool (exiot), The "exiot" is a testing tool to test the executable STDIN, STDOUT, STDERR, and many more. Tool is parsing provided test scenarios using multiple parsers. Authors: - Peter Stanko <peter.stanko0@gmail.com> """ import abc import argparse import base64 imp...
32.42094
104
0.580676
21390800b378cc11e43f3ee9331b119272d7d4c8
6,271
py
Python
source/job-builder/m2c2-job-builder/protocol/m2c2_prot_keys.py
guikcd/machine-to-cloud-connectivity-framework
83de873d4df58224f73c6263239681fdd5246186
[ "Apache-2.0", "MIT" ]
null
null
null
source/job-builder/m2c2-job-builder/protocol/m2c2_prot_keys.py
guikcd/machine-to-cloud-connectivity-framework
83de873d4df58224f73c6263239681fdd5246186
[ "Apache-2.0", "MIT" ]
null
null
null
source/job-builder/m2c2-job-builder/protocol/m2c2_prot_keys.py
guikcd/machine-to-cloud-connectivity-framework
83de873d4df58224f73c6263239681fdd5246186
[ "Apache-2.0", "MIT" ]
null
null
null
## Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. ## SPDX-License-Identifier: Apache-2.0 import logging logger = logging.getLogger() logger.setLevel(logging.INFO) def get(metadata, user_job_request, index, protocol): try: if protocol == "opcda": if metadata == "site-n...
66.010526
141
0.603731
213929da6e63b001abbbb21866712e7049af9dc2
13,011
py
Python
workflows/pipe-common/pipeline/autoscaling/utils.py
cmbkoko1989/cloud-pipeline
9af1218151ef02f87915726eb92c0cc626f7ab11
[ "Apache-2.0" ]
null
null
null
workflows/pipe-common/pipeline/autoscaling/utils.py
cmbkoko1989/cloud-pipeline
9af1218151ef02f87915726eb92c0cc626f7ab11
[ "Apache-2.0" ]
null
null
null
workflows/pipe-common/pipeline/autoscaling/utils.py
cmbkoko1989/cloud-pipeline
9af1218151ef02f87915726eb92c0cc626f7ab11
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2020 EPAM Systems, Inc. (https://www.epam.com/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.646575
120
0.676581
21395fc4a9fc8d6c9ab3ee7190d32b1360b8812b
2,246
py
Python
setup.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
null
null
null
setup.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
14
2019-03-13T12:19:12.000Z
2019-03-19T17:37:08.000Z
setup.py
joffilyfe/document-store-migracao
b5125b7aedec56f0e8787900bdfd124aaf65e3e3
[ "BSD-2-Clause" ]
3
2019-03-12T18:55:55.000Z
2019-03-20T18:38:02.000Z
#!/usr/bin/env python3 import os, setuptools here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, "README.md")) as f: README = f.read() with open(os.path.join(here, "CHANGES.txt")) as f: CHANGES = f.read() requires = [ "pyramid", "pyramid_jinja2", "pyramid_debugtoolbar", ...
28.794872
122
0.62333
2139679fe65bbf9cb6c052a76584eeaf0a9d3173
1,213
py
Python
gremlinclient/tornado_client/remote_connection.py
davebshow/gremlinclient
445677732400eab0d1d8a1c6006981a26527b0e2
[ "MIT" ]
32
2015-11-01T11:08:33.000Z
2021-05-09T05:42:07.000Z
gremlinclient/tornado_client/remote_connection.py
daveopsX/gremlinclient
445677732400eab0d1d8a1c6006981a26527b0e2
[ "MIT" ]
14
2015-10-19T14:04:27.000Z
2017-09-13T19:32:33.000Z
gremlinclient/tornado_client/remote_connection.py
daveopsX/gremlinclient
445677732400eab0d1d8a1c6006981a26527b0e2
[ "MIT" ]
10
2015-10-30T00:07:26.000Z
2021-05-17T17:58:14.000Z
from tornado import gen from tornado.ioloop import IOLoop from gremlinclient.tornado_client.client import Pool try: from gremlin_driver import RemoteConnection, Traverser except ImportError: raise ImportError("Please install gremlinpython to use RemoteConnection") class RemoteConnection(RemoteConnection): ...
31.102564
77
0.651278
2139683fc98ffd323894376d5a3b179ecf30ccb1
15,346
py
Python
app/routes.py
freeotaku/whoogle-search
966405c27466448e08b1ff559e785e95d736fb9f
[ "MIT" ]
null
null
null
app/routes.py
freeotaku/whoogle-search
966405c27466448e08b1ff559e785e95d736fb9f
[ "MIT" ]
null
null
null
app/routes.py
freeotaku/whoogle-search
966405c27466448e08b1ff559e785e95d736fb9f
[ "MIT" ]
null
null
null
import argparse import base64 import io import json import pickle import urllib.parse as urlparse import uuid from functools import wraps import waitress from app import app from app.models.config import Config from app.request import Request, TorError from app.utils.bangs import resolve_bang from app.utils.misc impor...
33.87638
79
0.622247
2139b4ca0e1adf9e2df33083bae22793440998c1
1,129
py
Python
mi/dataset/driver/flntu_x/mmp_cds/test/test_flcdr_x_mmp_cds_recovered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/driver/flntu_x/mmp_cds/test/test_flcdr_x_mmp_cds_recovered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/driver/flntu_x/mmp_cds/test/test_flcdr_x_mmp_cds_recovered_driver.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
#!/home/mworden/uframes/ooi/uframe-1.0/python/bin/python __author__ = 'Jeff Roy' from mi.core.log import get_logger log = get_logger() from mi.idk.config import Config import unittest import os from mi.dataset.driver.flntu_x.mmp_cds.flcdr_x_mmp_cds_recovered_driver import parse from mi.dataset.dataset_driver impor...
26.255814
99
0.677591
2139b5c33db69a7ffbdebee74e5824928004b407
3,762
py
Python
tensorflow/contrib/data/python/kernel_tests/serialization/dataset_constructor_serialization_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/data/python/kernel_tests/serialization/dataset_constructor_serialization_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/data/python/kernel_tests/serialization/dataset_constructor_serialization_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.1875
101
0.678628
2139c9c20930fbddac056d9b4b1633839f0851da
1,744
py
Python
reliabilly/components/tools/task_management_client.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2018-11-24T02:07:37.000Z
2018-11-24T02:07:37.000Z
reliabilly/components/tools/task_management_client.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-23T07:12:30.000Z
2019-01-23T07:12:30.000Z
reliabilly/components/tools/task_management_client.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-16T05:30:49.000Z
2019-01-16T05:30:49.000Z
import sys from jira import JIRA, JIRAError from reliabilly.settings import Constants PROJECT_NAME = 'reliabilly' def get_default_task_client(user, token, baseurl=Constants.TASK_MANAGEMENT_URL_DEFAULT): client = None try: client = JIRA(baseurl, basic_auth=(user, token)) except JIRAError as ex: ...
28.590164
92
0.647936
2139d7e0ba73c502fc7dfbd340a5f25a19bded11
1,312
py
Python
utils/normalization.py
kushalkolar/NuSeT
cea354634fe432027f5103752f323791b78e3afe
[ "MIT" ]
18
2019-10-17T23:47:03.000Z
2022-03-28T14:37:02.000Z
utils/normalization.py
kushalkolar/NuSeT
cea354634fe432027f5103752f323791b78e3afe
[ "MIT" ]
4
2020-08-18T20:02:03.000Z
2022-02-23T00:16:45.000Z
utils/normalization.py
kushalkolar/NuSeT
cea354634fe432027f5103752f323791b78e3afe
[ "MIT" ]
8
2019-11-22T06:20:57.000Z
2021-11-08T20:32:57.000Z
import numpy as np from skimage import morphology def remove_values_from_list(the_list, val): return [value for value in the_list if value != val] def whole_image_norm(image): return (image - np.mean(image)) / np.std(image) def foreground_norm(image, mask): foreground = image * mask ...
35.459459
87
0.71189
213a090dc24036f609bea96c481683babddeb72d
1,900
py
Python
kungfu_experiment/policy/gns_policy.py
luomai/models
9c8ce5904b44a8e68731f3f0d79c062a87fc1f84
[ "Apache-2.0" ]
null
null
null
kungfu_experiment/policy/gns_policy.py
luomai/models
9c8ce5904b44a8e68731f3f0d79c062a87fc1f84
[ "Apache-2.0" ]
null
null
null
kungfu_experiment/policy/gns_policy.py
luomai/models
9c8ce5904b44a8e68731f3f0d79c062a87fc1f84
[ "Apache-2.0" ]
1
2020-05-05T01:52:30.000Z
2020-05-05T01:52:30.000Z
import kungfu.tensorflow as kf import tensorflow as tf from kungfu.python import current_cluster_size from kungfu.tensorflow.ops import all_reduce from kungfu.tensorflow.policy import BasePolicy from kungfu.utils import EMA class GNSPolicy(BasePolicy): def __init__(self, init_batch_size): self._ratio_ema ...
33.928571
78
0.628947
213a16030b9fc9f41334ee0cc3133c8bf80e2406
3,712
py
Python
intersight/models/hyperflex_server_model_entry_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hyperflex_server_model_entry_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hyperflex_server_model_entry_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class HyperflexServerModelEntryRef(object): """ NOT...
24.746667
81
0.554149