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
f3d9183252e3ed19e447b3ee21c5ef14aff3da24
329
py
Python
django_unical_bootstrap_italia/urls.py
UniversitaDellaCalabria/django-unical-bootstrap-italia
7130a675956d20ad065616eaa95418746a01e6d7
[ "BSD-3-Clause" ]
1
2022-02-25T14:23:00.000Z
2022-02-25T14:23:00.000Z
django_unical_bootstrap_italia/urls.py
UniversitaDellaCalabria/django-unical-bootstrap-italia
7130a675956d20ad065616eaa95418746a01e6d7
[ "BSD-3-Clause" ]
1
2020-10-31T15:10:56.000Z
2020-10-31T15:10:56.000Z
django_unical_bootstrap_italia/urls.py
UniversitaDellaCalabria/django-unical-bootstrap-italia
7130a675956d20ad065616eaa95418746a01e6d7
[ "BSD-3-Clause" ]
2
2019-06-07T12:20:30.000Z
2019-09-20T14:13:39.000Z
""" agid_template URL Configuration """ from django.conf import settings from django.conf.urls.static import static from django.urls import path from .views import * app_name="django_unical_bootstrap_italia" urlpatterns = [ path('', index, name='index'), ] + static(settings.MEDIA_URL, document_root=settings.MED...
20.5625
65
0.768997
72260600439e0b62a0c9c61c60f752f90a665aa2
1,195
py
Python
fed_distill/fed/splitter.py
Ahmedjjj/dataset-distillation
f2e4267d070c7fb8e50476297e95638f351b76d6
[ "MIT" ]
null
null
null
fed_distill/fed/splitter.py
Ahmedjjj/dataset-distillation
f2e4267d070c7fb8e50476297e95638f351b76d6
[ "MIT" ]
null
null
null
fed_distill/fed/splitter.py
Ahmedjjj/dataset-distillation
f2e4267d070c7fb8e50476297e95638f351b76d6
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import List from torch.utils.data import Dataset, Subset import numpy as np class DataSplitter(ABC): @abstractmethod def split(self, num_nodes: int) -> List[Dataset]: raise NotImplementedError class HeterogenousDistribution(DataSplitter): def __ini...
33.194444
75
0.671967
c8b2d295d26eac4b473ce142e529bb56ce185907
6,164
py
Python
numeric_numpad.py
pmcloete/numpad
5ab86ecd9d9d8778ba2807250219b78eab6d5df5
[ "MIT" ]
null
null
null
numeric_numpad.py
pmcloete/numpad
5ab86ecd9d9d8778ba2807250219b78eab6d5df5
[ "MIT" ]
null
null
null
numeric_numpad.py
pmcloete/numpad
5ab86ecd9d9d8778ba2807250219b78eab6d5df5
[ "MIT" ]
null
null
null
import PySimpleGUI as sg from PySimpleGUI.PySimpleGUI import DEFAULT_BASE64_ICON, DEFAULT_BASE64_ICON_16_BY_16, ICON_BUY_ME_A_COFFEE, InputText, set_global_icon from themes import Themes class Numpad: """Creates a numpad""" def __init__(self): """Initialize the keypad""" # GUI Instance ...
39.012658
148
0.503569
13410916e1afe5382590875fa339b9e07e13ea17
1,965
py
Python
parser/push_todb.py
DmitriyKhodykin/HunterHH
f27a56348fa47088fd520323a9e167118cf79d1c
[ "MIT" ]
1
2020-04-13T08:16:11.000Z
2020-04-13T08:16:11.000Z
parser/push_todb.py
DmitriyKhodykin/HunterHH
f27a56348fa47088fd520323a9e167118cf79d1c
[ "MIT" ]
null
null
null
parser/push_todb.py
DmitriyKhodykin/HunterHH
f27a56348fa47088fd520323a9e167118cf79d1c
[ "MIT" ]
1
2020-04-10T10:48:39.000Z
2020-04-10T10:48:39.000Z
# Module for Pushing parsed data into a local database from hh_parser import Parser import MySQLdb # pip install mysqlclient import time import auth def pusher(): """Push parsed data into a local db""" url = f'https://hh.ru/search/resume?L_is_autosearch=false&area={113}\ &clusters=true&exp_peri...
31.693548
118
0.601527
767e288bf00c8812de932aa6dc32ad23931e6e14
469
py
Python
ebc/pauta/skins/ebc_pauta_custom_templates/getPautasCafe.py
lflrocha/ebc.pauta
1a77e9f47e22b60af88cf23f492a8b47ddfd27b6
[ "Unlicense" ]
null
null
null
ebc/pauta/skins/ebc_pauta_custom_templates/getPautasCafe.py
lflrocha/ebc.pauta
1a77e9f47e22b60af88cf23f492a8b47ddfd27b6
[ "Unlicense" ]
null
null
null
ebc/pauta/skins/ebc_pauta_custom_templates/getPautasCafe.py
lflrocha/ebc.pauta
1a77e9f47e22b60af88cf23f492a8b47ddfd27b6
[ "Unlicense" ]
null
null
null
## Script (Python) "getPautasCafe" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title=Retorna a lista de pautas do Cafe pautas = context.portal_catalog.searchResults(portal_type='Pauta', \ ...
27.588235
68
0.586354
d627b49c169373f82d4112d7a6a5a9690250116d
10,842
py
Python
cp2k_input_tools/preprocessor.py
cp2k/cp2k-input-tools
33b876c6ee133d12594c96980e675736884d0d2e
[ "MIT" ]
12
2020-05-28T17:52:44.000Z
2022-02-19T13:26:25.000Z
cp2k_input_tools/preprocessor.py
cp2k/cp2k-input-tools
33b876c6ee133d12594c96980e675736884d0d2e
[ "MIT" ]
27
2020-03-26T07:50:09.000Z
2022-03-25T10:16:28.000Z
cp2k_input_tools/preprocessor.py
cp2k/cp2k-input-tools
33b876c6ee133d12594c96980e675736884d0d2e
[ "MIT" ]
5
2020-08-24T07:23:07.000Z
2022-02-19T13:26:26.000Z
import re from collections import defaultdict from collections.abc import Iterator from pathlib import Path from typing import NamedTuple, Sequence from .lineiterator import MultiFileLineIterator from .parser_errors import PreprocessorError from .tokenizer import COMMENT_CHARS, Context, TokenizerError, tokenize clas...
37.645833
113
0.573141
3c979bed5eb549d4c954cf4a0e4aea1993624fea
65
py
Python
__init__.py
rocheparadox/IMU-MPU6050
a5bb3ddeafcde48589edcfd6652b1936f0b6ddcb
[ "MIT" ]
null
null
null
__init__.py
rocheparadox/IMU-MPU6050
a5bb3ddeafcde48589edcfd6652b1936f0b6ddcb
[ "MIT" ]
null
null
null
__init__.py
rocheparadox/IMU-MPU6050
a5bb3ddeafcde48589edcfd6652b1936f0b6ddcb
[ "MIT" ]
null
null
null
#Author : Roche Christopher #File created on 22 Jul 2019 9:52 PM
21.666667
36
0.753846
3b88ed5e46008809de3273d4c22597af08276f49
1,181
py
Python
generators/thrsend.py
Chyi341152/chyi-book
ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb
[ "MIT" ]
null
null
null
generators/thrsend.py
Chyi341152/chyi-book
ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb
[ "MIT" ]
null
null
null
generators/thrsend.py
Chyi341152/chyi-book
ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb
[ "MIT" ]
null
null
null
# thrsend.py # # Send items to consumer threads from queue import Queue import threading class ConsumerThread(threading.Thread): def __init__(self,target): threading.Thread.__init__(self) self.setDaemon(True) self.in_queue = Queue.Queue() self.target = target def send(self,item):...
24.102041
57
0.584251
15fd72c960ca9b87507552d07692b364fa1b92fd
2,614
py
Python
scripts/write_NAICS_07_to_17_Crosswalk.py
ericmbell1/flowsa
d251301864289a4de42dda118c9c6da41bcf4cf0
[ "CC0-1.0" ]
null
null
null
scripts/write_NAICS_07_to_17_Crosswalk.py
ericmbell1/flowsa
d251301864289a4de42dda118c9c6da41bcf4cf0
[ "CC0-1.0" ]
null
null
null
scripts/write_NAICS_07_to_17_Crosswalk.py
ericmbell1/flowsa
d251301864289a4de42dda118c9c6da41bcf4cf0
[ "CC0-1.0" ]
null
null
null
# write_NAICS_from_Census.py (scripts) # !/usr/bin/env python3 # coding=utf-8 """ Uses a csv file manually loaded, originally from USEEIOR (4/18/2020), to form base NAICS crosswalk from 2007-2017 Loops through the source crosswalks to find any NAICS not in offical Census NAICS Code list. Adds the additional NAICS to ...
37.342857
118
0.760903
80c48777966036a4000f0707172602b24da98d87
10,543
py
Python
ucb_api/python_client/swagger_client/models/options6.py
educup/ucb-python-api
4b3532be465afe6480b7e362e8942ff67b95633b
[ "MIT" ]
1
2020-09-12T03:15:35.000Z
2020-09-12T03:15:35.000Z
ucb_api/python_client/swagger_client/models/options6.py
70nybl4nc0/ucb-python-api
9e6020436b7ca65667ed581dd91d2f8ad0674b91
[ "MIT" ]
null
null
null
ucb_api/python_client/swagger_client/models/options6.py
70nybl4nc0/ucb-python-api
9e6020436b7ca65667ed581dd91d2f8ad0674b91
[ "MIT" ]
1
2020-09-12T02:57:22.000Z
2020-09-12T02:57:22.000Z
# coding: utf-8 """ Unity Cloud Build This API is intended to be used in conjunction with the Unity Cloud Build service. A tool for building your Unity projects in the Cloud. See https://developer.cloud.unity3d.com for more information. ## Making requests This website is built to allow requests to be made a...
46.241228
4,140
0.656834
429e79bacde841450aeaa7660d8a56ee96040471
2,388
py
Python
notbook/__init__.py
samuelcolvin/notbook
a26b5519029cde6999de5e78eb89ae1c833c1a42
[ "MIT" ]
52
2020-05-10T18:26:44.000Z
2021-02-27T00:01:43.000Z
notbook/__init__.py
samuelcolvin/notbook
a26b5519029cde6999de5e78eb89ae1c833c1a42
[ "MIT" ]
2
2020-05-11T13:23:10.000Z
2020-05-16T10:32:46.000Z
notbook/__init__.py
samuelcolvin/notbook
a26b5519029cde6999de5e78eb89ae1c833c1a42
[ "MIT" ]
2
2020-05-11T13:10:16.000Z
2021-08-02T16:13:56.000Z
import inspect from types import FrameType from . import context from .models import PlotBlock try: from bokeh import plotting as bokeh_plotting from bokeh.embed import file_html as bokeh_file_html from bokeh.plotting import Figure as BokehFigure except ImportError: bokeh_plotting = None __all__ = ('...
35.117647
73
0.647404
6cd4f48c0ba846d62106b30b88280a2e681571c4
912
py
Python
tests/generate_key_pairs.py
link-money/distribution_robot-master
4c35d80b8b74b6549529d147277981d593a24402
[ "MIT" ]
null
null
null
tests/generate_key_pairs.py
link-money/distribution_robot-master
4c35d80b8b74b6549529d147277981d593a24402
[ "MIT" ]
null
null
null
tests/generate_key_pairs.py
link-money/distribution_robot-master
4c35d80b8b74b6549529d147277981d593a24402
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import sqlite3 from stellar_base.address import * from wrapper.encryption import * # global variables: __key,__iv=generate_random_key_pair() f=open('../test.test', 'w') f.write('key:' + __key + '\niv:'+ __iv) f.close() pc = prpcrypt(__key, __iv) # 初始化密钥 和 iv # 连接sqlite conn = sqlite3.connect...
20.727273
97
0.689693
918982123e15a2f3645a46a4f1beaff65f466521
1,926
py
Python
run.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
34
2016-10-26T17:19:23.000Z
2020-04-30T09:12:34.000Z
run.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
2
2019-04-09T11:50:38.000Z
2019-07-05T03:31:57.000Z
run.py
admiralobvious/falcon-boilerplate
eb076ff9e1d6fb1e537b18f86d2228afbf123e19
[ "MIT" ]
12
2017-01-14T09:40:24.000Z
2020-04-16T07:40:56.000Z
from gevent import monkey monkey.patch_all() import logging import multiprocessing import falcon import gunicorn.app.base from app import configure, create_app, start from app.config import settings class Application(gunicorn.app.base.BaseApplication): def __init__(self, app, options=None): self.optio...
26.75
67
0.627207
4a1bbb894ac6a047c11cb8ce7e34177f1bef1449
615
py
Python
setup.py
TravisJRCain/lambdata-zmurray
61a906c896ec629e2cd486b300b04921159840da
[ "MIT" ]
null
null
null
setup.py
TravisJRCain/lambdata-zmurray
61a906c896ec629e2cd486b300b04921159840da
[ "MIT" ]
null
null
null
setup.py
TravisJRCain/lambdata-zmurray
61a906c896ec629e2cd486b300b04921159840da
[ "MIT" ]
null
null
null
# setup.py file from setuptools import find_packages, setup with open("README.md", "r") as fh: long_description = fh.read() setup( name="lambdata-zmurray", # the name that you will install via pip version="1.2", author="Zack Murray", author_email="zachery.murray@gmail.com", description="A sho...
30.75
94
0.700813
b1bf7826ebf9fece2b5f756a2c8dbd6b3242e9ec
183,176
py
Python
Tools/clinic/clinic.py
chexca/cpython
cfc6ce4d40f2f01314b7e283fb972a7bb3ed3faa
[ "CNRI-Python-GPL-Compatible" ]
2
2020-06-22T07:22:12.000Z
2020-09-29T06:33:22.000Z
Tools/clinic/clinic.py
chexca/cpython
cfc6ce4d40f2f01314b7e283fb972a7bb3ed3faa
[ "CNRI-Python-GPL-Compatible" ]
1
2020-10-05T12:20:06.000Z
2020-10-05T12:23:05.000Z
Tools/clinic/clinic.py
chexca/cpython
cfc6ce4d40f2f01314b7e283fb972a7bb3ed3faa
[ "CNRI-Python-GPL-Compatible" ]
1
2020-10-05T11:42:31.000Z
2020-10-05T11:42:31.000Z
#!/usr/bin/env python3 # # Argument Clinic # Copyright 2012-2013 by Larry Hastings. # Licensed to the PSF under a contributor agreement. # import abc import ast import collections import contextlib import copy import cpp import functools import hashlib import inspect import io import itertools import os import pprint ...
36.193638
163
0.565156
5447d098a54cc47f7d8a89ce1863f41998698878
3,356
py
Python
analyzing_datasets/general/changing_timestamps.py
julio-navarro-lara/thesis_scripts
dab1faabd6004389aadb082d63b10bae848bf1c8
[ "Apache-2.0" ]
2
2020-09-25T16:34:43.000Z
2021-07-05T06:38:18.000Z
analyzing_datasets/general/changing_timestamps.py
julio-navarro-lara/thesis_scripts
dab1faabd6004389aadb082d63b10bae848bf1c8
[ "Apache-2.0" ]
null
null
null
analyzing_datasets/general/changing_timestamps.py
julio-navarro-lara/thesis_scripts
dab1faabd6004389aadb082d63b10bae848bf1c8
[ "Apache-2.0" ]
null
null
null
#Copyright 2019 Julio Navarro #Built at the University of Strasbourg (France). CSTB team @ ICube laboratory #17/01/2019 #Script to change the timestamps in the dataset for a sequence import sys import csv from datetime import datetime import time import math number_fields_input = 13 number_fields_output = 13 #input_p...
27.064516
107
0.723778
565cc4321609f7b9a3984b3debda2d5d8b5de88a
1,271
py
Python
tests/adapters/test_visa.py
NeoBeats/pymeasure
e48f9d679d6ee970e2e875d2fc9a5679378b07aa
[ "MIT" ]
null
null
null
tests/adapters/test_visa.py
NeoBeats/pymeasure
e48f9d679d6ee970e2e875d2fc9a5679378b07aa
[ "MIT" ]
null
null
null
tests/adapters/test_visa.py
NeoBeats/pymeasure
e48f9d679d6ee970e2e875d2fc9a5679378b07aa
[ "MIT" ]
null
null
null
# # This file is part of the PyMeasure package. # # Copyright (c) 2013-2020 PyMeasure Developers # # 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 limit...
43.827586
79
0.782061
c0c0a1959fc3a09dd181717ac6f70bd758d9e279
51,384
py
Python
detectron2/modeling/backbone/fpnmine.py
c-rbp/panoptic_segmentation
aa212d1d6e851857e0b9563bb94fe7297c987c1a
[ "Apache-2.0" ]
null
null
null
detectron2/modeling/backbone/fpnmine.py
c-rbp/panoptic_segmentation
aa212d1d6e851857e0b9563bb94fe7297c987c1a
[ "Apache-2.0" ]
1
2021-08-23T08:04:48.000Z
2021-08-23T08:04:48.000Z
detectron2/modeling/backbone/fpnmine.py
c-rbp/panoptic_segmentation
aa212d1d6e851857e0b9563bb94fe7297c987c1a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import math import fvcore.nn.weight_init as weight_init import torch import torch.nn.functional as F from torch import nn from detectron2.layers import Conv2d, ShapeSpec, get_norm from .rnns import hConvGRUCell, tdConvGRUCell , RBPFun, CBP_penalty ...
38.663657
102
0.560933
6567646669fc2e550176f0fa826e19590d429cf4
3,481
py
Python
python/pitft/Stoner.py
sophiathekitty/micro_display
8459221a12dbf36f934b49f0b8c008d07922b2c6
[ "MIT" ]
1
2021-11-30T07:24:29.000Z
2021-11-30T07:24:29.000Z
python/pitft/Stoner.py
sophiathekitty/micro_display
8459221a12dbf36f934b49f0b8c008d07922b2c6
[ "MIT" ]
1
2022-01-08T22:45:25.000Z
2022-01-11T00:15:02.000Z
python/pitft/Stoner.py
sophiathekitty/micro_display
8459221a12dbf36f934b49f0b8c008d07922b2c6
[ "MIT" ]
null
null
null
import time import datetime import digitalio import board from adafruit_rgb_display.rgb import color565 import adafruit_rgb_display.st7789 as st7789 from PIL import Image, ImageDraw, ImageFont import urllib.request import json class Stoner: def __init__(self): self.font_big = ImageFont.truetype("/var/ww...
40.952941
223
0.579144
7048e3230145c59843683c72c2d2735a74e6634e
375
py
Python
robots/build/upper_14_back/catkin_generated/pkg.develspace.context.pc.py
eiphy/lita
262d6ccabde8467db47278dc39574e5ea34abda2
[ "BSD-3-Clause" ]
4
2019-01-11T02:56:06.000Z
2019-03-27T14:26:25.000Z
robots/build/upper_14_back/catkin_generated/pkg.develspace.context.pc.py
eiphy/lita
262d6ccabde8467db47278dc39574e5ea34abda2
[ "BSD-3-Clause" ]
5
2019-01-10T11:18:54.000Z
2019-03-03T09:33:40.000Z
robots/build/upper_14_back/catkin_generated/pkg.develspace.context.pc.py
eiphy/lita
262d6ccabde8467db47278dc39574e5ea34abda2
[ "BSD-3-Clause" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "upper_14" PROJECT_SPACE_DIR = "/home/...
41.666667
68
0.701333
d306afbe653f8522053df8d275337493385dde68
750
py
Python
setup.py
amadev/airship-promenade
91989a7481af1691f2386d90899c050aa2a7f93f
[ "Apache-2.0" ]
null
null
null
setup.py
amadev/airship-promenade
91989a7481af1691f2386d90899c050aa2a7f93f
[ "Apache-2.0" ]
1
2021-04-30T20:38:26.000Z
2021-04-30T20:38:26.000Z
setup.py
michal2novak/airship-promenade
b268029e4a812ca20ac9820d1ccdc75217295fec
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 AT&T Intellectual Property. All other 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-...
32.608696
74
0.745333
01aecb5c979667063246ce5e7d60ff312d4a0d36
4,911
py
Python
meta.py
twuilliam/shrec-sketches-helpers
ae208e0fc514abeb0312eae6c389c6a86a3ffde1
[ "MIT" ]
5
2021-07-30T09:10:30.000Z
2022-02-10T09:19:17.000Z
meta.py
FutureXZC/shrec-sketches-helpers
4fed67ae74a9561672a88e6b0ab571cebd50b688
[ "MIT" ]
1
2021-03-18T02:44:46.000Z
2021-03-18T08:53:05.000Z
meta.py
FutureXZC/shrec-sketches-helpers
4fed67ae74a9561672a88e6b0ab571cebd50b688
[ "MIT" ]
2
2020-11-07T12:05:33.000Z
2022-02-11T06:52:50.000Z
import argparse import os import numpy as np import pandas as pd def config(): parser = argparse.ArgumentParser(description='SHREC meta') parser.add_argument('--data_dir', type=str, required=True, help='data folder path') parser.add_a...
31.88961
86
0.577886
21c35215abba7aa724771409646e09586a78847a
391
py
Python
userapi/wsgi.py
apuc/django-rest-framework
863f2dcca5f2a677ac0e477fc704cc54cd9a53f8
[ "MIT" ]
null
null
null
userapi/wsgi.py
apuc/django-rest-framework
863f2dcca5f2a677ac0e477fc704cc54cd9a53f8
[ "MIT" ]
6
2021-03-30T14:08:14.000Z
2021-09-08T02:21:23.000Z
userapi/wsgi.py
apuc/django-rest-framework
863f2dcca5f2a677ac0e477fc704cc54cd9a53f8
[ "MIT" ]
null
null
null
""" WSGI config for userapi project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
48922d6d17d814db7dc985c75e11a63fb7ffc75d
923
py
Python
configs/selfsup/relative_loc/relative-loc_resnet50_8xb64-steplr-70e_in1k.py
mitming/mmselfsup
5b5cb474776291cfcb9a1140afd11b696e11fcab
[ "Apache-2.0" ]
355
2021-12-16T04:32:49.000Z
2022-03-31T22:15:23.000Z
configs/selfsup/relative_loc/relative-loc_resnet50_8xb64-steplr-70e_in1k.py
mitming/mmselfsup
5b5cb474776291cfcb9a1140afd11b696e11fcab
[ "Apache-2.0" ]
89
2021-12-16T05:15:42.000Z
2022-03-31T10:57:39.000Z
configs/selfsup/relative_loc/relative-loc_resnet50_8xb64-steplr-70e_in1k.py
mitming/mmselfsup
5b5cb474776291cfcb9a1140afd11b696e11fcab
[ "Apache-2.0" ]
74
2021-12-16T04:40:02.000Z
2022-03-31T08:40:32.000Z
_base_ = [ '../_base_/models/relative-loc.py', '../_base_/datasets/imagenet_relative-loc.py', '../_base_/schedules/sgd_steplr-200e_in1k.py', '../_base_/default_runtime.py', ] # optimizer optimizer = dict( type='SGD', lr=0.2, weight_decay=1e-4, momentum=0.9, paramwise_options={ ...
27.147059
75
0.671723
5ce666849b23cc852aaea973adff39ad0785f9dd
303
py
Python
exercises/superheros.py
tamara19-meet/y2s18-python_review
d0d1e67e5620d1360f64b7a6f699a944d56fbf5f
[ "MIT" ]
null
null
null
exercises/superheros.py
tamara19-meet/y2s18-python_review
d0d1e67e5620d1360f64b7a6f699a944d56fbf5f
[ "MIT" ]
null
null
null
exercises/superheros.py
tamara19-meet/y2s18-python_review
d0d1e67e5620d1360f64b7a6f699a944d56fbf5f
[ "MIT" ]
null
null
null
# Write your solutions for 1.5 here! class superheroes: def __int__(self, name, superpower, strength): self.name=name self.superpower=superpower self.strength=strength def print_me(self): print(self.name +str( self.strength)) superhero = superheroes("tamara","fly", 10) superhero.print_me()
23.307692
47
0.745875
e32231c6fa5dade60c0aa822a230284f163e0972
124,769
py
Python
tensorflow/python/kernel_tests/lookup_ops_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
4
2020-09-23T01:20:01.000Z
2022-03-08T06:09:29.000Z
tensorflow/python/kernel_tests/lookup_ops_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
59
2019-06-17T09:37:49.000Z
2022-01-19T01:21:34.000Z
tensorflow/python/kernel_tests/lookup_ops_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
2
2020-03-25T12:52:20.000Z
2020-08-11T09:31:43.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.836845
80
0.661494
4167024a2b9107d4588772e4f0467fdcb2779091
13,839
py
Python
twisted/words/test/test_jabbercomponent.py
twonds/twisted
d6e270a465d371c3bed01bf369af497b77eb9f1e
[ "Unlicense", "MIT" ]
1
2021-01-27T19:11:21.000Z
2021-01-27T19:11:21.000Z
twisted/words/test/test_jabbercomponent.py
twonds/twisted
d6e270a465d371c3bed01bf369af497b77eb9f1e
[ "Unlicense", "MIT" ]
null
null
null
twisted/words/test/test_jabbercomponent.py
twonds/twisted
d6e270a465d371c3bed01bf369af497b77eb9f1e
[ "Unlicense", "MIT" ]
3
2017-01-04T01:24:15.000Z
2020-06-18T16:14:56.000Z
# Copyright (c) 2001-2008 Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.words.protocols.jabber.component} """ from twisted.python import failure from twisted.python.hashlib import sha1 from twisted.trial import unittest from twisted.words.protocols.jabber import component, xmlstream ...
32.716312
145
0.633861
af3cb186f9ab2913c4969b1a5a7d85c2e5bb292e
26,722
py
Python
tests/test_writable_nested_model_serializer.py
d1opensource/drf-writable-nested
81839646011c38d233e3aa66c93bf1a7085883ba
[ "BSD-2-Clause" ]
null
null
null
tests/test_writable_nested_model_serializer.py
d1opensource/drf-writable-nested
81839646011c38d233e3aa66c93bf1a7085883ba
[ "BSD-2-Clause" ]
1
2017-12-08T22:54:02.000Z
2017-12-08T23:00:06.000Z
tests/test_writable_nested_model_serializer.py
d1opensource/drf-writable-nested
81839646011c38d233e3aa66c93bf1a7085883ba
[ "BSD-2-Clause" ]
1
2020-03-15T19:34:32.000Z
2020-03-15T19:34:32.000Z
import uuid from rest_framework.exceptions import ValidationError from django.test import TestCase from django.http.request import QueryDict from . import ( models, serializers, ) class WritableNestedModelSerializerTest(TestCase): def get_initial_data(self): return { 'username': 'test...
36.455662
80
0.547339
79c4dd93143fa8ecfe711491a8026fb2c505179a
7,891
py
Python
statsmodels/duration/tests/test_survfunc.py
amitmse/statsmodels
54d6c2b6821b79d3c28c04f66bd981b1ae4f5f29
[ "BSD-3-Clause" ]
1
2015-07-26T19:34:17.000Z
2015-07-26T19:34:17.000Z
statsmodels/duration/tests/test_survfunc.py
gef756/statsmodels
c09c1b871ddb50378ff8c54405e2117c13e64a85
[ "BSD-3-Clause" ]
null
null
null
statsmodels/duration/tests/test_survfunc.py
gef756/statsmodels
c09c1b871ddb50378ff8c54405e2117c13e64a85
[ "BSD-3-Clause" ]
1
2021-11-22T22:08:58.000Z
2021-11-22T22:08:58.000Z
import numpy as np from statsmodels.duration.survfunc import SurvfuncRight, survdiff, plot_survfunc from numpy.testing import assert_allclose from numpy.testing import dec import pandas as pd import os # If true, the output is written to a multi-page pdf file. pdf_output = False try: import matplotlib.pyplot as p...
32.742739
116
0.633633
4a572ccd8583fd7c42858fb304a6a36a5f579a68
1,327
py
Python
savu/test/travis/plugin_tests/loader_tests/nx_monitor_loader_test.py
dtasev/Savu
acb2578c85472e76cb292c4242c1ed2f2332f3e3
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/test/travis/plugin_tests/loader_tests/nx_monitor_loader_test.py
dtasev/Savu
acb2578c85472e76cb292c4242c1ed2f2332f3e3
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/test/travis/plugin_tests/loader_tests/nx_monitor_loader_test.py
DTasev/Savu
acb2578c85472e76cb292c4242c1ed2f2332f3e3
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2014 Diamond Light Source 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 agreed t...
31.595238
76
0.749812
bb4a98f22f718d957e108bd4fa6a766371579925
3,831
py
Python
test/test_quantity.py
keefehuang/c3
1df65bc43d891c7af77c8eff0ef8879b2fe5c3e6
[ "Apache-2.0" ]
45
2020-11-02T13:26:26.000Z
2022-03-20T13:13:42.000Z
test/test_quantity.py
keefehuang/c3
1df65bc43d891c7af77c8eff0ef8879b2fe5c3e6
[ "Apache-2.0" ]
165
2020-10-30T17:20:25.000Z
2022-03-31T12:59:48.000Z
test/test_quantity.py
keefehuang/c3
1df65bc43d891c7af77c8eff0ef8879b2fe5c3e6
[ "Apache-2.0" ]
28
2020-10-21T04:10:26.000Z
2022-02-17T17:44:55.000Z
"""Unit tests for Quantity class""" import hjson import numpy as np import pytest from c3.c3objs import Quantity, hjson_encode amp = Quantity(value=0.0, min_val=-1.0, max_val=+1.0, unit="V") amp_dict = { "value": 0.0, "min_val": -1.0, "max_val": 1.0, "unit": "V", "symbol": "\\alpha", } freq = Qua...
22.803571
82
0.605586
87ec01f4f4fcd08bc7c3cdd2fbd533cc751e8bd3
779
py
Python
var/spack/repos/builtin/packages/pangolin/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/pangolin/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/pangolin/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class Pangolin(CMakePackage): """Pangolin is a lightweight portable rapid development l...
28.851852
73
0.713736
59221067cfd769ae80078f550463a65c20e928b9
3,747
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Geometry/Two_Dimensional/Planform/rescale_non_dimensional.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Geometry/Two_Dimensional/Planform/rescale_non_dimensional.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Geometry/Two_Dimensional/Planform/rescale_non_dimensional.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Planform #rescale_non_dimensional.py # Created : May 2020, E. Botero # Modified: # ---------------------------------------------------------------------- # Imports # ---------------------------------------------------------------------- import SUAVE import numpy as np # -------------------------------...
26.202797
72
0.494796
9f931adb9a1ffdb809cdf3bc9d4dc69da36aac34
4,319
py
Python
scripts/utils/modify_metadata.py
vsevdrob/nft-brownie-ipfs-pinata-hashlips
32080aa0eca2ee3143e1845adf0a246bbe148192
[ "MIT" ]
2
2022-03-06T21:14:58.000Z
2022-03-16T00:22:22.000Z
scripts/utils/modify_metadata.py
webdriedesign/nft-brownie-ipfs-pinata-hashlips
32080aa0eca2ee3143e1845adf0a246bbe148192
[ "MIT" ]
2
2022-03-17T00:53:53.000Z
2022-03-17T00:59:20.000Z
scripts/utils/modify_metadata.py
webdriedesign/nft-brownie-ipfs-pinata-hashlips
32080aa0eca2ee3143e1845adf0a246bbe148192
[ "MIT" ]
1
2022-03-06T21:08:22.000Z
2022-03-06T21:08:22.000Z
from brownie import network from helper_brownie import CHAINS from scripts.utils.pinata import upload_file from scripts.utils.helper import dump_to_json, load_from_json from scripts.utils.config import PATH, PINATA, HASHLIPS from scripts.collectible.config import ( COLLECTION, SPREADSHEET, SINGLE_EDITION_CO...
34.830645
84
0.648761
a92d539a31291e9cd8bcfa41577737679402103e
11,536
py
Python
SystemsReasoner/OrphanFixer.py
buzztoys/MDK
a542ffd9f6dd835e837e3e59af73027c0010d2bb
[ "BSD-3-Clause" ]
null
null
null
SystemsReasoner/OrphanFixer.py
buzztoys/MDK
a542ffd9f6dd835e837e3e59af73027c0010d2bb
[ "BSD-3-Clause" ]
null
null
null
SystemsReasoner/OrphanFixer.py
buzztoys/MDK
a542ffd9f6dd835e837e3e59af73027c0010d2bb
[ "BSD-3-Clause" ]
null
null
null
#Creator: Louise Anderson from java.lang import * from com.nomagic.magicdraw.core import Application from com.nomagic.uml2.ext.jmi.helpers import StereotypesHelper from com.nomagic.magicdraw.openapi.uml import SessionManager from com.nomagic.magicdraw.openapi.uml import ModelElementsManager from com.nomagic.uml2.ext...
51.730942
208
0.614078
3548628d37ef4d69539ec6725c07c2398469e6e8
1,359
py
Python
ecommerce/permissions.py
umarmughal824/micromasters
ea92d3bcea9be4601150fc497302ddacc1161622
[ "BSD-3-Clause" ]
null
null
null
ecommerce/permissions.py
umarmughal824/micromasters
ea92d3bcea9be4601150fc497302ddacc1161622
[ "BSD-3-Clause" ]
5
2021-03-02T01:42:17.000Z
2021-06-10T20:42:02.000Z
ecommerce/permissions.py
umarmughal824/micromasters
ea92d3bcea9be4601150fc497302ddacc1161622
[ "BSD-3-Clause" ]
null
null
null
""" Permission classes for ecommerce """ import logging from rest_framework.permissions import BasePermission from ecommerce.api import generate_cybersource_sa_signature from profiles.api import get_social_username log = logging.getLogger(__name__) class IsSignedByCyberSource(BasePermission): """ Confirms...
27.18
90
0.635026
47ac40c37360c3a0317ffe632a84c65c3ace91dd
1,721
py
Python
hearts/services/player.py
MHeasell/hearts-server
ecaff52803a97f7f250439d60faf50a1872cf38b
[ "MIT" ]
null
null
null
hearts/services/player.py
MHeasell/hearts-server
ecaff52803a97f7f250439d60faf50a1872cf38b
[ "MIT" ]
null
null
null
hearts/services/player.py
MHeasell/hearts-server
ecaff52803a97f7f250439d60faf50a1872cf38b
[ "MIT" ]
null
null
null
from passlib.apps import custom_app_context as pwd_context class PlayerStateError(Exception): def __init__(self, msg=""): self.message = msg class PlayerExistsError(PlayerStateError): pass class PlayerService(object): def __init__(self): self._players = {} self._usernames = {}...
23.256757
58
0.602557
86310421988810c8fb88b646100e7371c808c160
1,304
py
Python
mud/migrations/0013_auto_20190715_2206.py
cspt2-build-week-abr/Backend
2e349f3ff73db1cbe9bb4f13fceae4847fe47f2f
[ "MIT" ]
null
null
null
mud/migrations/0013_auto_20190715_2206.py
cspt2-build-week-abr/Backend
2e349f3ff73db1cbe9bb4f13fceae4847fe47f2f
[ "MIT" ]
8
2019-12-04T23:44:37.000Z
2022-02-10T11:45:47.000Z
mud/migrations/0013_auto_20190715_2206.py
cspt2-build-week-abr/Backend
2e349f3ff73db1cbe9bb4f13fceae4847fe47f2f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.3 on 2019-07-16 03:06 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('mud', '0012_auto_20190715_2202'), ] operations = [ migrations.RenameField( model_name='areas', old_name=...
29.636364
106
0.577454
affb1f3baa25f32e67a614f79b5ccf444b2bda95
314
py
Python
symphony/cli/pyinventory/common/constant.py
fbcode/magma_old
054ef8e079478bda36d2b13b8a88386c6dc94ef2
[ "BSD-3-Clause" ]
null
null
null
symphony/cli/pyinventory/common/constant.py
fbcode/magma_old
054ef8e079478bda36d2b13b8a88386c6dc94ef2
[ "BSD-3-Clause" ]
6
2021-03-31T19:59:59.000Z
2022-01-22T12:56:47.000Z
symphony/cli/pyinventory/common/constant.py
fbcode/magma_old
054ef8e079478bda36d2b13b8a88386c6dc94ef2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2004-present Facebook All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. __version__ = "3.0.0" EQUIPMENTS_TO_SEARCH = 10 LOCATIONS_TO_SEARCH = 5 PAGINATION_STEP = 1000 USER_ROLE = 0 SUPERUSER_ROLE = 3
24.153846
58
0.761146
320c3b168bc43387c8158b67d29eb063f7ca48f3
3,453
py
Python
Split_data_five_CV.py
ShiuLab/Pathway_gene_prediction_in_tomato
a2488fdbc673df03b6065221e0a0a67c86f29230
[ "MIT" ]
null
null
null
Split_data_five_CV.py
ShiuLab/Pathway_gene_prediction_in_tomato
a2488fdbc673df03b6065221e0a0a67c86f29230
[ "MIT" ]
null
null
null
Split_data_five_CV.py
ShiuLab/Pathway_gene_prediction_in_tomato
a2488fdbc673df03b6065221e0a0a67c86f29230
[ "MIT" ]
null
null
null
import sys,os import random import copy from random import shuffle inp = open('Sly_pathway_annotation_20190117_with_expression_5_members_nonoverlapping.txt','r').readlines() P = {} ###P[pathway] = [gene1,gene2,...] for inl in inp: pa = inl.strip().split('\t')[0] gene = inl.split('\t')[1].strip() if pa not in P: P...
34.53
125
0.667825
b36d3a4de8125b26e6cf2dfa71a6349721ed2ae7
1,351
py
Python
tests/workflowTests/runMHFitWorkflow.py
MarkTravers/magLabUtilities
e116c8cb627cd82c3b8ba651dd6979b66e568632
[ "MIT" ]
null
null
null
tests/workflowTests/runMHFitWorkflow.py
MarkTravers/magLabUtilities
e116c8cb627cd82c3b8ba651dd6979b66e568632
[ "MIT" ]
null
null
null
tests/workflowTests/runMHFitWorkflow.py
MarkTravers/magLabUtilities
e116c8cb627cd82c3b8ba651dd6979b66e568632
[ "MIT" ]
null
null
null
#!python3 if __name__=='__main__': fp = './tests/workflowTests/datafiles/testLoops.xlsx' tuneHistoryFP = './tests/workflowTests/datafiles/tuneHistory00.txt' parameterDefs = { 'hCoercive': {'initialValue':605.0, 'limits':[0.0,10000.0]}, 'xInit': ...
56.291667
93
0.415248
bbbf653f4cf86895e1ad4b93d88547fc15b57385
14,244
py
Python
tmp.py
HwangToeMat/tmp
a4f48443b16b5e07a9cf95f54651ade8c7669134
[ "Apache-2.0" ]
10
2020-08-28T08:03:28.000Z
2022-03-26T21:20:44.000Z
alphapose/utils/pPose_nms.py
HwangToeMat/PoseEstimation_Scoring-Your-Video
16c49b00007135d9b274b6c1e23d6e6c942ec951
[ "Apache-2.0" ]
null
null
null
alphapose/utils/pPose_nms.py
HwangToeMat/PoseEstimation_Scoring-Your-Video
16c49b00007135d9b274b6c1e23d6e6c942ec951
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json import os import zipfile import time from multiprocessing.dummy import Pool as ThreadPool import torch import numpy as np ''' Constant Configuration ''' delta1 = 1 mu = 1.7 delta2 = 2.65 gamma = 22.48 scoreThreds = 0.3 matchThreds = 5 alpha = 0.1 #pool = ThreadPool(4) def pose_nm...
37.782493
128
0.605097
8c01707306498fe60daba58888256a985f1f44da
2,592
py
Python
divio_cli/upload/boilerplate.py
bykof/divio-cli
14a5df39e0e6d7e804e51578bd0db372db8a7596
[ "BSD-3-Clause" ]
null
null
null
divio_cli/upload/boilerplate.py
bykof/divio-cli
14a5df39e0e6d7e804e51578bd0db372db8a7596
[ "BSD-3-Clause" ]
null
null
null
divio_cli/upload/boilerplate.py
bykof/divio-cli
14a5df39e0e6d7e804e51578bd0db372db8a7596
[ "BSD-3-Clause" ]
null
null
null
import glob import os import tarfile import click from .. import settings from ..utils import get_bytes_io from ..validators.boilerplate import validate_boilerplate from ..validators.common import load_config from .common import add_meta_files BOILERPLATE_EXCLUDE_DEFAULTS = ["boilerplate.json", ".git"] def normali...
28.483516
79
0.643519
67e641daacd9c439999d369a141717c739c0aa52
5,368
py
Python
common/pullrequest.py
TizenAPI-Bot/tizenfx-jenkins-scripts
0017119bddd36246f906a7d9a15fc08d49fbddb0
[ "Apache-2.0" ]
null
null
null
common/pullrequest.py
TizenAPI-Bot/tizenfx-jenkins-scripts
0017119bddd36246f906a7d9a15fc08d49fbddb0
[ "Apache-2.0" ]
null
null
null
common/pullrequest.py
TizenAPI-Bot/tizenfx-jenkins-scripts
0017119bddd36246f906a7d9a15fc08d49fbddb0
[ "Apache-2.0" ]
2
2019-08-30T04:01:13.000Z
2019-12-12T03:50:58.000Z
#!/usr/bin/env python3 # # Copyright (c) 2019 Samsung Electronics Co., 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 # #...
34.632258
78
0.567064
2814f05c5d7ae770c09c9f07d073b9d5e3aafc8d
6,135
py
Python
testing/test_model.py
Nicholas-Schaub/ome-types
fcfca3a9a66eee16071317aae0a4e3fb96316dca
[ "MIT" ]
null
null
null
testing/test_model.py
Nicholas-Schaub/ome-types
fcfca3a9a66eee16071317aae0a4e3fb96316dca
[ "MIT" ]
null
null
null
testing/test_model.py
Nicholas-Schaub/ome-types
fcfca3a9a66eee16071317aae0a4e3fb96316dca
[ "MIT" ]
null
null
null
import pickle import re from pathlib import Path from unittest import mock from xml.dom import minidom from xml.etree import ElementTree import pytest import util from pydantic import ValidationError from xmlschema.validators.exceptions import XMLSchemaValidationError from ome_types import from_tiff, from_xml, model,...
33.895028
86
0.68802
17916df8a0bb16544c7f00cc4d02074bf5554e1f
10,368
py
Python
python/pyarrow/__init__.py
mfcabrera/arrow
7a9ba6178d243779cf964b27095b4c5024223cf0
[ "Apache-2.0" ]
null
null
null
python/pyarrow/__init__.py
mfcabrera/arrow
7a9ba6178d243779cf964b27095b4c5024223cf0
[ "Apache-2.0" ]
null
null
null
python/pyarrow/__init__.py
mfcabrera/arrow
7a9ba6178d243779cf964b27095b4c5024223cf0
[ "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...
40.342412
83
0.590374
44913312710961a72011909459389f7525655e4d
1,856
py
Python
day09/django/app1/dateview/addTeachPlans.py
Vanessa-kriby/Python
1fbef67852fb362712fc48fa5c3c29eac68fe202
[ "Apache-2.0" ]
null
null
null
day09/django/app1/dateview/addTeachPlans.py
Vanessa-kriby/Python
1fbef67852fb362712fc48fa5c3c29eac68fe202
[ "Apache-2.0" ]
null
null
null
day09/django/app1/dateview/addTeachPlans.py
Vanessa-kriby/Python
1fbef67852fb362712fc48fa5c3c29eac68fe202
[ "Apache-2.0" ]
null
null
null
from app1.models import * from app1.util.utils import * def addTeachPlans(request): ''' get: http://127.0.0.1:8000/app1/addTeachPlans?dno=002&cno=103&tno=103&tpno=004&credit=3.0&teach_date=2011-09-01&evaluation_method=考试 post: http://127.0.0.1:8000/app1/addTeachPlans ''' try: ...
35.692308
195
0.547953
7562e2c5a7105132bfab47ddd95c12a11b1a40cf
96,096
py
Python
python/ray/data/tests/test_dataset.py
linyiyue/ray
90d2456ec70270a1f894ec3ef6f3004533859e03
[ "Apache-2.0" ]
null
null
null
python/ray/data/tests/test_dataset.py
linyiyue/ray
90d2456ec70270a1f894ec3ef6f3004533859e03
[ "Apache-2.0" ]
68
2021-02-06T08:04:52.000Z
2022-03-12T08:08:47.000Z
python/ray/data/tests/test_dataset.py
linyiyue/ray
90d2456ec70270a1f894ec3ef6f3004533859e03
[ "Apache-2.0" ]
null
null
null
import os import random import requests import shutil import time from unittest.mock import patch import math import numpy as np import pandas as pd import pyarrow as pa import pyarrow.parquet as pq import pytest from fsspec.implementations.local import LocalFileSystem from pytest_lazyfixture import lazy_fixture impo...
37.174468
79
0.613459
f0c6931041b1acb38c9a7ad6d45b1bbdbb0d9435
2,139
py
Python
easter_102.py
fpicot/adventofcode
a544c17bcd58600117c6503e43f63e9e1ce57759
[ "MIT" ]
null
null
null
easter_102.py
fpicot/adventofcode
a544c17bcd58600117c6503e43f63e9e1ce57759
[ "MIT" ]
null
null
null
easter_102.py
fpicot/adventofcode
a544c17bcd58600117c6503e43f63e9e1ce57759
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import re,weakref,itertools _input = 'easter_10.input' bots = [] inputbins = [] outputbins = {} class robot: bots = weakref.WeakValueDictionary() def __init__(self, name, low_type, low_id, high_type, high_id ): self.name = name self.low_type = low_type self....
28.905405
100
0.611968
a21d7ab90a5f93d6acfbbf54e831e6e142f7f37c
21,803
py
Python
openstack_dashboard/dashboards/project/images/images/tests.py
iwagner-inmar/horizon
c59343891fa5224c8650062299b478d4b8b951a8
[ "Apache-2.0" ]
1
2018-04-17T02:32:05.000Z
2018-04-17T02:32:05.000Z
openstack_dashboard/dashboards/project/images/images/tests.py
Gandner/horizon
ee973271867a2298e470e547741f347175bf2def
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/images/images/tests.py
Gandner/horizon
ee973271867a2298e470e547741f347175bf2def
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
38.933929
79
0.597303
1bbfa7c5bd1dec8409aa98a715160f8324bc4c58
3,459
py
Python
nnetsauce/boosting/bst.py
Techtonique/nnetsauce
edd5344598877bd8017db0d8889de5a0f970d2ec
[ "BSD-3-Clause-Clear" ]
4
2020-12-04T05:36:05.000Z
2021-10-30T10:35:02.000Z
nnetsauce/boosting/bst.py
Techtonique/nnetsauce
edd5344598877bd8017db0d8889de5a0f970d2ec
[ "BSD-3-Clause-Clear" ]
5
2020-09-25T04:26:04.000Z
2022-02-26T12:07:29.000Z
nnetsauce/boosting/bst.py
Techtonique/nnetsauce
edd5344598877bd8017db0d8889de5a0f970d2ec
[ "BSD-3-Clause-Clear" ]
2
2021-02-22T04:59:28.000Z
2021-10-30T10:35:07.000Z
"""Boosting model""" # Authors: Thierry Moudiki # # License: BSD 3 Clear from ..base import Base class Boosting(Base): """Boosting model class derived from class Base Attributes: obj: object any object containing a method fit (obj.fit()) and a method predict (obj.predict())...
27.452381
88
0.57878
5ae94aa02d6adc4106aeb1eb2d06a4d9999e5852
1,625
py
Python
hassio/host/control.py
InfernoEmbedded/hassio
a401bf0bb8d81d76924254d5b8c9c493ad343468
[ "Apache-2.0" ]
null
null
null
hassio/host/control.py
InfernoEmbedded/hassio
a401bf0bb8d81d76924254d5b8c9c493ad343468
[ "Apache-2.0" ]
null
null
null
hassio/host/control.py
InfernoEmbedded/hassio
a401bf0bb8d81d76924254d5b8c9c493ad343468
[ "Apache-2.0" ]
null
null
null
"""Power control for host.""" import logging from ..coresys import CoreSysAttributes from ..exceptions import HostNotSupportedError _LOGGER = logging.getLogger(__name__) MANAGER = 'manager' HOSTNAME = 'hostname' class SystemControl(CoreSysAttributes): """Handle host power controls.""" def __init__(self, c...
28.508772
68
0.643692
62acef4b4d62945779f5929a7487e8b7fc877db4
666
py
Python
Auth/migrations/0001_initial.py
m-krishnachaitanya/QCreator_Backend
873716fb6c1a260aeb57b04197ad228145722933
[ "MIT" ]
null
null
null
Auth/migrations/0001_initial.py
m-krishnachaitanya/QCreator_Backend
873716fb6c1a260aeb57b04197ad228145722933
[ "MIT" ]
null
null
null
Auth/migrations/0001_initial.py
m-krishnachaitanya/QCreator_Backend
873716fb6c1a260aeb57b04197ad228145722933
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-21 10:55 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Login', fields=[ ('userid', models.AutoFiel...
26.64
94
0.566066
d4eeadf0834bef53e7e4d41fd250c397fec4c2e5
6,296
py
Python
onionfarm/onionrunner.py
j3ro3n/onionscan
3176870f0f5f143322612d2770072e2d9d5b09c2
[ "MIT" ]
null
null
null
onionfarm/onionrunner.py
j3ro3n/onionscan
3176870f0f5f143322612d2770072e2d9d5b09c2
[ "MIT" ]
null
null
null
onionfarm/onionrunner.py
j3ro3n/onionscan
3176870f0f5f143322612d2770072e2d9d5b09c2
[ "MIT" ]
null
null
null
from stem.control import Controller from stem import Signal from threading import Timer from threading import Event import codecs import json import os import random import subprocess import sys import time from lib.helpers import get_master_list, get_tor_password onions = [] session_onions = [] identity_lock = Eve...
27.614035
117
0.661055
005dbe582a6dbbfed5229cd0756e0f852da66a77
4,601
py
Python
picbiz/core/controllers/collect.py
scottyadean/picbiz
e14bb7456936ee43d8124279456f059affd0fa16
[ "MIT" ]
null
null
null
picbiz/core/controllers/collect.py
scottyadean/picbiz
e14bb7456936ee43d8124279456f059affd0fa16
[ "MIT" ]
null
null
null
picbiz/core/controllers/collect.py
scottyadean/picbiz
e14bb7456936ee43d8124279456f059affd0fa16
[ "MIT" ]
null
null
null
import os import json import glob import uuid; import zipfile from PIL import Image, ExifTags from datetime import datetime from django.conf import settings from django.contrib.auth import authenticate, login, logout from core.lib.controller import Controller, login_required from core.lib.date_helpers import fix_date...
40.008696
138
0.660291
ce47b771f4fdb0c612745ca4b7c36695f3853f7c
14
py
Python
titanicazertyu/__init__.py
Adriengith/titanicazertyu
5ad6569c08918df98c1ef4a59ffc1887b3fd9cee
[ "MIT" ]
723
2018-01-08T04:55:42.000Z
2022-03-27T14:30:53.000Z
titanicazertyu/__init__.py
Adriengith/titanicazertyu
5ad6569c08918df98c1ef4a59ffc1887b3fd9cee
[ "MIT" ]
84
2021-08-30T19:05:45.000Z
2022-03-30T16:59:36.000Z
titanicazertyu/__init__.py
Adriengith/titanicazertyu
5ad6569c08918df98c1ef4a59ffc1887b3fd9cee
[ "MIT" ]
179
2018-01-08T08:16:32.000Z
2022-03-20T02:49:44.000Z
print("hello")
14
14
0.714286
89716e8b0ced822207ba181f78d1649c9594180c
25,954
py
Python
pkgs/numexpr-2.5-np110py27_0/lib/python2.7/site-packages/numexpr/necompiler.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/numexpr-2.5-np110py27_0/lib/python2.7/site-packages/numexpr/necompiler.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/numexpr-2.5-np110py27_0/lib/python2.7/site-packages/numexpr/necompiler.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
################################################################### # Numexpr - Fast numerical array expression evaluator for NumPy. # # License: MIT # Author: See AUTHORS.txt # # See LICENSE.txt and LICENSES/*.txt for details about copyright and # rights to use. ##########################################...
33.619171
92
0.583648
ada78b5165a53fed03aa03dadf79153c9b86fded
8,729
py
Python
soft_sort/ops.py
kinoute/google-research
4a59cab927579ea9722e43252c695de5da4eb5e2
[ "Apache-2.0" ]
11
2020-01-29T07:25:04.000Z
2022-03-05T16:01:21.000Z
soft_sort/ops.py
RubensZimbres/google-research
562c7c6ef959cb3cb382b1b660ccc45e8f5289c4
[ "Apache-2.0" ]
13
2020-01-28T22:19:53.000Z
2022-02-10T00:39:26.000Z
soft_sort/ops.py
RubensZimbres/google-research
562c7c6ef959cb3cb382b1b660ccc45e8f5289c4
[ "Apache-2.0" ]
2
2020-05-07T17:43:37.000Z
2020-12-06T14:43:30.000Z
# coding=utf-8 # Copyright 2019 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
38.96875
80
0.718066
3698305a217958c58a9a869ee8eea8af73bba961
17,380
py
Python
tests/test_magicgui.py
GenevieveBuckley/magicgui
c8bd2fd866e19e39996716c0f5b98e8672a921a6
[ "MIT" ]
1
2020-06-01T06:02:25.000Z
2020-06-01T06:02:25.000Z
tests/test_magicgui.py
GenevieveBuckley/magicgui
c8bd2fd866e19e39996716c0f5b98e8672a921a6
[ "MIT" ]
1
2020-06-29T12:06:23.000Z
2020-07-01T03:25:17.000Z
tests/test_magicgui.py
GenevieveBuckley/magicgui
c8bd2fd866e19e39996716c0f5b98e8672a921a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Tests for `magicgui` package.""" import inspect from enum import Enum import pytest from qtpy.QtCore import Qt from magicgui import magicgui, register_type, type_map, widgets from magicgui.signature import MagicSignature @pytest.fixture def magic_func(): """Test function decorated by ...
27.241379
87
0.640564
9eed0d9c1c12fa457211f8e76066d0a77d46b808
5,214
py
Python
core/calls/views/requests.py
Nikita-Filonov/lama_logger
7b3f474ddf35685e6949ab00d7272d16c630295c
[ "Apache-2.0" ]
null
null
null
core/calls/views/requests.py
Nikita-Filonov/lama_logger
7b3f474ddf35685e6949ab00d7272d16c630295c
[ "Apache-2.0" ]
null
null
null
core/calls/views/requests.py
Nikita-Filonov/lama_logger
7b3f474ddf35685e6949ab00d7272d16c630295c
[ "Apache-2.0" ]
1
2021-12-21T09:39:02.000Z
2021-12-21T09:39:02.000Z
import json from rest_framework import views, status from rest_framework.authentication import TokenAuthentication from rest_framework.decorators import api_view, authentication_classes, permission_classes, throttle_classes from rest_framework.pagination import LimitOffsetPagination from rest_framework.permissions imp...
41.712
112
0.764097
4a2643fbf94b7b96fdc691562a698cd996a25bd0
4,206
py
Python
threat_connect/komand_threat_connect/actions/bulk_indicator_download/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
threat_connect/komand_threat_connect/actions/bulk_indicator_download/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
threat_connect/komand_threat_connect/actions/bulk_indicator_download/schema.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Input: ATTRIBUTE = "attribute" CONFIDENCE = "confidence" DATE_ADDED = "date_added" LAST_MODIFIED = "last_modified" OWNER = "owner" RATING = "rating" TAG = "tag" THREAT_ASSESS_CONFIDENCE = "threat_assess_confidence"...
22.491979
57
0.485259
10fec8336add86ccd7a51ff59aefa0b7dcd54939
4,642
py
Python
big_data_shenyang/expert/shenyang_expert_spider.py
littlesluttery/spider
875187c3a01a79840dd1470878d7cb4678b183d7
[ "Apache-2.0" ]
null
null
null
big_data_shenyang/expert/shenyang_expert_spider.py
littlesluttery/spider
875187c3a01a79840dd1470878d7cb4678b183d7
[ "Apache-2.0" ]
null
null
null
big_data_shenyang/expert/shenyang_expert_spider.py
littlesluttery/spider
875187c3a01a79840dd1470878d7cb4678b183d7
[ "Apache-2.0" ]
null
null
null
#-*- coding=utf-8 -*- #@Time : 2020/10/9 12:52 PM #@Author : 小邋遢 #@File : shenyang_expert_spider.py #@Software : PyCharm import json import os import re from urllib.request import urlretrieve import pymysql import requests from expert.config import * from lxml import etree import pandas as pd def total_page_numbers()...
29.0125
210
0.588324
b17d944c7e5787d6adede43bbb837e8e31e85f08
571
py
Python
setup.py
SuryaThiru/ppscore
59df800e32d4ef5fda4be2bdf4b3235db2a39fee
[ "MIT" ]
1
2020-07-04T20:18:52.000Z
2020-07-04T20:18:52.000Z
setup.py
SuryaThiru/ppscore
59df800e32d4ef5fda4be2bdf4b3235db2a39fee
[ "MIT" ]
null
null
null
setup.py
SuryaThiru/ppscore
59df800e32d4ef5fda4be2bdf4b3235db2a39fee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Setup file for ppscore. Use setup.cfg to configure your project. This file was generated with PyScaffold 3.2.1. PyScaffold helps you to put up the scaffold of your new Python project. Learn more under: https://pyscaffold.org/ """ import sys from pkg_resources import Ver...
23.791667
75
0.702277
e1d4a42367a9970c07dc4821e4e15e11003793b0
19,729
py
Python
stable_baselines/ppo1/pposgd_simple.py
hejujie/stable-baselines
0dfb0e6e7ca7aa215c165bdf28c709d2e6aa3dc4
[ "MIT" ]
null
null
null
stable_baselines/ppo1/pposgd_simple.py
hejujie/stable-baselines
0dfb0e6e7ca7aa215c165bdf28c709d2e6aa3dc4
[ "MIT" ]
null
null
null
stable_baselines/ppo1/pposgd_simple.py
hejujie/stable-baselines
0dfb0e6e7ca7aa215c165bdf28c709d2e6aa3dc4
[ "MIT" ]
null
null
null
from collections import deque import time import gym import tensorflow as tf import numpy as np from mpi4py import MPI from stable_baselines.common import Dataset, explained_variance, fmt_row, zipsame, ActorCriticRLModel, SetVerbosity, \ TensorboardWriter from stable_baselines import logger import stable_baseline...
53.321622
121
0.55426
145157d656ae3576c9963b294c93d7f82c40f7e4
1,466
py
Python
noxfile.py
jeromekelleher/lshmm
58e0c3395f222e756bb10a0063f5118b20176a01
[ "MIT" ]
null
null
null
noxfile.py
jeromekelleher/lshmm
58e0c3395f222e756bb10a0063f5118b20176a01
[ "MIT" ]
null
null
null
noxfile.py
jeromekelleher/lshmm
58e0c3395f222e756bb10a0063f5118b20176a01
[ "MIT" ]
null
null
null
import nox @nox.session def format(session): session.install("-r", "requirements.dev.txt") session.run("black", ".") session.run("isort", ".") @nox.session def pydocstyle(session): session.install("-r", "requirements.dev.txt") session.run("pydocstyle", "lshmm") @nox.session def lint(session)...
21.558824
77
0.641201
ef8e368b7084884a3edcf91ffa5f75b354ca5f67
610
py
Python
expenses_tracker/expenses_tracker/profiles/migrations/0001_initial.py
BoyanPeychinov/python_web_basics
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
[ "MIT" ]
1
2021-07-20T12:16:34.000Z
2021-07-20T12:16:34.000Z
expenses_tracker/expenses_tracker/profiles/migrations/0001_initial.py
BoyanPeychinov/python_web_basics
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
[ "MIT" ]
null
null
null
expenses_tracker/expenses_tracker/profiles/migrations/0001_initial.py
BoyanPeychinov/python_web_basics
2f892ac119f7fe3a5c03fc5e7b35670dc609a70f
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-25 10:07 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.BigAutoFie...
25.416667
117
0.570492
eb7d830cabbbf082d15541a78cb1f69d41e4ae67
2,603
py
Python
data/creat_static_image_dataset.py
Forence1999/SmartWalker
635410bf44234eead9fd1e2fe226eb8eafa9d27d
[ "MIT" ]
2
2021-11-13T14:16:06.000Z
2022-01-12T06:07:32.000Z
data/creat_static_image_dataset.py
Forence1999/SmartWalker
635410bf44234eead9fd1e2fe226eb8eafa9d27d
[ "MIT" ]
null
null
null
data/creat_static_image_dataset.py
Forence1999/SmartWalker
635410bf44234eead9fd1e2fe226eb8eafa9d27d
[ "MIT" ]
3
2021-08-30T04:40:39.000Z
2022-01-09T11:34:04.000Z
import sys, os # import time import numpy as np import math import matplotlib.pyplot as pyplot import cv2 as cv pwd = os.path.abspath(os.path.abspath(__file__)) father_path = os.path.abspath(os.path.dirname(pwd)) # sys.path.append(father_path) # print(father_path) def get_data(direction): # 原始信息获取 file = open...
31.361446
104
0.636957
0c67f3dd07904c5e00db77743d9c373faec42464
9,099
py
Python
src/VAE/main.py
goeckslab/MarkerIntensityPredictor
704e4ea782c6653cabb4b37a7b34fea4cd9fe595
[ "MIT" ]
3
2021-02-22T19:26:04.000Z
2022-03-02T22:08:25.000Z
src/VAE/main.py
goeckslab/MarkerIntensityPredictor
704e4ea782c6653cabb4b37a7b34fea4cd9fe595
[ "MIT" ]
1
2021-03-12T22:22:25.000Z
2021-03-12T22:22:25.000Z
src/VAE/main.py
goeckslab/MarkerIntensityPredictor
704e4ea782c6653cabb4b37a7b34fea4cd9fe595
[ "MIT" ]
1
2021-03-12T20:28:50.000Z
2021-03-12T20:28:50.000Z
from keras import layers, regularizers from sklearn.preprocessing import StandardScaler, MinMaxScaler from Shared.data_loader import DataLoader from Shared.data import Data import numpy as np import sys import pandas as pd from pathlib import Path import keras from VAE.sampling import Sampling from VAE.vae_model import...
38.555085
119
0.630839
33fe7b1ac73fcbb5edd066433d7f0987d10a567b
4,705
py
Python
src/providers/commoncrawl/FloraOn.py
AyanChoudhary/cccatalog
ca2b247fffc0f38ec6b73574f963dd94a9505c86
[ "MIT" ]
65
2018-05-25T00:47:18.000Z
2021-11-30T05:58:43.000Z
src/providers/commoncrawl/FloraOn.py
AyanChoudhary/cccatalog
ca2b247fffc0f38ec6b73574f963dd94a9505c86
[ "MIT" ]
463
2018-05-01T14:35:42.000Z
2021-06-11T20:32:50.000Z
src/providers/commoncrawl/FloraOn.py
AyanChoudhary/cccatalog
ca2b247fffc0f38ec6b73574f963dd94a9505c86
[ "MIT" ]
81
2018-05-05T20:33:12.000Z
2021-04-28T02:23:10.000Z
""" Content Provider: Flora-On ETL Process: Identify images of plant species that are available under a Creative Commons license. Output: TSV file containing images of artworks and their respective meta-data. """ from Provider import * logging.basicConfig(form...
38.565574
126
0.456961
730ff5b66f1e3a2d5a7ed1e4966d013c43fa193d
2,507
py
Python
gui/weight_entry_popup.py
Penaz91/fjournal
0cf1634f67308f3491241d1bb250772ce4def2a0
[ "MIT" ]
null
null
null
gui/weight_entry_popup.py
Penaz91/fjournal
0cf1634f67308f3491241d1bb250772ce4def2a0
[ "MIT" ]
null
null
null
gui/weight_entry_popup.py
Penaz91/fjournal
0cf1634f67308f3491241d1bb250772ce4def2a0
[ "MIT" ]
null
null
null
""" This file is part of the FJournal Project. Copyright © 2019-2020, Daniele Penazzo. All Rights Reserved. The use of this code is governed by the MIT license attached. See the LICENSE file for the full license. Created on: 2020-07-09 Author: Penaz """ from datetime import datetime from tkinter import ttk import tki...
30.950617
70
0.614679
048db1533cefbb23d6abe1c94c5e4aa988f95c99
56,451
py
Python
imgaug/augmenters/contrast.py
russoale/imgaug
8dd78f10ec5ae2c133e87850d50addb9d7c67354
[ "MIT" ]
1
2019-06-29T12:46:09.000Z
2019-06-29T12:46:09.000Z
imgaug/augmenters/contrast.py
jiangxiluning/imgaug
6c143483810629b7efee13afd8c93bc647b9df35
[ "MIT" ]
null
null
null
imgaug/augmenters/contrast.py
jiangxiluning/imgaug
6c143483810629b7efee13afd8c93bc647b9df35
[ "MIT" ]
null
null
null
""" Augmenters that perform contrast changes. Do not import directly from this file, as the categorization is not final. Use instead :: from imgaug import augmenters as iaa and then e.g. :: seq = iaa.Sequential([iaa.GammaContrast((0.5, 1.5))]) List of augmenters: * GammaContrast * SigmoidContrast ...
45.96987
120
0.626473
9186a018296125130da1f849461e995611e87b9c
2,519
py
Python
default_routes_service/default_routes_service/utils/utilization.py
kkkkv/tgnms
a3b8fd8a69b647a614f9856933f05e50a4affadf
[ "MIT" ]
12
2021-04-06T06:27:18.000Z
2022-03-18T10:52:29.000Z
default_routes_service/default_routes_service/utils/utilization.py
kkkkv/tgnms
a3b8fd8a69b647a614f9856933f05e50a4affadf
[ "MIT" ]
6
2022-01-04T13:32:16.000Z
2022-03-28T21:13:59.000Z
default_routes_service/default_routes_service/utils/utilization.py
kkkkv/tgnms
a3b8fd8a69b647a614f9856933f05e50a4affadf
[ "MIT" ]
7
2021-09-27T13:14:42.000Z
2022-03-28T16:24:15.000Z
#!/usr/bin/env python3 # Copyright 2004-present Facebook. All Rights Reserved. from collections import defaultdict from datetime import datetime from typing import DefaultDict, List, Optional, Tuple from aiomysql.sa.result import RowProxy def to_tuple(routes: Optional[List[List]]) -> Optional[Tuple[Tuple]]: "Ma...
36.507246
81
0.689956
fa2cf399dd90a83c374bf308276c06e0f65c9eda
1,879
py
Python
markets/migrations/0001_initial.py
aknirmal90/arbitrage
e43c91be80c6f8ef4070d30a3a897c2e113ae136
[ "MIT" ]
3
2017-12-14T12:41:01.000Z
2021-05-17T11:51:53.000Z
markets/migrations/0001_initial.py
aknirmal90/arbitrage
e43c91be80c6f8ef4070d30a3a897c2e113ae136
[ "MIT" ]
2
2020-06-05T17:55:14.000Z
2021-06-10T19:48:10.000Z
markets/migrations/0001_initial.py
aknirmal90/arbitrage
e43c91be80c6f8ef4070d30a3a897c2e113ae136
[ "MIT" ]
2
2018-07-11T03:23:51.000Z
2021-07-16T17:42:21.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-02 19:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
39.145833
116
0.580628
fd9286649dd22084fc8caacfa09f1a8a6714d46e
4,846
py
Python
warp/yul/parse.py
swapnilraj/warp
2fb1fa105fc5c46b2e53790fb0a2f7165b4133a1
[ "Apache-2.0" ]
null
null
null
warp/yul/parse.py
swapnilraj/warp
2fb1fa105fc5c46b2e53790fb0a2f7165b4133a1
[ "Apache-2.0" ]
null
null
null
warp/yul/parse.py
swapnilraj/warp
2fb1fa105fc5c46b2e53790fb0a2f7165b4133a1
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import yul.yul_ast as ast from yul.WarpException import WarpException, warp_assert from yul.utils import camelize, remove_prefix, is_statement _node_to_parser = {} def register_parser(parser): fun_name = parser.__name__ assert fun_name.startswith("parse_"), ( "A pa...
27.691429
83
0.693562
d392195340f10c608cd30f7ff76a5d79a6f8a271
15,550
py
Python
finance/api/tests.py
dynamicguy/treeio
4f674898cff2331711639a9b5f6812c874a2cb25
[ "MIT" ]
null
null
null
finance/api/tests.py
dynamicguy/treeio
4f674898cff2331711639a9b5f6812c874a2cb25
[ "MIT" ]
null
null
null
finance/api/tests.py
dynamicguy/treeio
4f674898cff2331711639a9b5f6812c874a2cb25
[ "MIT" ]
1
2019-02-03T03:54:06.000Z
2019-02-03T03:54:06.000Z
# encoding: utf-8 # Copyright 2011 Tree.io Limited # This file is part of Treeio. # License www.tree.io/license #-*- coding: utf-8 -*- import json from django.test import TestCase from django.test.client import Client from django.core.urlresolvers import reverse from django.contrib.auth.models import User as DjangoUs...
50.983607
151
0.639614
465ba94ccf62128c53596135f99f3b8c735683d3
5,629
py
Python
docs/scripts/tests/conftest.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1
2022-03-09T08:11:10.000Z
2022-03-09T08:11:10.000Z
docs/scripts/tests/conftest.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
2
2022-03-28T13:18:55.000Z
2022-03-28T13:18:57.000Z
docs/scripts/tests/conftest.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """ Configuration for tests. Tests for documentation utilize pytest test framework for tests execution and reports generation. Documentation generation tests process Doxygen log to generate test per documentation source file (.hpp, .md...
35.853503
113
0.645052
f125e8c829f3e9627bb55ce4ac1fe9e9c32c46cd
998
py
Python
EPI/envs/hopper_task.py
zwxxxuan/EPI
1c48994afc97518a4d8e6df7f6cabaa8792bb425
[ "MIT" ]
28
2019-02-22T05:00:10.000Z
2021-09-23T05:12:59.000Z
EPI/envs/hopper_task.py
zwxxxuan/EPI
1c48994afc97518a4d8e6df7f6cabaa8792bb425
[ "MIT" ]
3
2019-06-04T05:38:42.000Z
2019-10-27T03:51:56.000Z
EPI/envs/hopper_task.py
zwxxxuan/EPI
1c48994afc97518a4d8e6df7f6cabaa8792bb425
[ "MIT" ]
1
2020-09-04T02:10:09.000Z
2020-09-04T02:10:09.000Z
import numpy as np from .hopper_avg import HopperAvgEnv import EPI class HopperTaskEnv(HopperAvgEnv): def __init__(self, reset): self.epi_reset = reset self.env_vec = np.zeros(EPI.EMBEDDING_DIMENSION) super(HopperTaskEnv, self).__init__() self.interactive_policy = None def loa...
27.722222
67
0.617234
76764e61b395393352ad5717cbb028bfcc1dc1c0
15,813
py
Python
certbot/tests/log_test.py
magikid/certbot
f5a88ade54cc34ae216959a84a658986324ea69c
[ "Apache-2.0" ]
5
2021-01-26T08:47:29.000Z
2021-01-30T00:42:12.000Z
certbot/tests/log_test.py
magikid/certbot
f5a88ade54cc34ae216959a84a658986324ea69c
[ "Apache-2.0" ]
1
2021-01-25T14:47:33.000Z
2021-01-25T15:00:46.000Z
certbot/tests/log_test.py
magikid/certbot
f5a88ade54cc34ae216959a84a658986324ea69c
[ "Apache-2.0" ]
1
2020-10-28T05:49:43.000Z
2020-10-28T05:49:43.000Z
"""Tests for certbot._internal.log.""" import logging import logging.handlers import sys import time import unittest try: import mock except ImportError: # pragma: no cover from unittest import mock import six from acme import messages from certbot import errors from certbot import util from certbot._internal...
37.119718
94
0.672738
b0dccc118f9589f4e54db652090113e151145cec
9,069
py
Python
src/ml/jqxxsz/8.Regression/lego/lego.py
Wuwenxu/code-camp-python
acca993fbadfb97854cb664da7181ea5ef2b1c1b
[ "Apache-2.0" ]
4
2020-01-19T08:06:00.000Z
2022-03-22T06:19:29.000Z
src/ml/jqxxsz/8.Regression/lego/lego.py
Wuwenxu/code-camp-python
acca993fbadfb97854cb664da7181ea5ef2b1c1b
[ "Apache-2.0" ]
null
null
null
src/ml/jqxxsz/8.Regression/lego/lego.py
Wuwenxu/code-camp-python
acca993fbadfb97854cb664da7181ea5ef2b1c1b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : getData.py @Time : 2019/07/22 09:56:16 @Author : xiao ming @Version : 1.0 @Contact : xiaoming3526@gmail.com @Desc : 乐高玩具套件html文件数据获取 @github : https://github.com/aimi-cn/AILearners ''' # here put the import lib from bs4 import Beauti...
39.776316
166
0.489359
b9e0d727881e7e6eb4ef85f7df8f9d6fba8070c6
4,822
py
Python
app/question/views.py
abhisuri97/penn-club-ratings
b6d32312c6addebedc9d04431a922ec631e4cb28
[ "MIT" ]
30
2017-11-28T15:22:43.000Z
2022-03-27T02:00:04.000Z
app/question/views.py
abhisuri97/penn-club-ratings
b6d32312c6addebedc9d04431a922ec631e4cb28
[ "MIT" ]
null
null
null
app/question/views.py
abhisuri97/penn-club-ratings
b6d32312c6addebedc9d04431a922ec631e4cb28
[ "MIT" ]
15
2017-12-26T12:28:55.000Z
2021-03-01T09:41:35.000Z
from flask import abort, flash, redirect, render_template, url_for, request from flask_login import login_required, current_user from flask_rq import get_queue from ..email import send_email from .forms import NewQuestionForm from . import question from .. import db from ..decorators import admin_required from ..mode...
34.198582
78
0.695355
ed5d559f740fc1bbebc5fed9ef8be5aa6575a3a6
1,916
py
Python
spinta/datasets/commands/link.py
atviriduomenys/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
2
2019-03-14T06:41:14.000Z
2019-03-26T11:48:14.000Z
spinta/datasets/commands/link.py
sirex/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
44
2019-04-05T15:52:45.000Z
2022-03-30T07:41:33.000Z
spinta/datasets/commands/link.py
sirex/spinta
77a10e201f8cdc63143fce7996fd0898acb1ff58
[ "MIT" ]
1
2019-04-01T09:54:27.000Z
2019-04-01T09:54:27.000Z
from typing import List from spinta import commands from spinta.components import Context from spinta.core.access import link_access_param from spinta.datasets.components import Dataset, Resource, Entity, Attribute from spinta.exceptions import MissingReference @commands.link.register(Context, Dataset) def link(cont...
32.474576
75
0.653445
8a87e3e987e0d2fa8d36cced7b80e5f9cbb3a162
3,981
py
Python
app/utils/yaml_parser.py
usriva2405/visual-relationship-detection-api
8e6ef885fb5cd79021ea6b1d4b498650aec8e30d
[ "BSD-3-Clause" ]
3
2020-01-29T10:19:25.000Z
2021-04-16T08:28:05.000Z
app/utils/yaml_parser.py
usriva2405/visual-relationship-detection-api
8e6ef885fb5cd79021ea6b1d4b498650aec8e30d
[ "BSD-3-Clause" ]
16
2020-01-29T10:25:40.000Z
2022-01-13T02:08:05.000Z
app/utils/yaml_parser.py
usriva2405/visual-relationship-detection-api
8e6ef885fb5cd79021ea6b1d4b498650aec8e30d
[ "BSD-3-Clause" ]
2
2021-03-10T13:26:45.000Z
2021-11-15T04:46:10.000Z
# config_loader.py import yaml import os import re from dotenv import load_dotenv from pathlib import Path import logging # Enable logging logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) class Config: ...
35.864865
108
0.556644
273a3c353a5eaac5e62dcafd0fcb1d83f450c3ba
9,181
py
Python
moac_tester/backends/mock/main.py
wanpixiaozi/moac-tester
33d4633833d4b984161f0019dcde977a97474437
[ "MIT" ]
1
2018-10-16T07:08:17.000Z
2018-10-16T07:08:17.000Z
moac_tester/backends/mock/main.py
wanpixiaozi/moac-tester
33d4633833d4b984161f0019dcde977a97474437
[ "MIT" ]
null
null
null
moac_tester/backends/mock/main.py
wanpixiaozi/moac-tester
33d4633833d4b984161f0019dcde977a97474437
[ "MIT" ]
null
null
null
import itertools import copy from cytoolz.dicttoolz import ( dissoc, assoc, ) from cytoolz.functoolz import ( compose, partial, ) from eth_utils import ( decode_hex, int_to_big_endian, denoms, keccak, to_canonical_address, to_tuple, is_integer, ) from moac_tester.backends....
29.146032
95
0.606906
2306f92081f047393a8b6aa54551654a8c66d486
79,789
py
Python
galgebra/ga.py
meuns/galgebra
3fea69ff4c4ca8f8afea083b697ef9d5112824b9
[ "BSD-3-Clause" ]
1
2016-05-08T08:13:10.000Z
2016-05-08T08:13:10.000Z
galgebra/ga.py
meuns/galgebra
3fea69ff4c4ca8f8afea083b697ef9d5112824b9
[ "BSD-3-Clause" ]
1
2019-11-21T18:59:22.000Z
2019-11-26T08:37:26.000Z
galgebra/ga.py
meuns/galgebra
3fea69ff4c4ca8f8afea083b697ef9d5112824b9
[ "BSD-3-Clause" ]
null
null
null
""" Geometric Algebra (inherits Metric) """ import operator import copy from collections import OrderedDict from itertools import combinations import functools from functools import reduce from sympy import ( diff, Rational, Symbol, S, Mul, Add, expand, simplify, eye, trigsimp, symbols, sqrt, numbers, Fun...
37.284579
139
0.544411
8176062410f4649ea9d2cc86c51c6d81bb223963
7,579
py
Python
app/adjutorium-covid19-public/model_training/train_mortality_model.py
loramf/mlforhealthlabpub
aa5a42a4814cf69c8223f27c21324ee39d43c404
[ "BSD-3-Clause" ]
171
2021-02-12T10:23:19.000Z
2022-03-29T01:58:52.000Z
app/adjutorium-covid19-public/model_training/train_mortality_model.py
loramf/mlforhealthlabpub
aa5a42a4814cf69c8223f27c21324ee39d43c404
[ "BSD-3-Clause" ]
4
2021-06-01T08:18:33.000Z
2022-02-20T13:37:30.000Z
app/adjutorium-covid19-public/model_training/train_mortality_model.py
loramf/mlforhealthlabpub
aa5a42a4814cf69c8223f27c21324ee39d43c404
[ "BSD-3-Clause" ]
93
2021-02-10T03:21:59.000Z
2022-03-30T19:10:37.000Z
import numpy as np import pandas as pd from sklearn.experimental import enable_iterative_imputer from sklearn.impute import IterativeImputer from xgboost import XGBClassifier from sklearn.linear_model import LogisticRegression, LinearRegression from sklearn.neural_network import MLPClassifier from sklearn.ensemble i...
32.809524
189
0.601531
6564a62e4bae5ad350811ce424784e3e035d2525
3,227
py
Python
tg_apicore/settings.py
thorgate/tg-apicore
5d93ae89efe6537ef0b762dfbc4eafdfdab383cb
[ "ISC" ]
14
2018-02-22T14:27:48.000Z
2020-05-16T12:51:10.000Z
tg_apicore/settings.py
thorgate/tg-apicore
5d93ae89efe6537ef0b762dfbc4eafdfdab383cb
[ "ISC" ]
4
2018-03-22T10:41:00.000Z
2021-11-15T18:24:18.000Z
tg_apicore/settings.py
thorgate/tg-apicore
5d93ae89efe6537ef0b762dfbc4eafdfdab383cb
[ "ISC" ]
null
null
null
from django.conf import settings from rest_framework.settings import api_settings DEFAULTS = { 'REST_FRAMEWORK': { 'EXCEPTION_HANDLER': 'rest_framework_json_api.exceptions.exception_handler', 'DEFAULT_PAGINATION_CLASS': 'tg_apicore.pagination.CursorPagination', 'PAGE_SIZE': 50, ...
31.028846
113
0.692284
a947b20d69892581bac146608df2ad54ada6d532
31,371
py
Python
pymatgen/io/abinit/abitimer.py
wangyusu/pymatgen
a90af2fe71eff15134ca33c6e58f07caba425ae9
[ "MIT" ]
2
2020-01-28T19:19:15.000Z
2020-03-30T18:10:32.000Z
pymatgen/io/abinit/abitimer.py
wangyusu/pymatgen
a90af2fe71eff15134ca33c6e58f07caba425ae9
[ "MIT" ]
3
2021-08-03T17:59:02.000Z
2021-08-12T00:43:59.000Z
pymatgen/io/abinit/abitimer.py
wangyusu/pymatgen
a90af2fe71eff15134ca33c6e58f07caba425ae9
[ "MIT" ]
13
2015-03-05T09:42:11.000Z
2018-08-28T15:22:53.000Z
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides objects for extracting timing data from the ABINIT output files It also provides tools to analye and to visualize the parallel efficiency. """ import collections import logging import o...
33.480256
119
0.56361
89779aba5139033dcc49a36732b27dadc2c8910d
1,606
py
Python
src/repositories/comando.py
laurosn/flask-api-starter-kit
09a5b67bf48abeb427beae9bccae323aea16d9ae
[ "MIT" ]
null
null
null
src/repositories/comando.py
laurosn/flask-api-starter-kit
09a5b67bf48abeb427beae9bccae323aea16d9ae
[ "MIT" ]
null
null
null
src/repositories/comando.py
laurosn/flask-api-starter-kit
09a5b67bf48abeb427beae9bccae323aea16d9ae
[ "MIT" ]
null
null
null
""" Defines the Comando repository """ from models.comando import Comando from models import db class ComandoRepository: """ The repository for the comando model """ @staticmethod def get(id): """ Query a comando by id """ return Comando.query.filter_by(id=id).one_or_none() @sta...
29.740741
140
0.628892
0d95f9daa53fbe359850b7fcb1e9e12fed7d3ddb
5,265
py
Python
terminal/gm.py
jghibiki/DungeonBuilder
af0879fa89b2e73f2bc256dc9e5311b815fe2220
[ "MIT" ]
3
2016-12-08T20:09:57.000Z
2021-05-21T13:59:21.000Z
terminal/gm.py
jghibiki/Cursed
af0879fa89b2e73f2bc256dc9e5311b815fe2220
[ "MIT" ]
26
2016-12-09T20:30:31.000Z
2017-05-31T20:57:21.000Z
terminal/gm.py
jghibiki/DungeonBuilder
af0879fa89b2e73f2bc256dc9e5311b815fe2220
[ "MIT" ]
null
null
null
from interactive import InteractiveModule, UserModule from viewer import ViewerConstants from screen import Screen from viewport import Viewport from colon_line import ColonLine from state import State from client import Client import log import curses log = log.logger class GM(InteractiveModule, UserModule): de...
28.005319
73
0.518898
f247aa2e87778ee498d4bd7c0e61ceefb6e3f57c
707
py
Python
util/get_photos.py
jsundram/haydnenthusiasts.org
70ae58983cf0f840e43b80ae656cd348361e5716
[ "MIT" ]
null
null
null
util/get_photos.py
jsundram/haydnenthusiasts.org
70ae58983cf0f840e43b80ae656cd348361e5716
[ "MIT" ]
null
null
null
util/get_photos.py
jsundram/haydnenthusiasts.org
70ae58983cf0f840e43b80ae656cd348361e5716
[ "MIT" ]
null
null
null
import json import requests import os from PIL import Image directory = '../static/assets/event_photos/' with open('../static/data.json') as f: data = json.load(f) for event in data['events']: photo_url = event['photo'] # name only; Get rid of query string if present name = photo_url.split('/')[-1].s...
27.192308
88
0.595474
7f459f7f23b17cb4c3d29d23fcf5f8fbc5648ce1
1,175
py
Python
ur_cc_app/__init__.py
Sim4n6/UR-CodingChallenge
287876f76a551e8b5adf92a5218fb7e40d79a825
[ "MIT" ]
null
null
null
ur_cc_app/__init__.py
Sim4n6/UR-CodingChallenge
287876f76a551e8b5adf92a5218fb7e40d79a825
[ "MIT" ]
52
2020-01-03T17:28:43.000Z
2022-03-01T17:08:41.000Z
ur_cc_app/__init__.py
Sim4n6/UR-CodingChallenge
287876f76a551e8b5adf92a5218fb7e40d79a825
[ "MIT" ]
null
null
null
from .config import config_choices import os from flask import Blueprint, Flask from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from flask_marshmallow import Marshmallow from flask_simple_geoip import SimpleGeoIP db = SQLAlchemy() ma = Marshmallow() # Initialize the extension Geo IP lo...
23.979592
86
0.774468
a2a92e6ddaa1e32825eb2b40eb21ff1bac62a9d6
39,717
py
Python
vispy/color/colormap.py
mkkb/vispy
8540f8d96fe3af84ba80bde6d6bf55484eaa8e3a
[ "BSD-3-Clause" ]
null
null
null
vispy/color/colormap.py
mkkb/vispy
8540f8d96fe3af84ba80bde6d6bf55484eaa8e3a
[ "BSD-3-Clause" ]
null
null
null
vispy/color/colormap.py
mkkb/vispy
8540f8d96fe3af84ba80bde6d6bf55484eaa8e3a
[ "BSD-3-Clause" ]
1
2019-03-18T19:35:17.000Z
2019-03-18T19:35:17.000Z
# -*- coding: utf-8 -*- # Copyright (c) Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. from __future__ import division # just to be safe... import inspect import numpy as np from .color_array import ColorArray from ..ext.six import string_types...
37.861773
108
0.532543
7a1ebe162f06b2597b3f259e65253818a4eb6453
4,397
py
Python
system_metrics_collector/test/base_metrics_test.py
ros-tooling/system_metrics_collector
59acb990b3007210c11138ca22d34bb4a892cc05
[ "Apache-2.0" ]
19
2019-10-30T23:57:46.000Z
2021-06-11T09:24:20.000Z
system_metrics_collector/test/base_metrics_test.py
ros-tooling/system_metrics_collector
59acb990b3007210c11138ca22d34bb4a892cc05
[ "Apache-2.0" ]
192
2019-11-04T17:32:06.000Z
2021-06-09T17:08:20.000Z
system_metrics_collector/test/base_metrics_test.py
ros-tooling/system_metrics_collector
59acb990b3007210c11138ca22d34bb4a892cc05
[ "Apache-2.0" ]
9
2019-12-10T13:02:39.000Z
2022-01-11T20:20:16.000Z
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
40.33945
95
0.710939
26c09b34b56db7f4dd497357ea42bafa8669694d
2,496
py
Python
ZimbraBuild/support/gobuild/helpers/maven.py
fciubotaru/z-pec
82335600341c6fb1bb8a471fd751243a90bc4d57
[ "MIT" ]
5
2019-03-26T07:51:56.000Z
2021-08-30T07:26:05.000Z
ZimbraBuild/support/gobuild/helpers/maven.py
fciubotaru/z-pec
82335600341c6fb1bb8a471fd751243a90bc4d57
[ "MIT" ]
1
2015-08-18T19:03:32.000Z
2015-08-18T19:03:32.000Z
ZimbraBuild/support/gobuild/helpers/maven.py
fciubotaru/z-pec
82335600341c6fb1bb8a471fd751243a90bc4d57
[ "MIT" ]
13
2015-03-11T00:26:35.000Z
2020-07-26T16:25:18.000Z
# Copyright 2008 VMware, Inc. All rights reserved. -- VMware Confidential """ Helpers for maven-based targets. """ import os import helpers.target class MavenHelper: """ Helper class for targets that build with maven. """ def _Command(self, hosttype, target, mavenversion='2.0.8', mavenoptions={}, **sys...
33.28
99
0.526843
14c9c6956e2ca318196214f3b0ea7fd29b02440a
1,126
py
Python
btpp/migrations/0001_initial.py
yvesjordan06/hiro_django
24ccfdfaf9258bd254d031563190a45a0d837a02
[ "MIT" ]
null
null
null
btpp/migrations/0001_initial.py
yvesjordan06/hiro_django
24ccfdfaf9258bd254d031563190a45a0d837a02
[ "MIT" ]
null
null
null
btpp/migrations/0001_initial.py
yvesjordan06/hiro_django
24ccfdfaf9258bd254d031563190a45a0d837a02
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2019-11-22 18:41 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Tache', fields=[ ...
33.117647
118
0.581705
47ba48f7e200884893f11a83809fea11ff24f651
1,334
py
Python
setup.py
zcoinofficial/boltzmann
3c04a7609eecf0e2aa0e859ebe9625a0054124cd
[ "MIT" ]
3
2018-05-13T12:48:55.000Z
2019-11-13T04:17:28.000Z
setup.py
zcoinofficial/boltzmann
3c04a7609eecf0e2aa0e859ebe9625a0054124cd
[ "MIT" ]
null
null
null
setup.py
zcoinofficial/boltzmann
3c04a7609eecf0e2aa0e859ebe9625a0054124cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages from setuptools.command.build_ext import build_ext as _build_ext class build_ext(_build_ext): def finalize_options(self): _build_ext.finalize_options(self) # Prevent numpy from thinking it is still in its setup process: __bui...
37.055556
128
0.664918
84525c07c2ea00740eb7547cbabc6c29bf693d6f
19,059
py
Python
legacy/modTurb.py
andreagalle/pigcasso
e9b60fb595ba6bd2c402a5b4b16665d4d41fa748
[ "MIT" ]
null
null
null
legacy/modTurb.py
andreagalle/pigcasso
e9b60fb595ba6bd2c402a5b4b16665d4d41fa748
[ "MIT" ]
4
2020-06-13T09:17:15.000Z
2020-06-17T16:26:03.000Z
legacy/modTurb.py
andreagalle/pigcasso
e9b60fb595ba6bd2c402a5b4b16665d4d41fa748
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jan 7 08:08:12 2016 @author: a.grebert """ import vtk import draft as fct import numpy as np import string import os, sys, shutil import matplotlib.pyplot as plt import modUtils as util import numpy.linalg as la def get1DSpectrum(myArray, Dz): Ruu = np.correlate(myArra...
32.30339
166
0.629676
09408f262ec3e3c104c388ff1c5ff7ff7f689cfd
20,682
py
Python
qubes_storage_zfs/zfs_encrypted.py
ayakael/qubes-storage-zfs
5376af64b3b04b43aa87bfc5e420250c2b75d7ff
[ "BSD-3-Clause" ]
1
2021-06-27T21:39:52.000Z
2021-06-27T21:39:52.000Z
qubes_storage_zfs/zfs_encrypted.py
ayakael/qubes-storage-zfs
5376af64b3b04b43aa87bfc5e420250c2b75d7ff
[ "BSD-3-Clause" ]
null
null
null
qubes_storage_zfs/zfs_encrypted.py
ayakael/qubes-storage-zfs
5376af64b3b04b43aa87bfc5e420250c2b75d7ff
[ "BSD-3-Clause" ]
null
null
null
""" Pool backed by encrypted ZFS zvols on top of an existing zfs_zvol pool. For a breakdown of how the encryption scheme works, see: https://blog.heckel.io/2017/01/08/zfs-encryption-openzfs-zfs-on-linux/ """ import asyncio import libzfs_core import logging import os import subprocess import time import qubes import...
39.469466
81
0.569674
a6f7a227bed3c266973756c319d41aa607039766
2,483
py
Python
src/modeling/deeplab.py
ShotaroKataoka/work_detection_PLOSONE
b8016e0003e11f6eb01355f52804c790a26a7741
[ "MIT" ]
null
null
null
src/modeling/deeplab.py
ShotaroKataoka/work_detection_PLOSONE
b8016e0003e11f6eb01355f52804c790a26a7741
[ "MIT" ]
null
null
null
src/modeling/deeplab.py
ShotaroKataoka/work_detection_PLOSONE
b8016e0003e11f6eb01355f52804c790a26a7741
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from modeling.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d from modeling.aspp import build_aspp from modeling.decoder import build_decoder from modeling.backbone import build_backbone class DeepLab(nn.Module): def __init__(self, backbone...
34.013699
93
0.590012
e4facc0353090058a6d061bf97db79a1f5a5a558
235,535
py
Python
vectorbt/portfolio/base.py
alexis-rodriguez/vectorbt
820edb8a2bf0408fe004198ffadd0a244199534a
[ "Apache-2.0" ]
null
null
null
vectorbt/portfolio/base.py
alexis-rodriguez/vectorbt
820edb8a2bf0408fe004198ffadd0a244199534a
[ "Apache-2.0" ]
null
null
null
vectorbt/portfolio/base.py
alexis-rodriguez/vectorbt
820edb8a2bf0408fe004198ffadd0a244199534a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Oleg Polakow. All rights reserved. # This code is licensed under Apache 2.0 with Commons Clause license (see LICENSE.md for details) """Base class for modeling portfolio and measuring its performance. Provides the class `vectorbt.portfolio.base.Portfolio` for modeling portfolio performance and ca...
42.801199
138
0.579587