hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
d4d848217b89b74f8954cb11200a1df6ecb41ded
4,423
py
Python
legacy_notebooks/data-engineering-1.1.0/Python/classic/includes/main/python/operations.py
david-lyle/databricks-notebooks
7acc142d4e397b92031ee6ab8332f26e290c4d91
[ "Apache-2.0" ]
null
null
null
legacy_notebooks/data-engineering-1.1.0/Python/classic/includes/main/python/operations.py
david-lyle/databricks-notebooks
7acc142d4e397b92031ee6ab8332f26e290c4d91
[ "Apache-2.0" ]
null
null
null
legacy_notebooks/data-engineering-1.1.0/Python/classic/includes/main/python/operations.py
david-lyle/databricks-notebooks
7acc142d4e397b92031ee6ab8332f26e290c4d91
[ "Apache-2.0" ]
1
2022-02-15T08:10:55.000Z
2022-02-15T08:10:55.000Z
# Databricks notebook source from delta.tables import DeltaTable from pyspark.sql import DataFrame from pyspark.sql.functions import ( col, current_timestamp, from_json, from_unixtime, lag, lead, lit, mean, stddev, max, ) from typing import List from pyspark.sql.session import S...
26.171598
127
0.634863
be2a6ebbe3e99733f2253fb60480747b997838c3
56,971
py
Python
editing files/Portable Python 3.2.5.1/App/Lib/site-packages/pandas/core/panel.py
mattl1598/testing
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
null
null
null
editing files/Portable Python 3.2.5.1/App/Lib/site-packages/pandas/core/panel.py
mattl1598/testing
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
1
2018-04-15T22:59:15.000Z
2018-04-15T22:59:15.000Z
editing files/Portable Python 3.2.5.1/App/Lib/site-packages/pandas/core/panel.py
mattl1598/Project-Mochachino
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
null
null
null
""" Contains data structures designed for manipulating panel (3-dimensional) data """ # pylint: disable=E1103,W0231,W0212,W0621 import operator import sys import numpy as np from pandas.core.common import (PandasError, _mut_exclusive, _try_sort, _default_index, _infer_dtype_from_scalar,...
33.219242
129
0.574169
75e0f56e6d618a191e5680cda8b169179ac4901c
445
py
Python
Chapter03/multi_plot.py
allen-zqh/plotly
bcaf0930901e77db07245b63bff049eb75893416
[ "MIT" ]
null
null
null
Chapter03/multi_plot.py
allen-zqh/plotly
bcaf0930901e77db07245b63bff049eb75893416
[ "MIT" ]
null
null
null
Chapter03/multi_plot.py
allen-zqh/plotly
bcaf0930901e77db07245b63bff049eb75893416
[ "MIT" ]
1
2021-02-04T06:56:18.000Z
2021-02-04T06:56:18.000Z
import plotly as py import plotly.graph_objs as go # ----------pre def pyplt = py.offline.plot x = list('ABCDEF') trace1 = go.Scatter( x=x, y=[1.5, 1, 1.3, 0.7, 0.8, 0.9], name='line' ) trace2 = go.Bar( x=x, y=[1, 0.5, 0.7, -1.2, 0.3, 0.4], name = 'bar' ) data = [trace1, trace2] layout = di...
16.481481
58
0.58427
0689919610308dd0d732bac841c7b08afc742905
12,802
py
Python
training/coach_restyle_psp.py
jscarlson/restyle-encoder
8b0c97a6e44ad244efe7bd77f80d7201817c314c
[ "MIT" ]
null
null
null
training/coach_restyle_psp.py
jscarlson/restyle-encoder
8b0c97a6e44ad244efe7bd77f80d7201817c314c
[ "MIT" ]
null
null
null
training/coach_restyle_psp.py
jscarlson/restyle-encoder
8b0c97a6e44ad244efe7bd77f80d7201817c314c
[ "MIT" ]
null
null
null
import os import matplotlib import matplotlib.pyplot as plt matplotlib.use('Agg') import torch from torch import nn from torch.utils.data import DataLoader from torch.utils.tensorboard import SummaryWriter import torch.nn.functional as F from utils import common, train_utils from criteria import id_loss, w_norm, moco...
37.652941
117
0.712467
a630dda8d40c9978d79ca686bc04c07c8e46e47d
526
py
Python
bardolph/controller/routine.py
al-fontes-jr/bardolph
209bba49765c729d8f1479903593043cef274aab
[ "Apache-2.0" ]
null
null
null
bardolph/controller/routine.py
al-fontes-jr/bardolph
209bba49765c729d8f1479903593043cef274aab
[ "Apache-2.0" ]
16
2020-06-15T11:04:10.000Z
2022-03-28T05:39:10.000Z
bardolph/controller/routine.py
al-fontes-jr/bardolph
209bba49765c729d8f1479903593043cef274aab
[ "Apache-2.0" ]
1
2020-06-24T02:01:04.000Z
2020-06-24T02:01:04.000Z
class Routine: def __init__(self, name, address=0): self._name = name self._address = address self._params = [] @property def name(self): return self._name @property def params(self): return self._params def add_param(self, name): self._params.a...
20.230769
40
0.604563
41e1a86f0c0820c472ad13f5daab6036bc45179a
7,153
py
Python
backend/database/wrapper/stats/global_stats_wrapper.py
wildermuthn/DistributedReplays
7fe6ab9f30a47be033779309546bbc9d1343402b
[ "Apache-2.0" ]
null
null
null
backend/database/wrapper/stats/global_stats_wrapper.py
wildermuthn/DistributedReplays
7fe6ab9f30a47be033779309546bbc9d1343402b
[ "Apache-2.0" ]
null
null
null
backend/database/wrapper/stats/global_stats_wrapper.py
wildermuthn/DistributedReplays
7fe6ab9f30a47be033779309546bbc9d1343402b
[ "Apache-2.0" ]
null
null
null
import json import logging import sys import os from sqlalchemy import func path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..')) print(path) sys.path.append(path) from backend.blueprints.spa_api.errors.errors import CalculatedError from backend.database.objects import PlayerGame, G...
42.325444
118
0.603243
054090dffbc5be3069d9a0b53a5dc267a9433c5e
3,510
py
Python
pyzoo/zoo/examples/automl/plugin_model_demo.py
pinggao18/analytics-zoo
30a50e7f93770cb833e4ab99439d5210e2489e86
[ "Apache-2.0" ]
null
null
null
pyzoo/zoo/examples/automl/plugin_model_demo.py
pinggao18/analytics-zoo
30a50e7f93770cb833e4ab99439d5210e2489e86
[ "Apache-2.0" ]
1
2021-01-20T15:41:01.000Z
2021-01-20T15:41:01.000Z
pyzoo/zoo/examples/automl/plugin_model_demo.py
pinggao18/analytics-zoo
30a50e7f93770cb833e4ab99439d5210e2489e86
[ "Apache-2.0" ]
1
2020-12-21T11:48:49.000Z
2020-12-21T11:48:49.000Z
# # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.75
100
0.611396
78b9a1633ea4c7e0d724b867a7057f5af2a35cf9
2,652
py
Python
interviewcake/greedy-algorithm/practices/apple_stocks.py
callmekungfu/daily
aacea65ba5d276ea54e171a59e9fd05365a3bf44
[ "MIT" ]
null
null
null
interviewcake/greedy-algorithm/practices/apple_stocks.py
callmekungfu/daily
aacea65ba5d276ea54e171a59e9fd05365a3bf44
[ "MIT" ]
null
null
null
interviewcake/greedy-algorithm/practices/apple_stocks.py
callmekungfu/daily
aacea65ba5d276ea54e171a59e9fd05365a3bf44
[ "MIT" ]
null
null
null
''' # Writing programming interview questions hasn't made me rich yet ... so I might give up and start trading Apple stocks all day instead. First, I wanna know how much money I could have made yesterday if I'd been trading Apple stocks all day. So I grabbed Apple's stock prices from yesterday and put them in a li...
38.434783
132
0.725867
1075df8371410f31b25c674f9a1443a922c6ad95
2,395
py
Python
speech/setup.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
speech/setup.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
speech/setup.py
rodrigodias27/google-cloud-python
7d1161f70744c0dbbe67a3f472ea95667eaafe50
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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, ...
31.103896
74
0.655532
4b7e58f3a5193b6c5409dbb2da2b428a17be2b53
239
py
Python
erri/python/lesson_26/tableau.py
TGITS/programming-workouts
799e805ccf3fd0936ec8ac2417f7193b8e9bcb55
[ "MIT" ]
null
null
null
erri/python/lesson_26/tableau.py
TGITS/programming-workouts
799e805ccf3fd0936ec8ac2417f7193b8e9bcb55
[ "MIT" ]
16
2020-05-30T12:38:13.000Z
2022-02-19T09:23:31.000Z
erri/python/lesson_26/tableau.py
TGITS/programming-workouts
799e805ccf3fd0936ec8ac2417f7193b8e9bcb55
[ "MIT" ]
null
null
null
def séparation_positif_negatif(tableau): t_positif = [] t_negatif = [] for elt in tableau: if elt < 0: t_negatif.append(elt) else: t_positif.append(elt) return t_positif, t_negatif
19.916667
40
0.58159
0ab78bf08db78f0b0c3a4fb5de8765a80b08a439
6,549
py
Python
tests/test_df_profiler.py
XD-DENG/Optimus
13e7b180f0970addae77cafe128bd2a93be138a2
[ "Apache-2.0" ]
1
2020-09-22T13:04:37.000Z
2020-09-22T13:04:37.000Z
tests/test_df_profiler.py
rafaelang/Optimus
809088f41588c968b2e30210f98a494a497b07ff
[ "Apache-2.0" ]
null
null
null
tests/test_df_profiler.py
rafaelang/Optimus
809088f41588c968b2e30210f98a494a497b07ff
[ "Apache-2.0" ]
null
null
null
from pyspark.sql.types import * from optimus import Optimus from optimus.helpers.json import json_enconding from optimus.helpers.functions import deep_sort import unittest from pyspark.ml.linalg import Vectors, VectorUDT, DenseVector import numpy as np nan = np.nan import datetime from pyspark.sql import functions as F...
261.96
3,674
0.636128
e0aa9347ca7b1c4e39758c1da9173321b499d5cc
3,009
py
Python
tests/performance_benchmarking/island_benchmarks.py
nolanstr/bingo_multi_stage
7a88c4f5c59268d0612664be5864765db2edad51
[ "Apache-2.0" ]
null
null
null
tests/performance_benchmarking/island_benchmarks.py
nolanstr/bingo_multi_stage
7a88c4f5c59268d0612664be5864765db2edad51
[ "Apache-2.0" ]
null
null
null
tests/performance_benchmarking/island_benchmarks.py
nolanstr/bingo_multi_stage
7a88c4f5c59268d0612664be5864765db2edad51
[ "Apache-2.0" ]
null
null
null
import timeit import unittest.mock as mock import numpy as np from bingo.symbolic_regression.agraph.crossover import AGraphCrossover from bingo.symbolic_regression.agraph.mutation import AGraphMutation from bingo.symbolic_regression.agraph.generator import AGraphGenerator from bingo.symbolic_regression.agraph.compone...
31.34375
79
0.691924
6806288512e88d9c4050366bae98ab17cdaf2c0c
2,346
py
Python
filter.py
jcomeauictx/mitmproxy
6d09f5dcad7becb40f2048b2678079b34ca3ea6b
[ "MIT" ]
null
null
null
filter.py
jcomeauictx/mitmproxy
6d09f5dcad7becb40f2048b2678079b34ca3ea6b
[ "MIT" ]
null
null
null
filter.py
jcomeauictx/mitmproxy
6d09f5dcad7becb40f2048b2678079b34ca3ea6b
[ "MIT" ]
null
null
null
#!/usr/bin/python 'https://stackoverflow.com/a/45044199/493161' import os, time LOGDIR = os.getenv('LOGDIR') or os.path.join('var', 'log', 'mitmproxy') HOME = os.path.expanduser('~') CONFDIR = os.getenv('CONFDIR') or os.path.join(HOME, '.mitmproxy') def response(flow): ''' Log response to a unique log for the...
41.157895
73
0.618926
d496e5724c70bd6b2b270eda0302ccf1ea71827c
19,976
py
Python
dynamic_rest/viewsets.py
sagargp/dynamic-rest
116dccb5e3c32b2dd9009f0700d5fa5f2a187c23
[ "MIT" ]
null
null
null
dynamic_rest/viewsets.py
sagargp/dynamic-rest
116dccb5e3c32b2dd9009f0700d5fa5f2a187c23
[ "MIT" ]
null
null
null
dynamic_rest/viewsets.py
sagargp/dynamic-rest
116dccb5e3c32b2dd9009f0700d5fa5f2a187c23
[ "MIT" ]
1
2018-10-22T20:55:42.000Z
2018-10-22T20:55:42.000Z
"""This module contains custom viewset classes.""" from django.core.exceptions import ObjectDoesNotExist from django.http import QueryDict from django.utils import six from rest_framework import exceptions, status, viewsets from rest_framework.exceptions import ValidationError from rest_framework.renderers import Brows...
34.560554
79
0.579095
e7b927fe8c62b162f5d2ea94d699fcae7b414a28
4,901
py
Python
optimus/engines/functions.py
Pcosmin/Optimus
ef3306d1b752bbfb1959ddb9103786acb8e9b9ba
[ "Apache-2.0" ]
1
2020-09-22T13:04:37.000Z
2020-09-22T13:04:37.000Z
optimus/engines/functions.py
rafaelang/Optimus
809088f41588c968b2e30210f98a494a497b07ff
[ "Apache-2.0" ]
null
null
null
optimus/engines/functions.py
rafaelang/Optimus
809088f41588c968b2e30210f98a494a497b07ff
[ "Apache-2.0" ]
null
null
null
# Aggregations from optimus.engines.base.functions import Functions def min(series): return Functions.min(series) def max(series): return Functions.max(series) def kurtosis(series): return series.functions.kurtosis() # return Functions.kurtosis(series) def skew(series): return series.functi...
16.282392
99
0.725566
c8f6dc79e3b8698a8966084a2852180d5ee19050
9,072
py
Python
mlks/runner/run_http.py
ddsky/keras-machine-learning-framework
049ee78984f2f61165ff67506b0ced74b2928be9
[ "MIT" ]
1
2020-11-10T09:00:54.000Z
2020-11-10T09:00:54.000Z
mlks/runner/run_http.py
ddsky/keras-machine-learning-framework
049ee78984f2f61165ff67506b0ced74b2928be9
[ "MIT" ]
null
null
null
mlks/runner/run_http.py
ddsky/keras-machine-learning-framework
049ee78984f2f61165ff67506b0ced74b2928be9
[ "MIT" ]
null
null
null
# Machine Learning Keras Suite # # The base http server for debugging purposes # # Author: Björn Hempel <bjoern@hempel.li> # Date: 13.10.2019 # Web: https://github.com/bjoern-hempel/machine-learning-keras-suite # # LICENSE # # MIT License # # Copyright (c) 2019 Björn Hempel <bjoern@hempel.li> # # Permission is her...
37.958159
119
0.554563
0da0f34900c917f7b6f4a901b36a3959b02d4254
41,966
py
Python
src/python/pants/engine/internals/graph.py
g-cassie/pants
b73fe2816c62d265975122234013c08df9f9f4dd
[ "Apache-2.0" ]
null
null
null
src/python/pants/engine/internals/graph.py
g-cassie/pants
b73fe2816c62d265975122234013c08df9f9f4dd
[ "Apache-2.0" ]
null
null
null
src/python/pants/engine/internals/graph.py
g-cassie/pants
b73fe2816c62d265975122234013c08df9f9f4dd
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import functools import itertools import logging import os.path from dataclasses import dataclass from pathlib import PurePath from typing import Dict, ...
40.351923
100
0.654315
beb95d0398c0bb7d1bc8a17754c715dd4dc6da5f
112
py
Python
.history/ClassFiles/Control Flow/Elif_20210101185036.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Control Flow/Elif_20210101185036.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Control Flow/Elif_20210101185036.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
''' elif Statements Used to check multiple expressions for True conditions. if(Condition1): '''
8.615385
55
0.651786
4899933dab6ffbb06a04fa8b8ab65777d7398302
381
py
Python
raspsocket.py
2dadsgn/smart-vase-sensor-raspberry
54051dec478dd94d3a4e04772a1a50c842b687ff
[ "Apache-2.0" ]
null
null
null
raspsocket.py
2dadsgn/smart-vase-sensor-raspberry
54051dec478dd94d3a4e04772a1a50c842b687ff
[ "Apache-2.0" ]
null
null
null
raspsocket.py
2dadsgn/smart-vase-sensor-raspberry
54051dec478dd94d3a4e04772a1a50c842b687ff
[ "Apache-2.0" ]
null
null
null
import socket import json def invio_dati(dati, ip): #connessione al server s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((ip,1238)) #trasformo in oggetto json # invio dati s.send(bytes("#123abc", "utf-8")) s.send(bytes(dati, "utf-8")) #messaggio per connesione ri...
18.142857
57
0.645669
d119ccb372ef7486083ae82040aab93bfc5fe853
927
py
Python
test/test_item_number_type_dto.py
Dangl-IT/avacloud-client-python
66f555096bbbc87d02d02e4e2dfb0c6accb18f95
[ "RSA-MD" ]
1
2019-01-12T18:10:24.000Z
2019-01-12T18:10:24.000Z
test/test_item_number_type_dto.py
Dangl-IT/avacloud-client-python
66f555096bbbc87d02d02e4e2dfb0c6accb18f95
[ "RSA-MD" ]
null
null
null
test/test_item_number_type_dto.py
Dangl-IT/avacloud-client-python
66f555096bbbc87d02d02e4e2dfb0c6accb18f95
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ AVACloud API 1.17.3 AVACloud API specification # noqa: E501 OpenAPI spec version: 1.17.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import avacloud_client_python from avacloud_client_python....
22.609756
102
0.719525
275a94d0640c159ccd4012eaf0de555538e3df06
2,096
py
Python
docs/conf.py
euanrussano/tinyshop
263280258e55351c833064889ee847ce137dd4d3
[ "MIT" ]
null
null
null
docs/conf.py
euanrussano/tinyshop
263280258e55351c833064889ee847ce137dd4d3
[ "MIT" ]
null
null
null
docs/conf.py
euanrussano/tinyshop
263280258e55351c833064889ee847ce137dd4d3
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.933333
79
0.670324
bb33ffa3044b171376a992e241fd21a6a52096c8
1,020
py
Python
linkit-project/linkit/urls.py
OIrabor24/Reddit-Clone-RestAPI
001660c2523244b411804cab70f0c92e2228de65
[ "MIT" ]
null
null
null
linkit-project/linkit/urls.py
OIrabor24/Reddit-Clone-RestAPI
001660c2523244b411804cab70f0c92e2228de65
[ "MIT" ]
null
null
null
linkit-project/linkit/urls.py
OIrabor24/Reddit-Clone-RestAPI
001660c2523244b411804cab70f0c92e2228de65
[ "MIT" ]
null
null
null
"""linkit URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
39.230769
77
0.701961
2f228cde794b127e59c3fca3d5ac0602bcca1644
396
py
Python
exercicios/ex028.py
RaquelBotelhoof/Python-curso-em-video
919b2f44e85647c096c6b734c991635f1bfd1af9
[ "MIT" ]
null
null
null
exercicios/ex028.py
RaquelBotelhoof/Python-curso-em-video
919b2f44e85647c096c6b734c991635f1bfd1af9
[ "MIT" ]
null
null
null
exercicios/ex028.py
RaquelBotelhoof/Python-curso-em-video
919b2f44e85647c096c6b734c991635f1bfd1af9
[ "MIT" ]
null
null
null
from random import randint from time import sleep computador = randint(0, 5) print('-=-'*20) print('Vou pensar em um número de 0 a 5. Tente adivinhar... ') print('-=-'*20) jogador = int(input('Em qual número eu pensei?')) print('PROCESSANDO...') sleep(3) if jogador == computador: print('Você acertou, me VENCEU!! Pa...
24.75
62
0.676768
8674f3643a69b6982cdbd02d05135198ce509c1f
5,671
py
Python
tools_webrtc/version_updater/update_version.py
jickykung/webrtc_src
a18cad9c099d8fe7fd5ac91d4adfd468a1ac95e7
[ "BSD-3-Clause" ]
null
null
null
tools_webrtc/version_updater/update_version.py
jickykung/webrtc_src
a18cad9c099d8fe7fd5ac91d4adfd468a1ac95e7
[ "BSD-3-Clause" ]
null
null
null
tools_webrtc/version_updater/update_version.py
jickykung/webrtc_src
a18cad9c099d8fe7fd5ac91d4adfd468a1ac95e7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All c...
33.358824
85
0.585787
a9b590618c1fefa51d964c6ae70708512d20a395
1,169
py
Python
django-payments-instamojo/setup.py
FadedCoder/Teeshood
4d0659ba1ece52ca9579582165fadc095770ad37
[ "BSD-3-Clause" ]
null
null
null
django-payments-instamojo/setup.py
FadedCoder/Teeshood
4d0659ba1ece52ca9579582165fadc095770ad37
[ "BSD-3-Clause" ]
null
null
null
django-payments-instamojo/setup.py
FadedCoder/Teeshood
4d0659ba1ece52ca9579582165fadc095770ad37
[ "BSD-3-Clause" ]
1
2021-12-02T18:49:31.000Z
2021-12-02T18:49:31.000Z
from setuptools import setup setup(name='django-payments-instamojo', version='0.1.3', description='Instamojo Provider for django-payments', url='http://github.com/FadedCoder/django-payments-instamojo', author='Soham Sen', author_email='contact@sohamsen.me', maintainer='Soham Sen', ...
38.966667
81
0.620188
280fffebf95edfd9a8b494a76e7782865780262f
6,741
py
Python
custom_jinja_filters.py
276793422/attack-website
9be8abbb8d77c3c73243cae2689f1af9725d19f9
[ "Apache-2.0" ]
327
2018-11-22T07:01:30.000Z
2022-03-30T09:25:02.000Z
custom_jinja_filters.py
276793422/attack-website
9be8abbb8d77c3c73243cae2689f1af9725d19f9
[ "Apache-2.0" ]
239
2019-02-11T13:47:44.000Z
2022-03-30T06:20:47.000Z
custom_jinja_filters.py
276793422/attack-website
9be8abbb8d77c3c73243cae2689f1af9725d19f9
[ "Apache-2.0" ]
111
2019-01-25T12:58:56.000Z
2022-03-30T09:25:04.000Z
#!/usr/bin/env python import json import markdown import re import os from modules import site_config # Template for HTML references inside of STIX data reference_marker_template = ("<span onclick=scrollToRef('scite-{}') " "id=\"scite-ref-{}-a\" class=\"scite" "...
35.293194
157
0.612965
b3faf9b915462d3f0505f23278314f9f82ba3cd2
772
py
Python
habitacion_main/urls.py
RamirezJosue/habitacion-service
5e67e7401c5a1515856165d3879c9472d8f486d9
[ "MIT" ]
null
null
null
habitacion_main/urls.py
RamirezJosue/habitacion-service
5e67e7401c5a1515856165d3879c9472d8f486d9
[ "MIT" ]
null
null
null
habitacion_main/urls.py
RamirezJosue/habitacion-service
5e67e7401c5a1515856165d3879c9472d8f486d9
[ "MIT" ]
null
null
null
"""habitacion_main URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') ...
35.090909
79
0.707254
0abdcdfd5207f83bcde2d6b9e5f082ea55ebbfeb
3,403
py
Python
intersight/models/storage_local_disk.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/storage_local_disk.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/storage_local_disk.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 StorageLocalDisk(object): """ NOTE: This clas...
27.007937
193
0.566559
85ffa2f1e82b35e8538c7ac057df575cce10608a
7,883
py
Python
wbb/__main__.py
Noobie-uwu/itsuki-bot
019a5b5c872f426ac0d8154c7a215ea7880727c9
[ "MIT" ]
null
null
null
wbb/__main__.py
Noobie-uwu/itsuki-bot
019a5b5c872f426ac0d8154c7a215ea7880727c9
[ "MIT" ]
null
null
null
wbb/__main__.py
Noobie-uwu/itsuki-bot
019a5b5c872f426ac0d8154c7a215ea7880727c9
[ "MIT" ]
1
2022-02-03T08:01:00.000Z
2022-02-03T08:01:00.000Z
""" MIT License Copyright (c) 2021 TheHamkerCat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
33.832618
190
0.60104
1a2a0a5ce7fdc44f8f8b3f74bd19927cc6a9331f
577
py
Python
ch02/question_5.py
dhrey112/IntroToPython_Deitel
7ecbff931d05c467ad64da0bd829f79fedf729ba
[ "MIT" ]
null
null
null
ch02/question_5.py
dhrey112/IntroToPython_Deitel
7ecbff931d05c467ad64da0bd829f79fedf729ba
[ "MIT" ]
null
null
null
ch02/question_5.py
dhrey112/IntroToPython_Deitel
7ecbff931d05c467ad64da0bd829f79fedf729ba
[ "MIT" ]
null
null
null
# TODO: 5. (Circle Area, Diameter and Circumference) For a circle of radius 2, # display the diameter, circumference and area. Use the value 3.14159 for π. # Use the following formulas (r is the radius): diameter = 2r, circumference # = 2πr and area = πr . [In a later chapter, we’ll introduce Python’s math # module...
32.055556
78
0.707106
bd5334171211e832df27ed93c383fb929905b971
16,290
py
Python
tests/components/homekit/test_type_media_players.py
twrecked/core
d3ae8a938cdea9b6e0d443c91c37ac3dbbd459ab
[ "Apache-2.0" ]
2
2021-09-13T21:44:02.000Z
2021-12-17T21:20:51.000Z
tests/components/homekit/test_type_media_players.py
twrecked/core
d3ae8a938cdea9b6e0d443c91c37ac3dbbd459ab
[ "Apache-2.0" ]
5
2021-02-08T20:55:25.000Z
2022-03-12T00:51:18.000Z
tests/components/homekit/test_type_media_players.py
twrecked/core
d3ae8a938cdea9b6e0d443c91c37ac3dbbd459ab
[ "Apache-2.0" ]
2
2020-11-04T07:40:01.000Z
2021-09-13T21:44:03.000Z
"""Test different accessory types: Media Players.""" from homeassistant.components.homekit.const import ( ATTR_VALUE, CONF_FEATURE_LIST, FEATURE_ON_OFF, FEATURE_PLAY_PAUSE, FEATURE_PLAY_STOP, FEATURE_TOGGLE_MUTE, ) from homeassistant.components.homekit.type_media_players import ( MediaPlaye...
36.119734
86
0.728668
96a110795685bc9ebd8d91200db74ff19c4486ec
1,133
py
Python
setup.py
armgilles/jitenshea
65c04dfda5b10e93d7f0674e96bfa91ed42d0755
[ "MIT" ]
null
null
null
setup.py
armgilles/jitenshea
65c04dfda5b10e93d7f0674e96bfa91ed42d0755
[ "MIT" ]
null
null
null
setup.py
armgilles/jitenshea
65c04dfda5b10e93d7f0674e96bfa91ed42d0755
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import setuptools with open("README.md") as fobj: LONG_DESCRIPTION = fobj.read() INSTALL_REQUIRES = ["pandas", "requests", "psycopg2-binary", "luigi", 'sqlalchemy', 'lxml', 'xgboost', 'daiquiri', 'flask-restplus', 'sh', 'scikit-learn', 'tables'] ...
29.815789
83
0.622242
036a47d8cb38e5cb916e0b23dd2ea6071f8dffc7
16,683
py
Python
analysis/dimensionalty_sim/neurons.py
htem/cb2_project_analysis
a677cbadc7e3bf0074975a94ed1d06b4801899c0
[ "MIT" ]
null
null
null
analysis/dimensionalty_sim/neurons.py
htem/cb2_project_analysis
a677cbadc7e3bf0074975a94ed1d06b4801899c0
[ "MIT" ]
null
null
null
analysis/dimensionalty_sim/neurons.py
htem/cb2_project_analysis
a677cbadc7e3bf0074975a94ed1d06b4801899c0
[ "MIT" ]
null
null
null
import random import math import copy import numpy as np import logging import collections logger = logging.getLogger(__name__) class GranuleCell(): def __init__( self, # num_mfs, # num_dendrite, claws, claw_weights=None, # act_threshold, # grc_act_on_fail...
30.837338
131
0.556195
b18b95973d20e571990f73a94bf956ca8e68f980
3,614
py
Python
lec22/step5.py
christophernhill-dev/fall-2021-12.010
5b417379d436896c6c20886780a93a4876797a1c
[ "MIT" ]
2
2021-09-09T19:50:06.000Z
2021-09-16T19:09:02.000Z
lec22/step5.py
christophernhill-dev/fall-2021-12.010
5b417379d436896c6c20886780a93a4876797a1c
[ "MIT" ]
null
null
null
lec22/step5.py
christophernhill-dev/fall-2021-12.010
5b417379d436896c6c20886780a93a4876797a1c
[ "MIT" ]
8
2021-12-02T02:15:45.000Z
2021-12-02T20:30:39.000Z
#!/usr/bin/env python # # From N processes, each with their own id (rank), use MPI library to report # each process rank, total number of processes and the name of the host machine # on which the process resides. # from mpi4py import MPI import numpy as np import matplotlib.pyplot as plt comm = MPI.COMM_WORLD ran...
27.378788
80
0.722745
b996966f5ee392d24ca229934e33b5e27ce1dd77
104
py
Python
src/api/pdi/domain/lookup/LookupDto.py
ahmetcagriakca/pythondataintegrator
079b968d6c893008f02c88dbe34909a228ac1c7b
[ "MIT" ]
1
2020-12-18T21:37:28.000Z
2020-12-18T21:37:28.000Z
src/api/pdi/domain/lookup/LookupDto.py
ahmetcagriakca/pythondataintegrator
079b968d6c893008f02c88dbe34909a228ac1c7b
[ "MIT" ]
null
null
null
src/api/pdi/domain/lookup/LookupDto.py
ahmetcagriakca/pythondataintegrator
079b968d6c893008f02c88dbe34909a228ac1c7b
[ "MIT" ]
1
2020-12-18T21:37:31.000Z
2020-12-18T21:37:31.000Z
from dataclasses import dataclass @dataclass class LookupDto: Id: int = None Name: int = None
13
33
0.701923
f5670e1a09cbf4be4de71a208d20f78092619f65
5,794
py
Python
scripts/penta10test.py
emathew1/MPI_3DCompact
1945eabdc240e8754c9ea356ba954683dee0149f
[ "MIT" ]
2
2021-01-14T21:13:53.000Z
2022-01-16T23:03:43.000Z
scripts/penta10test.py
emathew1/MPI_3DCompact
1945eabdc240e8754c9ea356ba954683dee0149f
[ "MIT" ]
null
null
null
scripts/penta10test.py
emathew1/MPI_3DCompact
1945eabdc240e8754c9ea356ba954683dee0149f
[ "MIT" ]
3
2018-11-17T21:24:57.000Z
2020-08-02T03:19:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Feb 10 21:24:14 2019 @author: edwin """ # %% import numpy as np import matplotlib.pyplot as plt #%% N = 25 A = np.zeros((N,N)) B = np.zeros((N,N)) #Interior points #Penta 10 beta = 1.0/20.0; alpha = 1.0/2.0; a = 17.0/12.0; b = 101....
16.843023
56
0.427856
7d08331d8a5c2cd91a3a93971be64ee733bca531
981
py
Python
src/calendar_export.py
soxidus/Boardgame-Bot
6c54ce090b0ddb3f41431c4d17e6b89523f817d8
[ "MIT" ]
null
null
null
src/calendar_export.py
soxidus/Boardgame-Bot
6c54ce090b0ddb3f41431c4d17e6b89523f817d8
[ "MIT" ]
1
2020-07-05T19:36:12.000Z
2020-07-05T19:36:12.000Z
src/calendar_export.py
soxidus/Boardgame-Bot
6c54ce090b0ddb3f41431c4d17e6b89523f817d8
[ "MIT" ]
null
null
null
from icalendar import Calendar, Event from datetime import datetime from os import remove from parse_strings import generate_uuid_32 def create_ics_file(title, date): calendar = Calendar() calendar.add('prodid', '-//Meeple - Auto-Ical//') calendar.add('version', '2.0') gamenight_event = Event() g...
30.65625
96
0.678899
ced4760658fbef993e0b2f4523353a3e1caca2e2
2,598
py
Python
tests/tests.py
qureshizawar/CUDA-quartic-solver
97a24e5e1818b51c6bd3ac6fc9728f1dc2a3743b
[ "MIT" ]
6
2020-04-27T15:34:08.000Z
2022-02-23T06:34:18.000Z
tests/tests.py
qureshizawar/CUDA-quartic-solver
97a24e5e1818b51c6bd3ac6fc9728f1dc2a3743b
[ "MIT" ]
null
null
null
tests/tests.py
qureshizawar/CUDA-quartic-solver
97a24e5e1818b51c6bd3ac6fc9728f1dc2a3743b
[ "MIT" ]
2
2020-05-05T11:45:48.000Z
2021-07-21T06:33:51.000Z
import numpy as np import QuarticSolver def test1(): eps = 1e-5 correct_minimum = -2 N = 1<<9 A = np.ones(N)*2 B = np.ones(N)*-4 C = np.ones(N)*-22 D = np.ones(N)*24 E = np.ones(N)*2 minimum = QuarticSolver.QuarticMinimum(A,B,C,D,E,True) res = np.sum(minimum)/N assert abs(...
20.951613
58
0.563895
c3d827db7800a3fecaef90199b3f9326d68cb7c2
4,179
py
Python
flearn/trainers/fedprox.py
xiby/FedProx
e9423634e7d01bcc72df614dd941ffdd3d1266b5
[ "MIT" ]
371
2019-01-26T01:15:53.000Z
2022-03-29T17:41:41.000Z
flearn/trainers/fedprox.py
xiby/FedProx
e9423634e7d01bcc72df614dd941ffdd3d1266b5
[ "MIT" ]
24
2019-04-19T12:22:05.000Z
2022-02-09T23:29:38.000Z
flearn/trainers/fedprox.py
xiby/FedProx
e9423634e7d01bcc72df614dd941ffdd3d1266b5
[ "MIT" ]
115
2019-07-02T04:11:14.000Z
2022-03-19T16:57:00.000Z
import numpy as np from tqdm import trange, tqdm import tensorflow as tf from .fedbase import BaseFedarated from flearn.optimizer.pgd import PerturbedGradientDescent from flearn.utils.tf_utils import process_grad, process_sparse_grad class Server(BaseFedarated): def __init__(self, params, learner, dataset): ...
48.034483
136
0.627423
e7e03a2b70a5f153fb24837a79529dacab8727e7
24,720
py
Python
zerver/webhooks/bitbucket2/tests.py
coderkoala/zulipnew
8aa03dc71948559cde7b436a72a182f8680f7b47
[ "Apache-2.0" ]
4
2019-06-04T09:06:53.000Z
2019-06-04T09:07:47.000Z
zerver/webhooks/bitbucket2/tests.py
BackGroundC/zulip
2bd6d275a70a7683986edc72fa8585726e976604
[ "Apache-2.0" ]
null
null
null
zerver/webhooks/bitbucket2/tests.py
BackGroundC/zulip
2bd6d275a70a7683986edc72fa8585726e976604
[ "Apache-2.0" ]
1
2020-02-06T13:56:40.000Z
2020-02-06T13:56:40.000Z
# -*- coding: utf-8 -*- from mock import MagicMock, patch from zerver.lib.test_classes import WebhookTestCase class Bitbucket2HookTests(WebhookTestCase): STREAM_NAME = 'bitbucket2' URL_TEMPLATE = "/api/v1/external/bitbucket2?stream={stream}&api_key={api_key}" FIXTURE_DIR_NAME = 'bitbucket2' EXPECTED_T...
74.234234
484
0.748139
2c256f28237f5f6a1f9f0f05d71f079c61c83d44
377
py
Python
examples/pygame_display/display_layouts_shapes_test.py
FoamyGuy/Foamyguy_CircuitPython_DisplayIO_Inflater
c86d50c8727b4912d94c56226b58a35ccddb815d
[ "MIT", "MIT-0", "Unlicense" ]
3
2020-06-29T19:00:23.000Z
2021-05-06T21:56:07.000Z
examples/pygame_display/display_layouts_shapes_test.py
FoamyGuy/circuitpython_display_layouts
d4380236d0613af8b77aaeeeb8d71dbd0a14dbd7
[ "MIT" ]
null
null
null
examples/pygame_display/display_layouts_shapes_test.py
FoamyGuy/circuitpython_display_layouts
d4380236d0613af8b77aaeeeb8d71dbd0a14dbd7
[ "MIT" ]
null
null
null
from display_layouts.absolute_layout import AbsoluteLayout from blinka_displayio_pygamedisplay import PyGameDisplay import os os.chdir("..") display = PyGameDisplay(width=800, height=600) f = open("layouts/shapes_test.json", "r") layout_str = f.read() f.close() main_layout = AbsoluteLayout(display, layout_str) displa...
25.133333
58
0.793103
291456277e62caedd9a2f001ed22f5c7892803a3
11,832
py
Python
config/settings/base.py
developertoentrepreneur/d2e-share-splitter
3dc406c726a801b507aa0b049fce8a2ab5d1bf2d
[ "MIT" ]
null
null
null
config/settings/base.py
developertoentrepreneur/d2e-share-splitter
3dc406c726a801b507aa0b049fce8a2ab5d1bf2d
[ "MIT" ]
5
2022-01-09T07:40:38.000Z
2022-02-12T19:38:54.000Z
config/settings/base.py
developertoentrepreneur/d2e_share_splitter
3dc406c726a801b507aa0b049fce8a2ab5d1bf2d
[ "MIT" ]
null
null
null
""" Base settings to build other settings files upon. """ from pathlib import Path import environ ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent # d2e_share_splitter/ APPS_DIR = ROOT_DIR / "d2e_share_splitter" env = environ.Env() READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=F...
40.8
93
0.6381
e787d7b6d1a5ad8394e9f39f539b91c427ba9272
7,507
py
Python
Classifier/preproc/soldability_mean_diff_median_by_session.py
leonardoads/RecSys-cariris
98098bb072d3ab8f1faed248f350472c62cb199b
[ "Apache-2.0" ]
null
null
null
Classifier/preproc/soldability_mean_diff_median_by_session.py
leonardoads/RecSys-cariris
98098bb072d3ab8f1faed248f350472c62cb199b
[ "Apache-2.0" ]
null
null
null
Classifier/preproc/soldability_mean_diff_median_by_session.py
leonardoads/RecSys-cariris
98098bb072d3ab8f1faed248f350472c62cb199b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #Para cada linha que representa uma click de uma SESSÃO em um ITEM, inserir o dado de clicks dados na mesma CATEGORIA do item em questão #INPUT #clicks_proc_basico.dat #SESSION, DAY, MONTH, YEAR, TIME, ITEM, CATEGORY, SOLDABILITY #1, 7, 4, 2014, 10.85, 21453650...
30.148594
138
0.693752
909ab756a049cb4304e094a00950ea6251074485
2,597
py
Python
freenit/decorators.py
Dervish13/backend-1
c94231df3e7f3f6440e96d786d581e504de8cb33
[ "BSD-2-Clause" ]
3
2020-01-10T09:43:24.000Z
2022-01-17T20:54:37.000Z
freenit/decorators.py
Dervish13/backend-1
c94231df3e7f3f6440e96d786d581e504de8cb33
[ "BSD-2-Clause" ]
4
2020-01-31T12:12:56.000Z
2021-01-13T12:37:23.000Z
freenit/decorators.py
Dervish13/backend-1
c94231df3e7f3f6440e96d786d581e504de8cb33
[ "BSD-2-Clause" ]
3
2019-11-18T15:28:24.000Z
2022-01-21T11:32:45.000Z
def FreenitAPI(app): class route: def __init__(self, route, tags=["object"], many=False, responses={}): self.app = app self.route = route self.tags = tags self.many = many self.responses = responses def __call__(self, cls): ori...
40.578125
77
0.447054
ef381104cb69f3f3309d19fca1c19002b2366924
176
py
Python
PythonExercicios/Mundo 1/3_operadores_aritimeticos/ex015.py
GuilhermoCampos/Curso-Python3-curso-em-video
723767bc6069e9c1fa9e28fe412e694f9eb8d05e
[ "MIT" ]
null
null
null
PythonExercicios/Mundo 1/3_operadores_aritimeticos/ex015.py
GuilhermoCampos/Curso-Python3-curso-em-video
723767bc6069e9c1fa9e28fe412e694f9eb8d05e
[ "MIT" ]
null
null
null
PythonExercicios/Mundo 1/3_operadores_aritimeticos/ex015.py
GuilhermoCampos/Curso-Python3-curso-em-video
723767bc6069e9c1fa9e28fe412e694f9eb8d05e
[ "MIT" ]
null
null
null
d = int(input('Quantos dias alugados?:')) km = float(input('Quantos de kilometros percorridos?: ')) t = (km * 0.15) + (d * 60) print('O total a ser pago é R${:.2f}'.format(t))
35.2
57
0.619318
2a6c3c8ac55a736f80f545f3b71054284c5c3673
2,385
py
Python
rasa/run.py
orcaformation/chatbot_widget
cdbc0db5103a5a701878804ba183d5448823c798
[ "Apache-2.0" ]
37
2019-06-07T07:39:00.000Z
2022-01-27T08:32:57.000Z
rasa/run.py
orcaformation/chatbot_widget
cdbc0db5103a5a701878804ba183d5448823c798
[ "Apache-2.0" ]
93
2020-10-22T10:41:26.000Z
2022-03-01T13:34:43.000Z
rasa/run.py
orcaformation/chatbot_widget
cdbc0db5103a5a701878804ba183d5448823c798
[ "Apache-2.0" ]
65
2019-05-21T12:16:53.000Z
2022-02-23T10:54:15.000Z
import logging import typing from typing import Dict, Text import rasa.shared.utils.common from rasa.shared.utils.cli import print_warning from rasa.shared.constants import DOCS_BASE_URL from rasa.core.lock_store import LockStore logger = logging.getLogger(__name__) if typing.TYPE_CHECKING: from rasa.core.agent ...
29.444444
88
0.69979
a8c2ac58d6fb17f5df9788a4b1f438a26e58f7c7
117,274
py
Python
transformers/src/transformers/pipelines.py
jordiclive/ControlPrefixes
b647f68bf0c7e771f847c4a51e5f22af2ac95699
[ "Apache-1.1" ]
26
2021-11-23T09:01:32.000Z
2022-03-25T11:34:15.000Z
transformers/src/transformers/pipelines.py
jordiclive/ControlPrefixes
b647f68bf0c7e771f847c4a51e5f22af2ac95699
[ "Apache-1.1" ]
3
2021-12-10T17:43:23.000Z
2022-03-18T11:37:19.000Z
transformers/src/transformers/pipelines.py
jordiclive/ControlPrefixes
b647f68bf0c7e771f847c4a51e5f22af2ac95699
[ "Apache-1.1" ]
5
2021-12-19T03:22:08.000Z
2022-02-14T04:41:04.000Z
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # 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...
42.722769
183
0.610272
475b05c9b4712eac9d902eab4175ce7d5498d259
10,831
py
Python
rsyslog_exporter.py
pangeoradar/rsyslog_exporter_py
1008e243bac7f8499d9a68df312e163802455d84
[ "Apache-2.0" ]
1
2020-10-02T07:54:27.000Z
2020-10-02T07:54:27.000Z
rsyslog_exporter.py
pangeoradar/rsyslog_exporter_py
1008e243bac7f8499d9a68df312e163802455d84
[ "Apache-2.0" ]
null
null
null
rsyslog_exporter.py
pangeoradar/rsyslog_exporter_py
1008e243bac7f8499d9a68df312e163802455d84
[ "Apache-2.0" ]
1
2021-09-07T09:48:50.000Z
2021-09-07T09:48:50.000Z
#!/usr/bin/env python3 """ Export rsyslog counters as prometheus metrics (impstats via omprog) Copyright (c) 2018, Yury Bushmelev <jay4mail@gmail.com> 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 ...
32.139466
105
0.58351
5d8a6621102fb2994ea86d0959be0a19ffae7ce1
2,592
py
Python
src/epc_exporter/collector/vppctl_show_interface.py
cisco-cx/epc_exporter
8c433631dcb8118e213f67020760a2d30b4876e0
[ "X11" ]
null
null
null
src/epc_exporter/collector/vppctl_show_interface.py
cisco-cx/epc_exporter
8c433631dcb8118e213f67020760a2d30b4876e0
[ "X11" ]
null
null
null
src/epc_exporter/collector/vppctl_show_interface.py
cisco-cx/epc_exporter
8c433631dcb8118e213f67020760a2d30b4876e0
[ "X11" ]
null
null
null
""" Collects vppctl "show interface" command and parses it """ from prometheus_client import REGISTRY from prometheus_client.metrics_core import GaugeMetricFamily from collector.abstract_command_collector import AbstractCommandCollector from collector.utils import add_gauge_metrics from device import AbstractDevice ...
37.565217
78
0.580247
1e9814bccefe4fd8b8fdd5ce610de619d0386b46
2,834
py
Python
src/ggrc/migrations/versions/20130709122154_201c3f33e44c_add_context_model.py
sriharshakappala/ggrc-core
7561ce27cd987d73468a44df5b6e2b7425f050ef
[ "ECL-2.0", "Apache-2.0" ]
1
2019-04-21T12:21:17.000Z
2019-04-21T12:21:17.000Z
src/ggrc/migrations/versions/20130709122154_201c3f33e44c_add_context_model.py
sriharshakappala/ggrc-core
7561ce27cd987d73468a44df5b6e2b7425f050ef
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/migrations/versions/20130709122154_201c3f33e44c_add_context_model.py
sriharshakappala/ggrc-core
7561ce27cd987d73468a44df5b6e2b7425f050ef
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
"""Add context model Revision ID: 201c3f33e44c Revises: 26641df89c2c Create Date: 2013-07-09 12:21:54.312795 """ # revision identifiers, used by Alembic. revision = '201c3f33e44c' down_revision = '26641df89c2c' from alembic import op from sqlalchemy.sql import table, column import sqlalchemy as sa all_tables = [ ...
25.531532
75
0.63338
17f9c2f5f82ac8db458703a478f017d83a591c45
391
py
Python
crudcbv/crudcbv/wsgi.py
souluanf/django-essencial
95d4d6d85bbe590ae95c3b26fb9577b97c2f5e7c
[ "MIT" ]
null
null
null
crudcbv/crudcbv/wsgi.py
souluanf/django-essencial
95d4d6d85bbe590ae95c3b26fb9577b97c2f5e7c
[ "MIT" ]
33
2020-08-04T00:46:16.000Z
2022-03-12T00:45:43.000Z
crudcbv/crudcbv/wsgi.py
souluanf/django-essencial
95d4d6d85bbe590ae95c3b26fb9577b97c2f5e7c
[ "MIT" ]
null
null
null
""" WSGI config for crudcbv 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
e0fc7f8373891ddb597fd7e131589ea5dc9ba6ea
6,402
py
Python
blscint/ne2001.py
bbrzycki/blscint
1a2b9d28b8eebf407a4bc0593b31390f39becf9b
[ "MIT" ]
null
null
null
blscint/ne2001.py
bbrzycki/blscint
1a2b9d28b8eebf407a4bc0593b31390f39becf9b
[ "MIT" ]
null
null
null
blscint/ne2001.py
bbrzycki/blscint
1a2b9d28b8eebf407a4bc0593b31390f39becf9b
[ "MIT" ]
null
null
null
import os import subprocess import numpy as np from astropy import units as u from astropy.coordinates import SkyCoord from astropy import constants as const import matplotlib.pyplot as plt import tqdm def to_galactic(ra, dec=None): """ Convert RA/Dec to galactic coordinates (l, b). Parameters ...
27.476395
86
0.548266
32ee56b5881744845ee9906b7326e74e573e9fdd
395
py
Python
backend/fff_28914/wsgi.py
crowdbotics-apps/fff-28914
34a1d252b080b35659afcdb5ea79db529551623d
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/fff_28914/wsgi.py
crowdbotics-apps/fff-28914
34a1d252b080b35659afcdb5ea79db529551623d
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/fff_28914/wsgi.py
crowdbotics-apps/fff-28914
34a1d252b080b35659afcdb5ea79db529551623d
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for fff_28914 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
ca940ba53603683723851000f6832442d70ca641
9,163
py
Python
pytorch3dunet/unet3d/model.py
ciubecca/3dunet-cavity
cfcc827773b18a95d221ab86c1afc5e2f7c30ecb
[ "MIT" ]
null
null
null
pytorch3dunet/unet3d/model.py
ciubecca/3dunet-cavity
cfcc827773b18a95d221ab86c1afc5e2f7c30ecb
[ "MIT" ]
null
null
null
pytorch3dunet/unet3d/model.py
ciubecca/3dunet-cavity
cfcc827773b18a95d221ab86c1afc5e2f7c30ecb
[ "MIT" ]
null
null
null
import importlib import torch.nn as nn import torch from pytorch3dunet.unet3d.buildingblocks import DoubleConv, ExtResNetBlock, create_encoders, \ create_decoders from pytorch3dunet.unet3d.utils import number_of_features_per_level from pytorch3dunet.datasets.featurizer import BaseFeatureList class Ab...
47.973822
124
0.610499
87777ab34e70326a6effe8c2d4e92b3dfb0e90af
22,747
py
Python
skrebate/relieff.py
benstear/scikit-rebate
43a9537f203b9c2ee125800810ac704e6bda3fb9
[ "MIT" ]
2
2020-03-01T04:11:39.000Z
2020-03-01T04:12:27.000Z
skrebate/relieff.py
benstear/scikit-rebate
43a9537f203b9c2ee125800810ac704e6bda3fb9
[ "MIT" ]
null
null
null
skrebate/relieff.py
benstear/scikit-rebate
43a9537f203b9c2ee125800810ac704e6bda3fb9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ scikit-rebate was primarily developed at the University of Pennsylvania by: - Randal S. Olson (rso@randalolson.com) - Pete Schmitt (pschmitt@upenn.edu) - Ryan J. Urbanowicz (ryanurb@upenn.edu) - Weixuan Fu (weixuanf@upenn.edu) - and many more generous open source contrib...
48.192797
189
0.596254
c689b156e7da8035b67df3f949de85a2bff3c663
4,770
py
Python
denorm/join.py
rivethealth/denorm
c9b9070730e3cc7fbe78927d34db7ffa384aed42
[ "MIT" ]
11
2021-03-29T14:27:48.000Z
2022-01-01T00:31:40.000Z
denorm/join.py
rivethealth/denorm
c9b9070730e3cc7fbe78927d34db7ffa384aed42
[ "MIT" ]
null
null
null
denorm/join.py
rivethealth/denorm
c9b9070730e3cc7fbe78927d34db7ffa384aed42
[ "MIT" ]
null
null
null
""" Procedures: * ID__refresh - Perform refresh - When consistency is deferred * ID__setup - Create the temporary tables - When consistency is deferred * ID__chg1__SOURCE - Process changes * ID__chg2__SOURCE - Process changes Tables: * BASE (existing) - Table to watch - Existing - Triggers * ID__del__SOURC...
28.058824
106
0.651363
e71f63f121b46b78c175cccd5d0d5e53185e4126
4,090
py
Python
game/content/ghplots/dd_combatmission.py
fmunoz-geo/gearhead-caramel
315835481d543420826439245be01460fe6dd81b
[ "Apache-2.0" ]
74
2015-03-09T00:33:09.000Z
2022-02-25T20:28:27.000Z
game/content/ghplots/dd_combatmission.py
fmunoz-geo/gearhead-caramel
315835481d543420826439245be01460fe6dd81b
[ "Apache-2.0" ]
108
2017-12-30T20:26:12.000Z
2021-01-16T12:37:00.000Z
game/content/ghplots/dd_combatmission.py
CartoonFan/gearhead-caramel
61995f382923695176ab7a65253f42e849e0c4d7
[ "Apache-2.0" ]
61
2018-03-03T09:55:31.000Z
2022-03-18T17:28:33.000Z
import random import game.content.gharchitecture import game.content.ghterrain import game.content.ghwaypoints import gears import pbge from game import teams, ghdialogue from game.content import adventureseed from game.content.adventureseed import MAIN_OBJECTIVE_VALUE from game.content.plotutility import CargoContain...
43.052632
269
0.685086
b60aad2dc5606d775a649d751248abfca83646cc
2,267
py
Python
src/streamlink/plugins/teleclubzoom.py
sn4kebite/streamlink
054b760ce7e9f43451eed08e9f39de440c3e5add
[ "BSD-2-Clause" ]
5
2017-03-21T19:43:17.000Z
2018-10-03T14:04:29.000Z
src/streamlink/plugins/teleclubzoom.py
sn4kebite/streamlink
054b760ce7e9f43451eed08e9f39de440c3e5add
[ "BSD-2-Clause" ]
7
2016-10-13T23:29:31.000Z
2018-06-28T14:04:32.000Z
src/streamlink/plugins/teleclubzoom.py
sn4kebite/streamlink
054b760ce7e9f43451eed08e9f39de440c3e5add
[ "BSD-2-Clause" ]
2
2021-02-09T14:29:21.000Z
2021-05-28T11:10:34.000Z
import logging import re from urllib.parse import urlparse from streamlink.exceptions import PluginError from streamlink.plugin import Plugin from streamlink.plugin.api import validate from streamlink.plugin.api.utils import itertags from streamlink.stream import HLSStream from streamlink.utils import update_scheme l...
31.929577
79
0.628584
c4cd9b73e0550731f508851880869c9e375d93b5
4,540
py
Python
skrf/vi/sa.py
sdurant/scikit-rf
09161b879c1a52a1bc2e2df89f2656c97136c39b
[ "BSD-3-Clause" ]
null
null
null
skrf/vi/sa.py
sdurant/scikit-rf
09161b879c1a52a1bc2e2df89f2656c97136c39b
[ "BSD-3-Clause" ]
null
null
null
skrf/vi/sa.py
sdurant/scikit-rf
09161b879c1a52a1bc2e2df89f2656c97136c39b
[ "BSD-3-Clause" ]
null
null
null
''' .. module:: skrf.vi.sa ================================================================= Spectrum Analyzers (:mod:`skrf.vi.sa`) ================================================================= .. autosummary:: :toctree: generated/ HP8500 ''' import numpy as npy import visa from vi...
25.795455
83
0.488326
1f6d3e781bb35273713c7eeb3b1d94fc59095fdd
3,421
py
Python
models/mobilenetv2.py
cmuspencerlo/pytorch_cifar
d1bbdd73af54df60bbf15d4b672644e2098b857c
[ "MIT" ]
1
2018-07-24T15:39:10.000Z
2018-07-24T15:39:10.000Z
models/mobilenetv2.py
cmuspencerlo/pytorch_cifar
d1bbdd73af54df60bbf15d4b672644e2098b857c
[ "MIT" ]
null
null
null
models/mobilenetv2.py
cmuspencerlo/pytorch_cifar
d1bbdd73af54df60bbf15d4b672644e2098b857c
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class Bottleneck(nn.Module): # Inverted part: in_planes < planes => in_planes def __init__(self, in_planes, target_planes, expansion, stride): super(Bottleneck, self).__init__() self.stride = stride planes = in_planes * ...
35.635417
114
0.576732
e07cf338fafc1fd3a45fb50f4a46821bf2fd745e
9,191
py
Python
bnn_hmc/utils/models.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
bnn_hmc/utils/models.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
bnn_hmc/utils/models.py
admariner/google-research
7cee4b22b925581d912e8d993625c180da2a5a4f
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 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...
28.811912
80
0.632249
a1f114d31cc00af22fd6b712a43bae5a0d112afd
609
py
Python
products/migrations/0002_order_owner.py
dariothornhill/product_api
fbbe07733c3cc0f9ef35b1d36c2183d03ef9e6a7
[ "MIT" ]
null
null
null
products/migrations/0002_order_owner.py
dariothornhill/product_api
fbbe07733c3cc0f9ef35b1d36c2183d03ef9e6a7
[ "MIT" ]
null
null
null
products/migrations/0002_order_owner.py
dariothornhill/product_api
fbbe07733c3cc0f9ef35b1d36c2183d03ef9e6a7
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2022-03-07 12:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('products', '0001_initial...
26.478261
118
0.660099
302327b5564fe98b79f13cdaa51c641249417002
18,470
py
Python
lemur/tests/test_certificates.py
bunjiboys/lemur
b5fd8020055d8af07bd6f82f4dd38246dca8d0c5
[ "Apache-2.0" ]
null
null
null
lemur/tests/test_certificates.py
bunjiboys/lemur
b5fd8020055d8af07bd6f82f4dd38246dca8d0c5
[ "Apache-2.0" ]
2
2020-04-03T09:28:20.000Z
2020-04-04T04:56:35.000Z
lemur/tests/test_certificates.py
bunjiboys/lemur
b5fd8020055d8af07bd6f82f4dd38246dca8d0c5
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals # at top of module import json import pytest import datetime import arrow from freezegun import freeze_time from cryptography import x509 from lemur.certificates.views import * # noqa from lemur.tests.vectors import VALID_ADMIN_HEADER_TOKEN, VALID_USER_HEADER_TOKEN, CSR_S...
34.330855
199
0.702761
26b6ea5d100e0a9ba888bab2fd97ebc25f28cf49
20
py
Python
noisefilter/noisefilter/__init__.py
itsMagondu/IoTNeuralNetworks
7ba2098866966a55541019028b16301cfcf94b6b
[ "MIT" ]
null
null
null
noisefilter/noisefilter/__init__.py
itsMagondu/IoTNeuralNetworks
7ba2098866966a55541019028b16301cfcf94b6b
[ "MIT" ]
1
2021-06-11T04:40:55.000Z
2021-06-11T04:40:55.000Z
noisefilter/noisefilter/__init__.py
itsMagondu/IoTNeuralNetworks
7ba2098866966a55541019028b16301cfcf94b6b
[ "MIT" ]
null
null
null
""" noisefilter """
10
19
0.55
1bc5a4afd1ad436f13d23aa1cb38ddbd70beedf3
336
py
Python
pyeccodes/defs/grib2/local_98_26_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/grib2/local_98_26_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/grib2/local_98_26_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
import pyeccodes.accessors as _ def load(h): h.add(_.Unsigned('referenceDate', 4)) h.add(_.Unsigned('climateDateFrom', 4)) h.add(_.Unsigned('climateDateTo', 4)) h.alias('local.referenceDate', 'referenceDate') h.alias('local.climateDateFrom', 'climateDateFrom') h.alias('local.climateDateTo', '...
28
55
0.693452
1b3ca629462aaf91b1bf5699b31cab7dad5540ee
172
py
Python
regions/io/ds9/setup_package.py
lpsinger/regions
55cb07f3ae54759637ba26d35bfcdf6043b825fb
[ "BSD-3-Clause" ]
1
2020-02-26T05:46:07.000Z
2020-02-26T05:46:07.000Z
regions/io/ds9/setup_package.py
lpsinger/regions
55cb07f3ae54759637ba26d35bfcdf6043b825fb
[ "BSD-3-Clause" ]
null
null
null
regions/io/ds9/setup_package.py
lpsinger/regions
55cb07f3ae54759637ba26d35bfcdf6043b825fb
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst def get_package_data(): parser_test = ['data/*.reg'] return {'regions.io.ds9.tests': parser_test}
24.571429
63
0.697674
d5aedbe41a8cadacde6aa6991d0ab041e1aed957
3,727
py
Python
python/8.web/2.Django/mysql_demo/userapp/models.py
lotapp/BaseCode
0255f498e1fe67ed2b3f66c84c96e44ef1f7d320
[ "Apache-2.0" ]
25
2018-06-13T08:13:44.000Z
2020-11-19T14:02:11.000Z
python/8.web/2.Django/mysql_demo/userapp/models.py
lotapp/BaseCode
0255f498e1fe67ed2b3f66c84c96e44ef1f7d320
[ "Apache-2.0" ]
null
null
null
python/8.web/2.Django/mysql_demo/userapp/models.py
lotapp/BaseCode
0255f498e1fe67ed2b3f66c84c96e44ef1f7d320
[ "Apache-2.0" ]
13
2018-06-13T08:13:38.000Z
2022-01-06T06:45:07.000Z
from django.db import models import uuid # editable=False # 快递公司表(一) # https://www.kuaidi100.com/query?type=&postid= # https://sp0.baidu.com/9_Q4sjW91Qh3otqbppnN2DJv/pae/channel/data/asyncqury?appid=4001&com=huitongkuaidi&nu=71330102164040 class Express(models.Model): # 快递编号 ecode = models.CharField(max_leng...
35.160377
122
0.718004
e313a8ecd15386e09a4727c1b2de0ad136a51fa9
791
py
Python
setup.py
npinto/py-lars
2c6991f42e7ad266cf8c2b684fc6dc71e298c09c
[ "MIT" ]
3
2018-11-27T19:08:45.000Z
2019-12-10T01:27:32.000Z
setup.py
npinto/py-lars
2c6991f42e7ad266cf8c2b684fc6dc71e298c09c
[ "MIT" ]
null
null
null
setup.py
npinto/py-lars
2c6991f42e7ad266cf8c2b684fc6dc71e298c09c
[ "MIT" ]
2
2019-11-17T22:47:08.000Z
2019-12-10T01:26:45.000Z
import setuptools setuptools.setup( name='lmj.lars', version='0.2', namespace_packages=['lmj'], packages=setuptools.find_packages(), author='Leif Johnson', author_email='leif@leifjohnson.net', description='An implementation of Least Angle Regression', long_description=open('README.md')....
29.296296
62
0.595449
741166f76313ba4129cbd320c0cfce033b8e4c31
4,503
py
Python
tests/clvm/test_chialisp_deserialization.py
zcomputerwiz/silicoin-light-wallet
1cdc3784effec229cc841a04655078b1d9913d33
[ "Apache-2.0" ]
null
null
null
tests/clvm/test_chialisp_deserialization.py
zcomputerwiz/silicoin-light-wallet
1cdc3784effec229cc841a04655078b1d9913d33
[ "Apache-2.0" ]
null
null
null
tests/clvm/test_chialisp_deserialization.py
zcomputerwiz/silicoin-light-wallet
1cdc3784effec229cc841a04655078b1d9913d33
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from silicoin.types.blockchain_format.program import Program, INFINITE_COST from silicoin.util.byte_types import hexstr_to_bytes from silicoin.wallet.puzzles.load_clvm import load_clvm DESERIALIZE_MOD = load_clvm("chialisp_deserialisation.clvm", package_or_requirement="silicoin.wallet.pu...
39.156522
264
0.621586
9f1ecd9efb0bc6cb507fd1adf15e8040bb7ea8c9
2,309
py
Python
tests/test_specqp.py
Shipilin/specqp
c96c6f9476d871d73f7aa1fb7aeb3a435c9013a9
[ "MIT" ]
null
null
null
tests/test_specqp.py
Shipilin/specqp
c96c6f9476d871d73f7aa1fb7aeb3a435c9013a9
[ "MIT" ]
null
null
null
tests/test_specqp.py
Shipilin/specqp
c96c6f9476d871d73f7aa1fb7aeb3a435c9013a9
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt import unittest import specqp as sp import numpy as np class TestHelpers(unittest.TestCase): def test_is_iterable(self): self.assertTrue(sp.helpers.is_iterable([1, 2, 3])) self.assertTrue(sp.helpers.is_iterable((1, 2, 3))) arr = np.ndarray(range(10)) ...
41.232143
89
0.631009
c1701e7921e1b79fac6277fa23627a59abb09b4d
7,622
py
Python
SMBcorr/merra_hybrid_cumulative.py
SmithB/SMBcorr
7c35cf8383058986fd82b28beab3c5580f9f8667
[ "MIT" ]
null
null
null
SMBcorr/merra_hybrid_cumulative.py
SmithB/SMBcorr
7c35cf8383058986fd82b28beab3c5580f9f8667
[ "MIT" ]
null
null
null
SMBcorr/merra_hybrid_cumulative.py
SmithB/SMBcorr
7c35cf8383058986fd82b28beab3c5580f9f8667
[ "MIT" ]
1
2020-08-06T19:48:52.000Z
2020-08-06T19:48:52.000Z
#!/usr/bin/env python u""" merra_hybrid_cumulative.py Written by Tyler Sutterley (10/2019) Calculates cumulative anomalies of MERRA-2 hybrid surface mass balance products MERRA-2 Hybrid model outputs provided by Brooke Medley at GSFC CALLING SEQUENCE: python merra_hybrid_cumulative.py --directory=<path> --regi...
38.887755
80
0.64445
28ec71432af154ad56ec5eeaa11e6c658125123f
2,301
py
Python
tests/test_main.py
SiriusKoan/shorten-url-with-kv
55d108a263441cc17dbec2ce3c8419b4b4ea111d
[ "MIT" ]
3
2022-02-16T09:11:39.000Z
2022-03-25T06:07:34.000Z
tests/test_main.py
SiriusKoan/shorten-url-with-kv
55d108a263441cc17dbec2ce3c8419b4b4ea111d
[ "MIT" ]
null
null
null
tests/test_main.py
SiriusKoan/shorten-url-with-kv
55d108a263441cc17dbec2ce3c8419b4b4ea111d
[ "MIT" ]
null
null
null
import unittest from time import sleep from flask import url_for from app import create_app from tests.helper import TestModel, generate_test_data from app.KV import kv class IndexPageTest(TestModel): def setUp(self) -> None: super().setUp() self.route = url_for("main.index_page") self.url...
33.347826
82
0.640591
2206b5e2acbf468c863b2ce261116c9742613306
2,030
py
Python
tests/gold_tests/logging/all_headers_sanitizer.py
zhaorun/trafficserver
757256129811441f29eea288b1d7e19bc54fab9c
[ "Apache-2.0" ]
1
2019-10-28T04:36:50.000Z
2019-10-28T04:36:50.000Z
tests/gold_tests/logging/all_headers_sanitizer.py
zhaorun/trafficserver
757256129811441f29eea288b1d7e19bc54fab9c
[ "Apache-2.0" ]
3
2017-09-22T19:18:56.000Z
2021-06-21T18:07:14.000Z
tests/gold_tests/logging/all_headers_sanitizer.py
zhaorun/trafficserver
757256129811441f29eea288b1d7e19bc54fab9c
[ "Apache-2.0" ]
null
null
null
''' Sanitize the ATS-generated custom log file from the all_headers test. ''' # 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 fi...
46.136364
125
0.660591
42502579a4714e6479681b4e839e55fc4ca4cac4
569
py
Python
tests/testapp/models.py
vaibhavantil2/detail-personalized-feed
1fc74a5c8c514c4979fa08257eea5a95924e82bd
[ "MIT" ]
15
2019-02-16T12:17:30.000Z
2022-03-27T20:11:49.000Z
tests/testapp/models.py
vaibhavantil2/detail-personalized-feed
1fc74a5c8c514c4979fa08257eea5a95924e82bd
[ "MIT" ]
7
2019-05-10T08:27:14.000Z
2021-04-26T15:19:06.000Z
tests/testapp/models.py
andreynovikov/django-rated-reviews
ccb24f5412bf5c831f79120c32e1cd51ddca5fe8
[ "MIT" ]
8
2019-11-07T21:05:10.000Z
2021-08-03T06:59:37.000Z
""" Reviews may be attached to any object. See the review documentation for more information. """ from django.db import models class Article(models.Model): headline = models.CharField(max_length=100) body = models.TextField() pub_date = models.DateField() def __str__(self): return self.headl...
22.76
71
0.717047
3aefc7d439093a8b34008210a604f60c5756b826
728
py
Python
vaassdk/src/vaas/config.py
yilanyun/vaas-sdk-python
ea4cc94e8d75a07a7dec8da67977443a3f00eff8
[ "Apache-2.0" ]
null
null
null
vaassdk/src/vaas/config.py
yilanyun/vaas-sdk-python
ea4cc94e8d75a07a7dec8da67977443a3f00eff8
[ "Apache-2.0" ]
1
2021-06-11T06:48:05.000Z
2021-06-11T06:48:05.000Z
vaassdk/src/vaas/config.py
yilanyun/vaas-sdk-python
ea4cc94e8d75a07a7dec8da67977443a3f00eff8
[ "Apache-2.0" ]
2
2021-06-11T06:44:57.000Z
2021-06-23T08:34:22.000Z
# encoding: utf-8 # 联系一览获取access_key、access_token ACCESS_KEY = '' # 一览提供的渠道ak ACCESS_TOKEN = '' # 一览提供的渠道token PKG_NAME = '' # 应用包名 PLATFORM = 1 # 接入方式 # 请求url FEED = '/video/feed' # feed流 CHANNELS = '/video/channels' # 频道 RELATION = '/video/relation' # 频道相关 DETAIL = '/video/getvideos' # 视频详情 CPINFO = '/video...
28
80
0.688187
6b1af921694d4f3da65562cf4b2c89a44fc320a7
22,101
py
Python
cmstack/cmlang/antlr_generator/lexer.py
he-actlab/cdstack
38f605cfa299bf97b5875a19f9fd811a2671d56f
[ "Apache-2.0" ]
null
null
null
cmstack/cmlang/antlr_generator/lexer.py
he-actlab/cdstack
38f605cfa299bf97b5875a19f9fd811a2671d56f
[ "Apache-2.0" ]
null
null
null
cmstack/cmlang/antlr_generator/lexer.py
he-actlab/cdstack
38f605cfa299bf97b5875a19f9fd811a2671d56f
[ "Apache-2.0" ]
null
null
null
# Generated from /home/kinzers/projects/cmstack.code/cmstack/cmlang/antlr_generator/CMLang.g4 by ANTLR 4.7.2 from antlr4 import * from io import StringIO from typing.io import TextIO import sys def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2C")...
59.894309
108
0.564183
843987cccbfc20ee98b71faa5dcf3f69e893db92
6,220
py
Python
SUSYBSMAnalysis/HSCP/test/BuildHSCParticles/HSCParticleProducer_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
SUSYBSMAnalysis/HSCP/test/BuildHSCParticles/HSCParticleProducer_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
SUSYBSMAnalysis/HSCP/test/BuildHSCParticles/HSCParticleProducer_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("HSCPAnalysis") #The following parameters need to be provided #isSignal, isBckg, isData, isSkimmedSample, GTAG, InputFileList #isSignal = True #isBckg = False #isData = False #isSkimmedSample = False #GTAG = 'START72_V1::All' process.load("FWCore.Message...
38.875
266
0.661093
df520e80fdd85bb1b608cd4fbf064c83355308b1
3,329
py
Python
openfl/models/inference_only_model_wrapper.py
brandon-edwards/OpenFederatedLearning
379e1207f2e69b14ab5552e998bd3190363d6ecf
[ "Apache-2.0" ]
1
2021-07-01T03:40:52.000Z
2021-07-01T03:40:52.000Z
openfl/models/inference_only_model_wrapper.py
brandon-edwards/OpenFederatedLearning
379e1207f2e69b14ab5552e998bd3190363d6ecf
[ "Apache-2.0" ]
null
null
null
openfl/models/inference_only_model_wrapper.py
brandon-edwards/OpenFederatedLearning
379e1207f2e69b14ab5552e998bd3190363d6ecf
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 Intel Corporation # Licensed subject to the terms of the separately executed evaluation license agreement between Intel Corporation and you. from openfl.models.flmodel import FLModel from openfl.flplan import init_object class InferenceOnlyModelWrapper(FLModel): """Model class wrapper for Fe...
36.988889
122
0.634425
c215c4e7f8d43e829eccf39245bc16c75be0cd2e
192
py
Python
test/tests/os_test.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
1
2015-11-06T03:39:51.000Z
2015-11-06T03:39:51.000Z
test/tests/os_test.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
null
null
null
test/tests/os_test.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
null
null
null
# allow-warning: converting unicode literal to str # currently broken: # import os.path import os r1 = os.urandom(8) r2 = os.urandom(8) print len(r1), len(r2), type(r1), type(r2), r1 == r2
17.454545
52
0.682292
2bd7b7bb556c43fc7c963d719a7ae3a88dbb9bb5
14,110
py
Python
Protheus_WebApp/Modules/SIGACTB/CTBA161TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
17
2018-09-24T17:27:08.000Z
2021-09-16T19:09:46.000Z
Protheus_WebApp/Modules/SIGACTB/CTBA161TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
4
2018-09-24T17:30:32.000Z
2022-01-03T11:39:30.000Z
Protheus_WebApp/Modules/SIGACTB/CTBA161TESTCASE.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
18
2019-06-07T17:41:34.000Z
2022-01-31T18:17:31.000Z
from tir import Webapp import unittest class CTBA161(unittest.TestCase): @classmethod def setUpClass(inst): inst.oHelper = Webapp() inst.oHelper.Setup("SIGACTB", "01/01/2019", "T1", "D MG 01", "34") inst.oHelper.Program("CTBA161") ######################################### # Inclus...
41.622419
122
0.614033
cd0711e8ba003df48d328efb409420523f09b14f
5,288
py
Python
lanenet_model/lanenet_discriminative_loss.py
aiLibrary/lanenet-lane-detection
6abedbe1ba6da2e6f6e3935c6d26bd79c55a0d45
[ "Apache-2.0" ]
2
2018-11-05T01:31:06.000Z
2019-02-02T08:03:24.000Z
lanenet_model/lanenet_discriminative_loss.py
aiLibrary/lanenet-lane-detection
6abedbe1ba6da2e6f6e3935c6d26bd79c55a0d45
[ "Apache-2.0" ]
null
null
null
lanenet_model/lanenet_discriminative_loss.py
aiLibrary/lanenet-lane-detection
6abedbe1ba6da2e6f6e3935c6d26bd79c55a0d45
[ "Apache-2.0" ]
2
2020-04-10T08:55:33.000Z
2021-07-07T06:22:29.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 18-5-11 下午3:48 # @Author : Luo Yao # @Site : http://icode.baidu.com/repos/baidu/personal-code/Luoyao # @File : lanenet_discriminative_loss.py # @IDE: PyCharm Community Edition """ 实现LaneNet的Discriminative Loss函数 """ import tensorflow as tf def discrim...
34.337662
122
0.648638
1e801ab7a3e0231506df234e64493ccf2222ed75
4,258
py
Python
workalendar/tests/test_registry_europe.py
mr-shovel/workalendar
969386e68d258afc49ee875af7ebe6ac606c7ab3
[ "MIT" ]
null
null
null
workalendar/tests/test_registry_europe.py
mr-shovel/workalendar
969386e68d258afc49ee875af7ebe6ac606c7ab3
[ "MIT" ]
null
null
null
workalendar/tests/test_registry_europe.py
mr-shovel/workalendar
969386e68d258afc49ee875af7ebe6ac606c7ab3
[ "MIT" ]
null
null
null
from unittest import TestCase from ..europe import ( Austria, Belgium, Bulgaria, Croatia, Cyprus, CzechRepublic, Estonia, Denmark, Finland, France, # FranceAlsaceMoselle, # TODO: Should we add it to the registry? Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Monaco...
38.017857
79
0.696336
3912aed56d820c1f18029cf5906e025a30525f97
3,983
py
Python
src/client/ServerLogin.py
UnluckyAj/FaceRecognitionApp
6da12360159368231a0a9773fded4365e8479890
[ "MIT" ]
null
null
null
src/client/ServerLogin.py
UnluckyAj/FaceRecognitionApp
6da12360159368231a0a9773fded4365e8479890
[ "MIT" ]
null
null
null
src/client/ServerLogin.py
UnluckyAj/FaceRecognitionApp
6da12360159368231a0a9773fded4365e8479890
[ "MIT" ]
null
null
null
import socket address = ("192.168.43.67", 5000) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(address) s.listen(10000) flag=0 print("Server Running...") global course global sem global stream while True: try: client, address = s.accept() print("Client arrived " , address) ...
30.638462
108
0.476274
1f5e804946fdb37e4835f510aa63c6b50e537ee4
1,002
py
Python
axformer/noam_opt.py
sytelus/axformer
2492582f0e37a1edaa21f3c9f88ce1bbee91c90f
[ "MIT" ]
null
null
null
axformer/noam_opt.py
sytelus/axformer
2492582f0e37a1edaa21f3c9f88ce1bbee91c90f
[ "MIT" ]
null
null
null
axformer/noam_opt.py
sytelus/axformer
2492582f0e37a1edaa21f3c9f88ce1bbee91c90f
[ "MIT" ]
null
null
null
import torch class NoamOpt: "Optim wrapper that implements rate." def __init__(self, model_size, factor, warmup, optimizer): self.optimizer = optimizer self._step = 0 self.warmup = warmup self.factor = factor self.model_size = model_size self._rate = 0 ...
31.3125
84
0.546906
5017c317102e57f3ed27052dcd2797bbdd349b87
657
py
Python
blog/migrations/0002_tag.py
greener2/simple-blog
ca37e5d22c704713b0c447afd9bfeba4232600e8
[ "MIT" ]
null
null
null
blog/migrations/0002_tag.py
greener2/simple-blog
ca37e5d22c704713b0c447afd9bfeba4232600e8
[ "MIT" ]
5
2021-03-18T23:18:36.000Z
2021-09-22T18:30:27.000Z
blog/migrations/0002_tag.py
greener2/simple-blog
ca37e5d22c704713b0c447afd9bfeba4232600e8
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-02-02 15:28 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( name='Tag', fields...
28.565217
127
0.598174
73ab612033c0e432631323e9e229012fd9c116f8
94
py
Python
zunzun/signals/__init__.py
aprezcuba24/zunzun
cc294d9dfb84695be0ed1425cf946a0f4ea644a9
[ "MIT" ]
null
null
null
zunzun/signals/__init__.py
aprezcuba24/zunzun
cc294d9dfb84695be0ed1425cf946a0f4ea644a9
[ "MIT" ]
null
null
null
zunzun/signals/__init__.py
aprezcuba24/zunzun
cc294d9dfb84695be0ed1425cf946a0f4ea644a9
[ "MIT" ]
null
null
null
from .signal import Signal # noqa from .listerner_connector import ListenerConnector # noqa
31.333333
58
0.808511
61e7af7de7b9d6b03a0490cd6442e0ad786ef650
5,457
py
Python
pydocmd/document.py
Pandinosaurus/pydoc-markdown
38a6b48edfc132586aef7b5a71c5fccce62a9518
[ "MIT" ]
null
null
null
pydocmd/document.py
Pandinosaurus/pydoc-markdown
38a6b48edfc132586aef7b5a71c5fccce62a9518
[ "MIT" ]
null
null
null
pydocmd/document.py
Pandinosaurus/pydoc-markdown
38a6b48edfc132586aef7b5a71c5fccce62a9518
[ "MIT" ]
null
null
null
# Copyright (c) 2017 Niklas Rosenstein # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, ...
34.537975
98
0.70295
9ee29657571df689b1b48a83f181d031e4d91d21
3,820
py
Python
app/fedcv/object_detection/data/coco/coco_base.py
ray-ruisun/FedML
24ff30d636bb70f64e94e9ca205375033597d3dd
[ "Apache-2.0" ]
null
null
null
app/fedcv/object_detection/data/coco/coco_base.py
ray-ruisun/FedML
24ff30d636bb70f64e94e9ca205375033597d3dd
[ "Apache-2.0" ]
null
null
null
app/fedcv/object_detection/data/coco/coco_base.py
ray-ruisun/FedML
24ff30d636bb70f64e94e9ca205375033597d3dd
[ "Apache-2.0" ]
null
null
null
import os from abc import ABC from pathlib import Path, PurePath from typing import Literal from torch.utils.data import Dataset from .utils import _download_file, _extract_file class COCOBase(Dataset, ABC): root_dir: PurePath annotations_zip_path: PurePath train_zip_path: PurePath val_zip_path: Pur...
42.921348
119
0.587958
73d43188f3d5e4cd8ff0a46f8866e98d730decb4
3,210
py
Python
python/tests/test_load.py
JX7P/libucl
d1cf4e9783fa96b9399f6585e2dc9a42e4d64746
[ "BSD-2-Clause" ]
1,301
2015-01-01T10:42:07.000Z
2022-03-21T08:00:14.000Z
python/tests/test_load.py
JX7P/libucl
d1cf4e9783fa96b9399f6585e2dc9a42e4d64746
[ "BSD-2-Clause" ]
137
2015-01-04T18:15:11.000Z
2022-03-21T20:46:58.000Z
python/tests/test_load.py
JX7P/libucl
d1cf4e9783fa96b9399f6585e2dc9a42e4d64746
[ "BSD-2-Clause" ]
161
2015-01-04T14:15:23.000Z
2022-03-20T04:11:01.000Z
from .compat import unittest import ucl class LoadTest(unittest.TestCase): def test_no_args(self): with self.assertRaises(TypeError): ucl.load() def test_multi_args(self): with self.assertRaises(TypeError): ucl.load(0,0) def test_none(self): self.assertEqua...
26.097561
67
0.454206
b0c7760b11b2683ba4aab32370a67187d81a986b
12,060
py
Python
pyinfrabox/tests/test_json.py
fspaniol/InfraBox-cli
da174cf4b189e8acd889a7b1de09fa56350ee984
[ "Apache-2.0" ]
null
null
null
pyinfrabox/tests/test_json.py
fspaniol/InfraBox-cli
da174cf4b189e8acd889a7b1de09fa56350ee984
[ "Apache-2.0" ]
null
null
null
pyinfrabox/tests/test_json.py
fspaniol/InfraBox-cli
da174cf4b189e8acd889a7b1de09fa56350ee984
[ "Apache-2.0" ]
null
null
null
import unittest from pyinfrabox import ValidationError from pyinfrabox.infrabox import validate_json class TestDockerCompose(unittest.TestCase): def raises_expect(self, data, expected): try: validate_json(data) assert False except ValidationError as e: self.asse...
35.470588
108
0.461609
fa9e0c876314653054d6f30dec3f6f20c7c828bf
6,277
py
Python
OParcels/fibres_OP.py
SalishSeaCast/analysis-jose
9eed549f0e3117de69c54c162307f16bf4fe0af3
[ "Apache-2.0" ]
null
null
null
OParcels/fibres_OP.py
SalishSeaCast/analysis-jose
9eed549f0e3117de69c54c162307f16bf4fe0af3
[ "Apache-2.0" ]
null
null
null
OParcels/fibres_OP.py
SalishSeaCast/analysis-jose
9eed549f0e3117de69c54c162307f16bf4fe0af3
[ "Apache-2.0" ]
null
null
null
import sys import xarray as xr import numpy as np import os import yaml import math from datetime import datetime, timedelta from parcels import FieldSet, Field, VectorField, ParticleSet, JITParticle, ErrorCode, ParcelsRandom, Variable sys.path.append('/home/jvalenti/MOAD/analysis-jose/notebooks/parcels') from Kernels...
42.412162
165
0.653656
82dadb590040265c035e6b84d2fdcdc1963acafc
4,977
py
Python
kolibri/core/device/models.py
mrpau/kolibri
94ed5887ec083398e55ee5a291df6d09c062bfe1
[ "MIT" ]
null
null
null
kolibri/core/device/models.py
mrpau/kolibri
94ed5887ec083398e55ee5a291df6d09c062bfe1
[ "MIT" ]
null
null
null
kolibri/core/device/models.py
mrpau/kolibri
94ed5887ec083398e55ee5a291df6d09c062bfe1
[ "MIT" ]
null
null
null
import platform import time from uuid import uuid4 from django.conf import settings from django.core.cache import cache from django.db import models from morango.models import UUIDField from .utils import LANDING_PAGE_LEARN from .utils import LANDING_PAGE_SIGN_IN from kolibri.core.auth.models import Facility from kol...
29.625
81
0.683142
5f3555eb3b96ead2cda9bcad92065c6a596f3e9a
1,531
py
Python
[Kaleido-subs]/Completed/Granblue Fantasy Season 2 [BD]/GBF2BD_06.py
LightArrowsEXE/Encoding-Projects
4ea96a5b25a7710f615ada5ff25949c496492b53
[ "MIT" ]
57
2019-01-31T17:32:46.000Z
2022-03-23T05:46:51.000Z
[Kaleido-subs]/Completed/Granblue Fantasy Season 2 [BD]/GBF2BD_06.py
LightArrowsEXE/Encoding-Projects
4ea96a5b25a7710f615ada5ff25949c496492b53
[ "MIT" ]
null
null
null
[Kaleido-subs]/Completed/Granblue Fantasy Season 2 [BD]/GBF2BD_06.py
LightArrowsEXE/Encoding-Projects
4ea96a5b25a7710f615ada5ff25949c496492b53
[ "MIT" ]
12
2019-04-30T06:16:13.000Z
2022-03-14T16:15:07.000Z
from typing import Any, Dict, Tuple import vapoursynth as vs from lvsfunc.misc import source from vardautomation import FileInfo, PresetAAC, PresetBD, VPath from project_module import chain, encode core = vs.core # Sources JP_BD = FileInfo(r'BDMV/GRANBLUE_FANTASY_SEASON2_3/BDMV/STREAM/00002.m2ts', (None, -27), ...
33.282609
92
0.667538
7965d7fc2b3450155e47320165654538f4547481
467
py
Python
social/posts/forms.py
vyahello/social-media
77cabf08dee1da0eb4e5c277391d92b7d829b67d
[ "MIT" ]
null
null
null
social/posts/forms.py
vyahello/social-media
77cabf08dee1da0eb4e5c277391d92b7d829b67d
[ "MIT" ]
2
2022-02-07T09:44:15.000Z
2022-03-22T16:43:18.000Z
social/posts/forms.py
vyahello/social-media
77cabf08dee1da0eb4e5c277391d92b7d829b67d
[ "MIT" ]
null
null
null
from django import forms from posts import models class PostForm(forms.ModelForm): class Meta: fields = ("message", "group") model = models.Post def __init__(self, *args, **kwargs): user = kwargs.pop("user", None) super().__init__(*args, **kwargs) if user is not None: ...
27.470588
72
0.595289
eee7b6197909f52db2915549517c44ba1620cd3a
8,303
py
Python
official/vision/beta/losses/retinanet_losses.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
1
2021-05-22T12:50:50.000Z
2021-05-22T12:50:50.000Z
official/vision/beta/losses/retinanet_losses.py
DemonDamon/mask-detection-based-on-tf2odapi
192ae544169c1230c21141c033800aa1bd94e9b6
[ "MIT" ]
null
null
null
official/vision/beta/losses/retinanet_losses.py
DemonDamon/mask-detection-based-on-tf2odapi
192ae544169c1230c21141c033800aa1bd94e9b6
[ "MIT" ]
null
null
null
# Copyright 2021 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...
40.111111
81
0.652174
cfabc4d57fa1ca098aa4fddb4193795b253f3cfc
179
py
Python
numplates/owners/admin.py
Jurevic/numplates
c53dc5e32a0d597a1fbc5e4567f735113310e0b9
[ "MIT" ]
null
null
null
numplates/owners/admin.py
Jurevic/numplates
c53dc5e32a0d597a1fbc5e4567f735113310e0b9
[ "MIT" ]
null
null
null
numplates/owners/admin.py
Jurevic/numplates
c53dc5e32a0d597a1fbc5e4567f735113310e0b9
[ "MIT" ]
null
null
null
from django.contrib import admin from.models import Owner class OwnerAdmin(admin.ModelAdmin): fields = ['first_name', 'last_name'] admin.site.register(Owner, OwnerAdmin)
16.272727
40
0.759777
a3a2cdcd16aa3ef2b7d3f1917f2fcd51d2ee1798
19,626
py
Python
leo/plugins/free_layout.py
drmikecrowe/leo-editor
16d8e1e8564799496c7a90c5d3cc85461deca7e7
[ "MIT" ]
null
null
null
leo/plugins/free_layout.py
drmikecrowe/leo-editor
16d8e1e8564799496c7a90c5d3cc85461deca7e7
[ "MIT" ]
null
null
null
leo/plugins/free_layout.py
drmikecrowe/leo-editor
16d8e1e8564799496c7a90c5d3cc85461deca7e7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:ekr.20120419093256.10048: * @file ../plugins/free_layout.py #@+<< docstring >> #@+node:ekr.20110319161401.14467: ** << docstring >> (free_layout.py) """ Free layout =========== Adds flexible panel layout through context menus on the handles between panels. Uses NestedSplitter, a more intelli...
42.572668
164
0.60695
a1b8f360cda662c5c6b0cc23a487b3d11c4b68d4
12,052
py
Python
readthedocs/embed/views.py
mehrdad-khojastefar/readthedocs.org
b958bb8d04c454324d612345890b13af54a19eb6
[ "MIT" ]
2,092
2019-06-29T07:47:30.000Z
2022-03-31T14:54:59.000Z
readthedocs/embed/views.py
mehrdad-khojastefar/readthedocs.org
b958bb8d04c454324d612345890b13af54a19eb6
[ "MIT" ]
2,389
2019-06-29T04:22:55.000Z
2022-03-31T22:57:49.000Z
readthedocs/embed/views.py
mehrdad-khojastefar/readthedocs.org
b958bb8d04c454324d612345890b13af54a19eb6
[ "MIT" ]
1,185
2019-06-29T21:49:31.000Z
2022-03-30T09:57:15.000Z
"""Views for the embed app.""" import functools import json import re from django.shortcuts import get_object_or_404 from django.template.defaultfilters import slugify from django.utils.functional import cached_property from docutils.nodes import make_id from pyquery import PyQuery as PQ # noqa from rest_framework i...
30.982005
145
0.574842
831b1599417d24275ead0fcf071d1d67c4568792
1,267
py
Python
Ene-Jun-2021/perez-sanchez-jose-jahir/Practica1/Practica_1.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ene-Jun-2021/perez-sanchez-jose-jahir/Practica1/Practica_1.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ene-Jun-2021/perez-sanchez-jose-jahir/Practica1/Practica_1.py
bryanbalderas/DAS_Sistemas
1e31f088c0de7134471025a5730b0abfc19d936e
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
class Vehiculo(): random = 0 def __init__(self,velocidad_maxima, kilometraje, capacidad): self.velocidad_maxima = velocidad_maxima self.kilometraje = kilometraje self.capacidad = capacidad def tarifa(self,capacidad): tarifa_i = self.capacidad*100 return tarifa_i ...
31.675
160
0.642463
61461c3d522664432e08c7671725b2c22db930ca
4,431
py
Python
carla/src/ros-bridge/carla_ad_agent/src/carla_ad_agent/carla_ad_agent.py
jaypatravali/VirtualFastKeyboardFurious_carla
cf68e7ea7d0436b38b8f7bb3fb1dbeffb6812c97
[ "MIT" ]
null
null
null
carla/src/ros-bridge/carla_ad_agent/src/carla_ad_agent/carla_ad_agent.py
jaypatravali/VirtualFastKeyboardFurious_carla
cf68e7ea7d0436b38b8f7bb3fb1dbeffb6812c97
[ "MIT" ]
1
2020-06-05T15:31:31.000Z
2020-06-05T15:31:31.000Z
carla/src/ros-bridge/carla_ad_agent/src/carla_ad_agent/carla_ad_agent.py
jaypatravali/VirtualFastKeyboardFurious_carla
cf68e7ea7d0436b38b8f7bb3fb1dbeffb6812c97
[ "MIT" ]
1
2020-12-14T07:04:08.000Z
2020-12-14T07:04:08.000Z
#!/usr/bin/env python # # Copyright (c) 2020 Intel Corporation # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # """ A basic AD agent using CARLA waypoints """ import sys import rospy from nav_msgs.msg import Path from std_msgs.msg import Float64 fr...
29.738255
100
0.606409