hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
795c8f230ee84c3a7308343a0564d90632928472
5,586
py
Python
routes/sql_routes.py
euanacampbell/pegasus
e23189f412fc6f998e7e9636434e54d06ef5bf4f
[ "MIT" ]
null
null
null
routes/sql_routes.py
euanacampbell/pegasus
e23189f412fc6f998e7e9636434e54d06ef5bf4f
[ "MIT" ]
null
null
null
routes/sql_routes.py
euanacampbell/pegasus
e23189f412fc6f998e7e9636434e54d06ef5bf4f
[ "MIT" ]
1
2021-05-17T13:42:03.000Z
2021-05-17T13:42:03.000Z
from platform import version from pegasus.pegasus import Pegasus from pegasus.modules.update import update from flask import Blueprint, render_template, request, redirect, url_for, flash, send_file from pegasus.modules.sql import sql_config, SQL_Conn from pegasus.modules.format import format import os sql_routes = Blu...
28.943005
143
0.681167
795c9023bbedb00b514e3d03f5cdaa508d5ba425
4,585
py
Python
OnlineDB/SiStripO2O/test/testPopCon/UnitTest_fullPopCon_CabPedNoiThrQua_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
OnlineDB/SiStripO2O/test/testPopCon/UnitTest_fullPopCon_CabPedNoiThrQua_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
OnlineDB/SiStripO2O/test/testPopCon/UnitTest_fullPopCon_CabPedNoiThrQua_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("o2o") process.MessageLogger = cms.Service("MessageLogger", debugModules = cms.untracked.vstring('*'), cout = cms.untracked.PSet( threshold = cms.untracked.string('DEBUG') ), destinations = cms.untracked.vstring('cout') ) process....
36.68
175
0.719738
795c910aa64a802c74894b6df636c6f94349908b
17,334
py
Python
sandbox/snn4hrl/policies/hier_snn_mlp_policy.py
sokol1412/rllab_hierarchical_rl
6d46c02e32c3d7e9ac55d753d6a3823ff86c5a57
[ "MIT" ]
104
2017-03-25T02:08:21.000Z
2022-02-16T16:41:02.000Z
sandbox/snn4hrl/policies/hier_snn_mlp_policy.py
sokol1412/rllab_hierarchical_rl
6d46c02e32c3d7e9ac55d753d6a3823ff86c5a57
[ "MIT" ]
null
null
null
sandbox/snn4hrl/policies/hier_snn_mlp_policy.py
sokol1412/rllab_hierarchical_rl
6d46c02e32c3d7e9ac55d753d6a3823ff86c5a57
[ "MIT" ]
16
2017-03-31T22:30:26.000Z
2021-01-22T00:10:53.000Z
import json import os from contextlib import contextmanager import joblib import lasagne import lasagne.layers as L import lasagne.nonlinearities as NL import numpy as np import theano import theano.tensor as TT from rllab import config from rllab.core.lasagne_layers import ParamLayer from rllab.core.lasagne_powered ...
44.446154
122
0.646187
795c9119699aa7ee1c11125a30dc8e1ac9fb0ecb
1,831
py
Python
py3/IMGURdl/threadIMGUR.py
samcheck/Scripts
283c62242ffe0dc9812a800e16419b998cf00af5
[ "MIT" ]
1
2017-03-28T00:28:55.000Z
2017-03-28T00:28:55.000Z
py3/IMGURdl/threadIMGUR.py
samcheck/Scripts
283c62242ffe0dc9812a800e16419b998cf00af5
[ "MIT" ]
null
null
null
py3/IMGURdl/threadIMGUR.py
samcheck/Scripts
283c62242ffe0dc9812a800e16419b998cf00af5
[ "MIT" ]
null
null
null
# example from: # https://www.toptal.com/python/beginners-guide-to-concurrency-and-parallelism-in-python import logging import os from time import time from queue import Queue from threading import Thread from downloadIMGUR import setup_download_dir, get_links, download_link logging.basicConfig(level=logging.DEBUG, ...
33.907407
103
0.679956
795c92030c786dbc4c5cd3fabb4bc261f5679694
8,527
py
Python
afterglow_core/resources/job_plugins/photometry_job.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
null
null
null
afterglow_core/resources/job_plugins/photometry_job.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
null
null
null
afterglow_core/resources/job_plugins/photometry_job.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
null
null
null
""" Afterglow Core: batch photometry job plugin """ from datetime import datetime from typing import List as TList from marshmallow.fields import Integer, List, Nested from numpy import concatenate, deg2rad, isfinite, zeros from astropy.wcs import WCS import sep from skylib.photometry import aperture_photometry from...
37.897778
78
0.550839
795c939e81fbb73fe77418b7ae138fec57ff2eca
806
py
Python
python/paddle/incubate/distributed/models/moe/__init__.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/incubate/distributed/models/moe/__init__.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/incubate/distributed/models/moe/__init__.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-09-24T11:23:36.000Z
2021-09-24T11:23:36.000Z
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
40.3
74
0.787841
795c93a5f866d5526785a07af0cdda10deb88fbc
2,049
py
Python
madrona/layers/migrations/0008_auto__add_privatesuperoverlay.py
movermeyer/madrona
fcdced0a03408754b88a3d88f416e04d500c32d4
[ "BSD-3-Clause" ]
9
2015-03-09T11:04:21.000Z
2022-01-16T09:45:36.000Z
madrona/layers/migrations/0008_auto__add_privatesuperoverlay.py
movermeyer/madrona
fcdced0a03408754b88a3d88f416e04d500c32d4
[ "BSD-3-Clause" ]
1
2020-04-24T14:38:43.000Z
2020-04-24T14:38:43.000Z
madrona/layers/migrations/0008_auto__add_privatesuperoverlay.py
movermeyer/madrona
fcdced0a03408754b88a3d88f416e04d500c32d4
[ "BSD-3-Clause" ]
2
2016-12-06T15:31:35.000Z
2018-03-04T20:04:44.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'PrivateSuperOverlay' db.create_table('layers_privatesuperoverlay', ( ('id', self.gf('d...
47.651163
182
0.608102
795c93b5ee5385b8a6938487a94c48b7ab5136a6
10,587
py
Python
tests/assemblers/test_xgboost.py
SciHuber/m2cgen
cd52e8ab24633ffe99e6add8e266578817c8f54c
[ "MIT" ]
1
2021-05-28T06:59:21.000Z
2021-05-28T06:59:21.000Z
tests/assemblers/test_xgboost.py
SciHuber/m2cgen
cd52e8ab24633ffe99e6add8e266578817c8f54c
[ "MIT" ]
null
null
null
tests/assemblers/test_xgboost.py
SciHuber/m2cgen
cd52e8ab24633ffe99e6add8e266578817c8f54c
[ "MIT" ]
null
null
null
import xgboost import numpy as np import os from m2cgen import assemblers, ast from tests import utils def test_binary_classification(): estimator = xgboost.XGBClassifier(n_estimators=2, random_state=1, max_depth=1) utils.get_binary_classification_model_trainer()(estimat...
32.575385
74
0.563994
795c93fe258fe02592143a8bb2e69a97bf1b60bf
1,190
py
Python
var/spack/repos/builtin/packages/py-gym/package.py
lcnzg/spack
5b9f60f9bb159113bfd8a0c8f3f4a8a0c2f55d7e
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-03-05T10:54:32.000Z
2021-03-05T14:14:52.000Z
var/spack/repos/builtin/packages/py-gym/package.py
lcnzg/spack
5b9f60f9bb159113bfd8a0c8f3f4a8a0c2f55d7e
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/py-gym/package.py
Kerilk/spack
e027942b55407a4a5fe323b93d8e57200c873a43
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2018-04-06T09:04:11.000Z
2020-01-24T12:52:12.000Z
# Copyright 2013-2021 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) class PyGym(PythonPackage): """OpenAI Gym is a toolkit for developing and comparing reinforcement learning algori...
44.074074
96
0.661345
795c94502eb9cae73667bf4233714e1c7478e0d2
3,261
py
Python
dnacentersdk/models/validators/v2_1_2/jsd_d6b8ca774739adf4.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_2/jsd_d6b8ca774739adf4.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_2/jsd_d6b8ca774739adf4.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Run read-only commands on devices data model. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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 re...
30.194444
78
0.513033
795c947e955ab6305ccfd7fe6714aa001f283305
743
py
Python
code/gen_df.py
ceumicrodata/respect-trade-similarity
51e0ece6097fb0ee5b05277d425531fd3c7269bf
[ "MIT" ]
1
2019-12-06T09:58:43.000Z
2019-12-06T09:58:43.000Z
code/gen_df.py
ceumicrodata/respect-trade-similarity
51e0ece6097fb0ee5b05277d425531fd3c7269bf
[ "MIT" ]
19
2019-03-14T09:13:20.000Z
2022-03-21T22:26:24.000Z
code/gen_df.py
ceumicrodata/respect-trade-similarity
51e0ece6097fb0ee5b05277d425531fd3c7269bf
[ "MIT" ]
2
2019-06-17T12:32:16.000Z
2019-07-09T12:09:30.000Z
import pandas as pd from itertools import product data = pd.read_csv("../input/trade_data_filtered/cn2014.csv") data["PRODUCT_NC"] = data["PRODUCT_NC"].apply(lambda x: str(x[:6])) sixdigit_product_trade = pd.DataFrame(data.groupby(["TRADE_TYPE",'DECLARANT_ISO','PARTNER_ISO',"PRODUCT_NC"])['VALUE_IN_EUROS'].sum().reset...
41.277778
148
0.76716
795c960586caed81c21da7a683de8394dc27adcb
7,447
py
Python
pilot/user/atlas/dbrelease.py
dougbenjamin/pilot2
a93383e0a1a86e9cedea13bc9093d215ba4e8d4c
[ "Apache-2.0" ]
null
null
null
pilot/user/atlas/dbrelease.py
dougbenjamin/pilot2
a93383e0a1a86e9cedea13bc9093d215ba4e8d4c
[ "Apache-2.0" ]
2
2021-10-07T02:28:31.000Z
2022-02-09T12:49:27.000Z
pilot/user/atlas/dbrelease.py
dougbenjamin/pilot2
a93383e0a1a86e9cedea13bc9093d215ba4e8d4c
[ "Apache-2.0" ]
1
2021-09-25T00:30:44.000Z
2021-09-25T00:30:44.000Z
#!/usr/bin/env python # 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 # # Authors: # - Paul Nilsson, paul.nilsson@cern.ch, 2019-2021 import os impo...
34.799065
127
0.595408
795c962eb38a6c652bc2abf4eb130895b831efd8
1,264
py
Python
test/gen_data.py
softdevteam/warmup_stats
c37cb866e25d150a3a682f48d8c6f1070a78e4c3
[ "Apache-2.0", "MIT-0", "MIT" ]
8
2017-12-10T03:28:13.000Z
2021-07-15T14:09:04.000Z
test/gen_data.py
softdevteam/warmup_stats
c37cb866e25d150a3a682f48d8c6f1070a78e4c3
[ "Apache-2.0", "MIT-0", "MIT" ]
97
2017-10-10T18:25:51.000Z
2021-08-09T10:14:15.000Z
test/gen_data.py
softdevteam/warmup_stats
c37cb866e25d150a3a682f48d8c6f1070a78e4c3
[ "Apache-2.0", "MIT-0", "MIT" ]
5
2017-12-20T13:34:21.000Z
2019-09-15T19:21:16.000Z
#!/usr/bin/env python2.7 """Generate random Krun JSON files.""" import os import os.path import random import sys sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from warmup.krun_results import write_krun_results_file UNAME = 'Linux bencher8 4.9.0-3-amd64 #1 SMP Debian ...
30.829268
98
0.663766
795c96f8bd2ad39e97f5742a1c6442887218bab7
2,661
py
Python
pygdf/tests/test_multi.py
mrocklin/pygdf
2de9407427da9497ebdf8951a12857be0fab31bb
[ "Apache-2.0" ]
3
2018-12-28T06:13:40.000Z
2019-06-19T06:05:18.000Z
pygdf/tests/test_multi.py
mrocklin/pygdf
2de9407427da9497ebdf8951a12857be0fab31bb
[ "Apache-2.0" ]
1
2019-06-18T20:58:21.000Z
2019-06-18T20:58:21.000Z
pygdf/tests/test_multi.py
mrocklin/pygdf
2de9407427da9497ebdf8951a12857be0fab31bb
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, NVIDIA CORPORATION. import pytest import pandas as pd import pygdf as gd def make_frames(index=None): df = pd.DataFrame({'x': range(10), 'y': list(map(float, range(10))), 'z': list('abcde')*2}) df.z = df.z.astype('category') df2 = pd.Da...
28.612903
72
0.594138
795c98052717c97f53c4f01a0af3c871852e3cd9
3,351
py
Python
app/jwt.py
danieldavidraj/Blob-Storage-System
d0a68a198a40aa7a7eaa3341f640f8ed88a62224
[ "MIT" ]
3
2022-02-28T17:56:09.000Z
2022-03-01T12:47:02.000Z
app/jwt.py
danieldavidraj/Blob-Storage-System
d0a68a198a40aa7a7eaa3341f640f8ed88a62224
[ "MIT" ]
null
null
null
app/jwt.py
danieldavidraj/Blob-Storage-System
d0a68a198a40aa7a7eaa3341f640f8ed88a62224
[ "MIT" ]
null
null
null
from fastapi import Depends, FastAPI, HTTPException, status, Security from functools import lru_cache from datetime import datetime, timedelta from sqlalchemy.orm import Session from fastapi.security import ( OAuth2PasswordBearer, SecurityScopes, ) from jose import JWTError, jwt from passlib.context im...
33.51
97
0.691734
795c9857a86801f26b3bc7ba3061b90ba459b7b6
4,150
py
Python
research/wrappers/sync_vector_env.py
matwilso/boxLCD
7505e27f47e6694026303aa6cf12477959fc9fba
[ "MIT" ]
2
2021-05-17T14:33:54.000Z
2021-09-09T07:14:03.000Z
research/wrappers/sync_vector_env.py
matwilso/boxLCD
7505e27f47e6694026303aa6cf12477959fc9fba
[ "MIT" ]
null
null
null
research/wrappers/sync_vector_env.py
matwilso/boxLCD
7505e27f47e6694026303aa6cf12477959fc9fba
[ "MIT" ]
null
null
null
import numpy as np from copy import deepcopy from gym import logger from gym.vector.vector_env import VectorEnv from gym.vector.utils import concatenate, create_empty_array __all__ = ['SyncVectorEnv'] class SyncVectorEnv(VectorEnv): """Vectorized environment that serially runs multiple environments. Parameters...
36.086957
129
0.675663
795c98c5c31b4b611290cd503ed43f36e6625180
640
py
Python
keystone/contrib/user_crud/__init__.py
sanket4373/keystone
7cf7e7497729803f0470167315af9349b88fe0ec
[ "Apache-2.0" ]
null
null
null
keystone/contrib/user_crud/__init__.py
sanket4373/keystone
7cf7e7497729803f0470167315af9349b88fe0ec
[ "Apache-2.0" ]
null
null
null
keystone/contrib/user_crud/__init__.py
sanket4373/keystone
7cf7e7497729803f0470167315af9349b88fe0ec
[ "Apache-2.0" ]
null
null
null
# flake8: noqa # Copyright 2012 Red Hat, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
35.555556
75
0.759375
795c991864811d564429a6b1a2d70651c9efc264
9,811
py
Python
src/anomaly_detection/dagmm/solver.py
roycezhou/Anomaly-detection-and-classification-with-deep-learning
12b26f7c6f97a0a5305c653ab36b5272f94696fa
[ "MIT" ]
null
null
null
src/anomaly_detection/dagmm/solver.py
roycezhou/Anomaly-detection-and-classification-with-deep-learning
12b26f7c6f97a0a5305c653ab36b5272f94696fa
[ "MIT" ]
null
null
null
src/anomaly_detection/dagmm/solver.py
roycezhou/Anomaly-detection-and-classification-with-deep-learning
12b26f7c6f97a0a5305c653ab36b5272f94696fa
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import os import time import datetime from torch.autograd import grad from torch.autograd import Variable from model import * import matplotlib.pyplot as plt from utils import * from data_loader import * import IPython f...
38.175097
153
0.544287
795c992eee760fded013c485e7c0ea798a1a547c
1,119
py
Python
test/unit/command/test_test.py
RuriRyan/molecule
952552a807e5c3873e39d181cb12565a1db4008d
[ "MIT" ]
1
2020-11-05T18:12:36.000Z
2020-11-05T18:12:36.000Z
test/unit/command/test_test.py
RuriRyan/molecule
952552a807e5c3873e39d181cb12565a1db4008d
[ "MIT" ]
8
2020-09-16T07:32:49.000Z
2020-09-20T15:17:32.000Z
test/unit/command/test_test.py
RuriRyan/molecule
952552a807e5c3873e39d181cb12565a1db4008d
[ "MIT" ]
null
null
null
# Copyright (c) 2015-2017 Cisco Systems, Inc. # # 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...
55.95
79
0.76765
795c99e0f0595538a34cde72c46a8b16fd984e98
2,900
py
Python
master/Impractical_Python_Projects-master/Impractical_Python_Projects-master/Chapter_13/practice_45.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/Impractical_Python_Projects-master/Impractical_Python_Projects-master/Chapter_13/practice_45.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/Impractical_Python_Projects-master/Impractical_Python_Projects-master/Chapter_13/practice_45.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
import sys import math import random import pygame as pg pg.init() # initialize pygame # define color table BLACK = (0, 0, 0) WHITE = (255, 255, 255) LT_GRAY = (180, 180, 180) GRAY = (120, 120, 120) DK_GRAY = (80, 80, 80) class Particle(pg.sprite.Sprite): """Builds ejecta particles for volcano simulation.""...
29.896907
79
0.575517
795c9bb6b6228ffb283a37eaa669465e70e3f2f4
8,327
py
Python
algorithms/multi_env.py
alex-petrenko/curious-rl
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
[ "MIT" ]
18
2018-12-29T01:52:25.000Z
2021-11-08T06:48:20.000Z
algorithms/multi_env.py
alex-petrenko/curious-rl
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
[ "MIT" ]
2
2019-06-13T12:52:55.000Z
2019-10-30T03:27:11.000Z
algorithms/multi_env.py
alex-petrenko/curious-rl
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
[ "MIT" ]
3
2019-05-11T07:50:53.000Z
2021-11-18T08:15:56.000Z
import time from multiprocessing import Process, JoinableQueue from enum import Enum import copy import numpy as np from utils.utils import log, AttrDict class StepType(Enum): REAL = 1 IMAGINED = 2 class _MultiEnvWorker: """Helper class for the MultiEnv.""" def __init__(self, env_indices, make_en...
36.52193
104
0.590489
795c9c1c1d9b2046208a79faacfbe3cf866527c1
8,300
py
Python
caldera/app/engine/database.py
NVISOsecurity/caldera
97942bbbdab682372126c0df1a619c5b5567b6d3
[ "Apache-2.0", "CC0-1.0" ]
3
2019-08-01T14:58:33.000Z
2021-01-11T09:27:23.000Z
caldera/app/engine/database.py
NVISOsecurity/caldera
97942bbbdab682372126c0df1a619c5b5567b6d3
[ "Apache-2.0", "CC0-1.0" ]
3
2020-10-27T23:03:18.000Z
2021-06-02T02:56:36.000Z
caldera/app/engine/database.py
NVISOsecurity/caldera
97942bbbdab682372126c0df1a619c5b5567b6d3
[ "Apache-2.0", "CC0-1.0" ]
1
2019-08-01T14:58:26.000Z
2019-08-01T14:58:26.000Z
import logging from cryptography.fernet import Fernet from mongoengine import connect, Document from mongoengine.base import TopLevelDocumentMetaclass, BaseDocument from mongoengine.queryset.base import BaseQuerySet from bson.objectid import ObjectId import ujson as json import pymongo from .oplog import OplogTailer im...
29.537367
104
0.601084
795c9d4df24326743b64931350664af6ef4158f6
7,281
py
Python
losses/losses.py
yangxy/SDL
fed3a44876de5edbd1c1bb18128ab2003bb6e84b
[ "MIT" ]
4
2022-03-24T03:37:45.000Z
2022-03-29T08:03:56.000Z
losses/losses.py
yangxy/SDL
fed3a44876de5edbd1c1bb18128ab2003bb6e84b
[ "MIT" ]
1
2022-03-29T07:50:01.000Z
2022-03-29T08:04:07.000Z
losses/losses.py
yangxy/SDL
fed3a44876de5edbd1c1bb18128ab2003bb6e84b
[ "MIT" ]
null
null
null
import math import torch from torch import autograd as autograd from torch import nn as nn from torch.nn import functional as F from basicsr.archs.vgg_arch import VGGFeatureExtractor from basicsr.utils.registry import LOSS_REGISTRY from basicsr.losses.loss_util import weighted_loss _reduction_modes = ['none', 'mean',...
35.004808
124
0.592364
795c9d977110f50641bea3dbc6c59d86ce156cd9
326
py
Python
jaqs/trade/tradeapi/__init__.py
WestXu/JAQS
3c9389afab518f188b8628af72297d750c07dfb1
[ "Apache-2.0" ]
602
2017-11-21T00:39:40.000Z
2022-03-16T06:13:08.000Z
jaqs/trade/tradeapi/__init__.py
WestXu/JAQS
3c9389afab518f188b8628af72297d750c07dfb1
[ "Apache-2.0" ]
63
2017-12-08T08:21:16.000Z
2020-03-07T13:57:35.000Z
jaqs/trade/tradeapi/__init__.py
WestXu/JAQS
3c9389afab518f188b8628af72297d750c07dfb1
[ "Apache-2.0" ]
365
2017-11-21T01:38:36.000Z
2022-03-30T15:55:30.000Z
# encoding: utf-8 """ tradeapi defines standard APIs for communicating with algorithmic trading & executing system. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from .trade_api import TradeApi __all__ = ['Trade...
23.285714
53
0.819018
795c9e8a228807a81b724a2322c0c5efd8b643e5
15,810
py
Python
DeviceAPI/BACnetAPI.py
bopopescu/BEMOSSx
30def15fedf86ac42e6e1710e76eb0b22e077074
[ "Unlicense" ]
null
null
null
DeviceAPI/BACnetAPI.py
bopopescu/BEMOSSx
30def15fedf86ac42e6e1710e76eb0b22e077074
[ "Unlicense" ]
null
null
null
DeviceAPI/BACnetAPI.py
bopopescu/BEMOSSx
30def15fedf86ac42e6e1710e76eb0b22e077074
[ "Unlicense" ]
1
2020-07-22T09:32:29.000Z
2020-07-22T09:32:29.000Z
# -*- coding: utf-8 -*- from __future__ import division ''' Copyright (c) 2014 by Virginia Polytechnic Institute and State University All rights reserved Virginia Polytechnic Institute and State University (Virginia Tech) owns the copyright for the BEMOSS software and its associated documentation (“Software”) and reta...
41.171875
164
0.563378
795c9f8997efb3b92fcc5a2e67c6cf3cd6f5c2ad
14,781
py
Python
web3fsnpy/fusion/fsn_swaps.py
ReDeFinance/web3fsnpy
a825c607f2320e0352b77242e985f423e94f00bf
[ "MIT" ]
4
2019-11-01T23:20:25.000Z
2022-01-16T06:07:25.000Z
web3fsnpy/fusion/fsn_swaps.py
ReDeFinance/web3fsnpy
a825c607f2320e0352b77242e985f423e94f00bf
[ "MIT" ]
2
2021-06-02T00:27:51.000Z
2021-11-05T16:58:15.000Z
web3fsnpy/fusion/fsn_swaps.py
ReDeFinance/web3fsnpy
a825c607f2320e0352b77242e985f423e94f00bf
[ "MIT" ]
5
2019-09-03T10:00:48.000Z
2021-12-21T04:42:15.000Z
from eth_utils.toolz import ( assoc, curry, merge, ) from cytoolz import ( pipe, ) from eth_utils.curried import ( apply_formatters_to_sequence, is_address, text_if_str, to_checksum_address, apply_formatter_if, apply_formatters_to_dict, apply_one_of_formatters, ) from eth...
32.993304
125
0.574927
795c9fcdd2eb530ec59d70a535cee69bbb3e87f0
1,699
py
Python
alipay/aop/api/response/AlipayFinanceZcbEndowmentorderDetailQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayFinanceZcbEndowmentorderDetailQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayFinanceZcbEndowmentorderDetailQueryResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.EndowmentOrder import EndowmentOrder class AlipayFinanceZcbEndowmentorderDetailQueryResponse(AlipayResponse): def __init__(self): super(AlipayFinanceZcbE...
32.056604
122
0.671572
795ca0099b1a0bded9275568d3dfcf6a38f5cb57
1,795
py
Python
odps/udf/runtime.py
ZZHGit/aliyun-odps-python-sdk
e1c39378863ec7a1947487acab38125ac77f178e
[ "Apache-2.0" ]
null
null
null
odps/udf/runtime.py
ZZHGit/aliyun-odps-python-sdk
e1c39378863ec7a1947487acab38125ac77f178e
[ "Apache-2.0" ]
null
null
null
odps/udf/runtime.py
ZZHGit/aliyun-odps-python-sdk
e1c39378863ec7a1947487acab38125ac77f178e
[ "Apache-2.0" ]
1
2019-09-18T05:35:29.000Z
2019-09-18T05:35:29.000Z
# 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...
28.492063
116
0.708635
795ca0755bd8c92422d0514fd5e943cf8dcb74c6
9,376
py
Python
meiduo_mall/meiduo_mall/apps/users/views.py
tuhao1250/meiduo-mall
7f0e64de72a0ad5b883fd8eb568aca3befd6e120
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/users/views.py
tuhao1250/meiduo-mall
7f0e64de72a0ad5b883fd8eb568aca3befd6e120
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/users/views.py
tuhao1250/meiduo-mall
7f0e64de72a0ad5b883fd8eb568aca3befd6e120
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework.views import APIView from rest_framework.viewsets import ModelViewSet from rest_framework.generics import CreateAPIView, GenericAPIView, RetrieveAPIView, UpdateAPIView, ListAPIView from rest_framework.response import Response from rest_framework import status from...
28.672783
110
0.643985
795ca0e10c5c80789c05a7374fb8f15bf9df05f7
1,465
py
Python
dronebuilder/components/filemanager.py
zaghaghi/drone-config-builder
ab67fa280e090aa43ab804cafe31771504d80345
[ "Apache-2.0" ]
1
2021-07-30T20:04:31.000Z
2021-07-30T20:04:31.000Z
dronebuilder/components/filemanager.py
zaghaghi/drone-config-builder
ab67fa280e090aa43ab804cafe31771504d80345
[ "Apache-2.0" ]
null
null
null
dronebuilder/components/filemanager.py
zaghaghi/drone-config-builder
ab67fa280e090aa43ab804cafe31771504d80345
[ "Apache-2.0" ]
null
null
null
from os.path import dirname, join from typing import Callable, Optional from dronebuilder.utils.storage import setting from kivymd.uix.filemanager import MDFileManager class DroneFileManager: def __init__( self, opentype: str = "open", select_callback: Optional[Callable[[str], None]] = No...
31.170213
67
0.632082
795ca0f166a3ab3442576debe666105e1633c28a
3,646
py
Python
UGATIT-Paddle-master/main.py
GuoQuanhao/Contrib
9069366559d0353c96075ed573222f3fbdfabafe
[ "Apache-2.0" ]
20
2020-03-13T13:40:32.000Z
2022-03-10T07:31:48.000Z
UGATIT-Paddle-master/main.py
GuoQuanhao/Contrib
9069366559d0353c96075ed573222f3fbdfabafe
[ "Apache-2.0" ]
34
2020-02-20T11:04:58.000Z
2022-03-12T00:54:26.000Z
UGATIT-Paddle-master/main.py
GuoQuanhao/Contrib
9069366559d0353c96075ed573222f3fbdfabafe
[ "Apache-2.0" ]
41
2020-02-14T09:34:39.000Z
2022-03-10T07:31:42.000Z
import argparse import os from UGATIT import UGATIT from utils import str2bool, check_folder import paddle.fluid as fluid """parsing and configuration""" def parse_args(): desc = "Pytorch implementation of U-GAT-IT" parser = argparse.ArgumentParser(description=desc) parser.add_argument('--phase...
39.204301
121
0.663193
795ca106072f2a8ba7ca13b1a5a7e4e48484884b
1,634
py
Python
edX/GTxCS1301xIII/05_NextPseudoFib.py
heymajor/learning-python
799f221174607ac75faaaaeab754c4ad479716c9
[ "Unlicense" ]
null
null
null
edX/GTxCS1301xIII/05_NextPseudoFib.py
heymajor/learning-python
799f221174607ac75faaaaeab754c4ad479716c9
[ "Unlicense" ]
null
null
null
edX/GTxCS1301xIII/05_NextPseudoFib.py
heymajor/learning-python
799f221174607ac75faaaaeab754c4ad479716c9
[ "Unlicense" ]
null
null
null
#Write a function called next_fib. next_fib should take #have two parameters: a list of integers and a single integer. #For this description, we'll call the single integer n. # #next_fib should modify the list to add the next n pseudo- #Fibonacci numbers to the end of the sequence. A pseudo- #Fibonacci number is ...
26.354839
63
0.686047
795ca21bef5f4d79cd9c6d3ee77f2a90f17c47a9
3,603
py
Python
mmaction/models/heads/fewshot_head.py
suki7/mmaction_fsl_78
8e61f2a145a14dea0475867ce7d3a3e9936a7847
[ "Apache-2.0" ]
1
2021-01-28T06:01:53.000Z
2021-01-28T06:01:53.000Z
mmaction/models/heads/fewshot_head.py
suki7/mmaction_fsl_78
8e61f2a145a14dea0475867ce7d3a3e9936a7847
[ "Apache-2.0" ]
null
null
null
mmaction/models/heads/fewshot_head.py
suki7/mmaction_fsl_78
8e61f2a145a14dea0475867ce7d3a3e9936a7847
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from mmcv.cnn import normal_init from ..registry import HEADS from .base import AvgConsensus, BaseHead @HEADS.register_module() class FewShotHead(BaseHead): def __init__(self, num_classes, in_...
31.330435
91
0.589509
795ca280d39f9832d10deb39492a726ea917ed11
9,253
py
Python
wallriori/lawsofthewall/lawsofthewall.py
timofeymukha/wallriori
a24961da70f79fd51cd0ab70a9bbeac2d939103b
[ "MIT" ]
null
null
null
wallriori/lawsofthewall/lawsofthewall.py
timofeymukha/wallriori
a24961da70f79fd51cd0ab70a9bbeac2d939103b
[ "MIT" ]
null
null
null
wallriori/lawsofthewall/lawsofthewall.py
timofeymukha/wallriori
a24961da70f79fd51cd0ab70a9bbeac2d939103b
[ "MIT" ]
1
2019-03-20T22:41:47.000Z
2019-03-20T22:41:47.000Z
# wThis file is part of wallriori # (c) Timofey Mukha # The code is released under the MIT Licence. # See LICENCE.txt and the Legal section in the README for more information from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from functools i...
23.664962
79
0.521128
795ca2f85109d4a52387597dbdcc94941edf3d70
476
py
Python
cradmin_legacy/apps/cradmin_authenticate/views/logout.py
appressoas/cradmin_legacy
b9d024299333dd04c87c1031bd5be5778aa7f1f1
[ "BSD-3-Clause" ]
null
null
null
cradmin_legacy/apps/cradmin_authenticate/views/logout.py
appressoas/cradmin_legacy
b9d024299333dd04c87c1031bd5be5778aa7f1f1
[ "BSD-3-Clause" ]
17
2018-03-07T15:52:42.000Z
2022-03-12T01:07:06.000Z
cradmin_legacy/apps/cradmin_authenticate/views/logout.py
appressoas/cradmin_legacy
b9d024299333dd04c87c1031bd5be5778aa7f1f1
[ "BSD-3-Clause" ]
1
2018-07-23T22:13:45.000Z
2018-07-23T22:13:45.000Z
from __future__ import unicode_literals from django.conf import settings from django.contrib.auth import logout def cradmin_logoutview(request, template_name='cradmin_authenticate/logout.django.html'): next_page = None if 'next' in request.GET: next_page = request.GET['next'] return logout( ...
28
89
0.693277
795ca35db653d9c1866e0b3e4f9fa0c220955686
30
py
Python
hardware/tests/opentrons_hardware/hardware_control/__init__.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
2
2015-11-10T17:49:51.000Z
2016-01-15T04:43:37.000Z
hardware/tests/opentrons_hardware/hardware_control/__init__.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
2
2022-02-15T03:28:35.000Z
2022-02-28T01:34:18.000Z
hardware/tests/opentrons_hardware/hardware_control/__init__.py
anuwrag/opentrons
28c8d76a19e367c6bd38f5290faaa32abf378715
[ "Apache-2.0" ]
null
null
null
"""Hardware control tests."""
15
29
0.666667
795ca405ac81d523d76ad598184a0149cc015f36
24,919
py
Python
integrated_gradients.py
gchhablani/toxic-spans-detection
5eeba0c069bef8c707d9c5fef8c6048c98d89ba5
[ "MIT" ]
11
2021-02-25T03:03:37.000Z
2021-10-18T03:51:23.000Z
integrated_gradients.py
gchhablani/toxic-spans-detection
5eeba0c069bef8c707d9c5fef8c6048c98d89ba5
[ "MIT" ]
null
null
null
integrated_gradients.py
gchhablani/toxic-spans-detection
5eeba0c069bef8c707d9c5fef8c6048c98d89ba5
[ "MIT" ]
5
2021-02-25T03:02:07.000Z
2021-05-18T15:59:01.000Z
import gc import os import pickle as pkl from captum import attr import numpy as np from captum.attr import IntegratedGradients from datasets import Dataset import torch import torch.nn.functional as F from tqdm.auto import tqdm import collections import numpy as np from transformers import Trainer import argparse f...
35.446657
99
0.583531
795ca490fcd8d407b685028e208af0d0230b2862
2,243
py
Python
photos/views.py
Roney-juma/Instagram-clone
76fc391be142fbc1e30c5705d9beb1a4ef8baf73
[ "MIT" ]
null
null
null
photos/views.py
Roney-juma/Instagram-clone
76fc391be142fbc1e30c5705d9beb1a4ef8baf73
[ "MIT" ]
null
null
null
photos/views.py
Roney-juma/Instagram-clone
76fc391be142fbc1e30c5705d9beb1a4ef8baf73
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.views.generic import ListView, DetailView, CreateView, UpdateView, DeleteView from .models import Post, Username # Create your views here. def home(request): context = { 'posts':Po...
29.513158
101
0.687472
795ca4ddc7661cc54c0b15a5f0c2f271e26444fd
2,924
py
Python
test/functional/mempool_resurrect.py
bitcoinNickel/bitcoinnickel
7980682cf13048d0177b370d272717ada4c66910
[ "MIT" ]
1
2022-02-06T18:40:22.000Z
2022-02-06T18:40:22.000Z
test/functional/mempool_resurrect.py
bitcoinNickel/bitcoinnickel
7980682cf13048d0177b370d272717ada4c66910
[ "MIT" ]
null
null
null
test/functional/mempool_resurrect.py
bitcoinNickel/bitcoinnickel
7980682cf13048d0177b370d272717ada4c66910
[ "MIT" ]
1
2022-01-02T16:36:33.000Z
2022-01-02T16:36:33.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test resurrection of mined transactions when the blockchain is re-organized.""" from test_framework.bl...
41.183099
123
0.675103
795ca4e5b096f3410764468650ca09d14ae9d708
7,114
py
Python
kubernetes/client/models/v1alpha1_priority_class_list.py
lp67/python
33c5ea9835356410ce4a9fa54a02c6a2a22143c6
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1alpha1_priority_class_list.py
lp67/python
33c5ea9835356410ce4a9fa54a02c6a2a22143c6
[ "Apache-2.0" ]
4
2019-11-19T10:33:47.000Z
2022-03-01T03:33:52.000Z
kubernetes/client/models/v1alpha1_priority_class_list.py
mohramadan911/PythonClientAPI
5d111812c81b7a573ac8661d1aec60bb97072412
[ "Apache-2.0" ]
2
2021-08-10T16:35:31.000Z
2021-09-14T04:53:06.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.20 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
34.533981
312
0.635648
795ca4e7852f83363b491532908df8019c394a63
19,206
py
Python
benchmark.py
jennyfothergill/signac
f506f720095aac6f91cc9086c1adde5d8acbdacc
[ "BSD-3-Clause" ]
100
2019-01-31T01:37:20.000Z
2022-03-29T10:35:34.000Z
benchmark.py
glotzerlab/signac
a03a6d05d0f994ac9c4d5353533883e49cf6b386
[ "BSD-3-Clause" ]
607
2019-01-31T14:08:17.000Z
2022-03-31T21:51:48.000Z
benchmark.py
jennyfothergill/signac
f506f720095aac6f91cc9086c1adde5d8acbdacc
[ "BSD-3-Clause" ]
31
2019-01-31T14:36:50.000Z
2022-03-14T03:48:32.000Z
#!/usr/bin/env python # Copyright 2018 The Regents of the University of Michigan # # 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...
31.178571
90
0.608352
795ca614e92049de2ff5ffd74284b3aee3cf0b3a
9,042
py
Python
src/dataset.py
felixbur/ml_experiment
3baec2d01f498c013f7547da132b319a0024292b
[ "MIT" ]
3
2021-11-08T08:26:58.000Z
2022-02-16T15:26:06.000Z
src/dataset.py
felixbur/ml_experiment
3baec2d01f498c013f7547da132b319a0024292b
[ "MIT" ]
12
2021-09-09T10:11:50.000Z
2022-02-22T15:36:33.000Z
src/dataset.py
felixbur/ml_experiment
3baec2d01f498c013f7547da132b319a0024292b
[ "MIT" ]
1
2021-11-08T23:53:48.000Z
2021-11-08T23:53:48.000Z
# dataset.py import audformat import pandas as pd import ast import os from random import sample from util import Util from plots import Plots import glob_conf class Dataset: """ Class to represent datasets""" name = '' # An identifier for the dataset config = None # The configuration db = None # The ...
47.589474
114
0.605839
795ca631d41c4d1eae7f982e05bb52284545af54
4,376
py
Python
Project_2/bricka/DQN/QLearner.py
ElchinValiyev/GameAI
bae8fcdeeb9b1362179ec0d9d9e12a64d68f0a5e
[ "MIT" ]
null
null
null
Project_2/bricka/DQN/QLearner.py
ElchinValiyev/GameAI
bae8fcdeeb9b1362179ec0d9d9e12a64d68f0a5e
[ "MIT" ]
null
null
null
Project_2/bricka/DQN/QLearner.py
ElchinValiyev/GameAI
bae8fcdeeb9b1362179ec0d9d9e12a64d68f0a5e
[ "MIT" ]
null
null
null
from Environment import Environment from Memory import Memory import random import numpy as np from keras.layers.core import Dense, Flatten from keras.layers.convolutional import Convolution2D from keras.models import Sequential from keras.models import model_from_json class Q: def __init__(self): self.n...
37.401709
98
0.577468
795ca835fde509070a84ec43f0147e3a3d9b4f03
11,496
py
Python
var/spack/repos/builtin/packages/rivet/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/rivet/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/rivet/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) import os from spack.package import * from spack.pkg.builtin.boost import Boost class Rivet(AutotoolsPackage): """R...
55.536232
113
0.69659
795ca98c30cfd2e79cb9b10f489a7a7a5f3828e4
28,766
py
Python
tests/access_tests.py
ayuanty/superset
132a8ef2cb55fa6692ea31d5c278f102d6c2886b
[ "Apache-2.0" ]
null
null
null
tests/access_tests.py
ayuanty/superset
132a8ef2cb55fa6692ea31d5c278f102d6c2886b
[ "Apache-2.0" ]
1
2021-01-25T05:55:25.000Z
2021-01-25T06:41:46.000Z
tests/access_tests.py
ayuanty/superset
132a8ef2cb55fa6692ea31d5c278f102d6c2886b
[ "Apache-2.0" ]
1
2021-06-21T05:42:37.000Z
2021-06-21T05:42:37.000Z
# 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.515493
88
0.631683
795caf6e0e83b2ec3f18df56e17611b1485f5341
1,309
py
Python
passport/patchers/d5d5f7.py
jepler/passport.py
88c3224f7299320c129d9a63253aaf195c4c48db
[ "MIT" ]
8
2018-07-18T20:06:03.000Z
2020-11-13T04:53:34.000Z
passport/patchers/d5d5f7.py
jepler/passport.py
88c3224f7299320c129d9a63253aaf195c4c48db
[ "MIT" ]
4
2021-04-07T09:26:51.000Z
2022-03-23T19:00:12.000Z
passport/patchers/d5d5f7.py
jepler/passport.py
88c3224f7299320c129d9a63253aaf195c4c48db
[ "MIT" ]
1
2022-03-23T13:59:50.000Z
2022-03-23T13:59:50.000Z
from passport.patchers import Patch, Patcher from passport.util import * class D5D5F7Patcher(Patcher): """nibble count with weird bitstream involving $D5 and $F7 as delimiters tested on - Ace Detective - Cat 'n Mouse - Cotton Tales - Dyno-Quest - Easy Street - Fraction-oids - Math Magic - RoboMath - NoteCard Make...
30.44186
81
0.421696
795cb04c87dd0a633599067be6647ac9709b0c94
10,123
py
Python
tests/system/test_cvDeviceTools_Serial.py
manuwelakanade-GSLAB/ansible-cvp
f06a48ffbdc7458cc99add994e9791ce66258674
[ "Apache-2.0" ]
null
null
null
tests/system/test_cvDeviceTools_Serial.py
manuwelakanade-GSLAB/ansible-cvp
f06a48ffbdc7458cc99add994e9791ce66258674
[ "Apache-2.0" ]
null
null
null
tests/system/test_cvDeviceTools_Serial.py
manuwelakanade-GSLAB/ansible-cvp
f06a48ffbdc7458cc99add994e9791ce66258674
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # coding: utf-8 -*- # pylint: disable=logging-format-interpolation # pylint: disable=dangerous-default-value # pylint:disable=duplicate-code # flake8: noqa: W503 # flake8: noqa: W1202 # flake8: noqa: R0801 from __future__ import (absolute_import, division, print_function) import pytest import logging...
44.792035
161
0.615035
795cb119d8e3be0d3b457a597f235e03664e1a06
2,152
py
Python
vunit/dependency_graph.py
tomasnilefrost/vunit
24afc501c96b937dc2fe57551e80aee0e160e150
[ "Artistic-2.0" ]
null
null
null
vunit/dependency_graph.py
tomasnilefrost/vunit
24afc501c96b937dc2fe57551e80aee0e160e150
[ "Artistic-2.0" ]
null
null
null
vunit/dependency_graph.py
tomasnilefrost/vunit
24afc501c96b937dc2fe57551e80aee0e160e150
[ "Artistic-2.0" ]
null
null
null
# Topological sorting of a directed ascylic graph # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (c) 2014, Lars Asplund lars.anders.asplund@gmail.com c...
28.315789
75
0.563662
795cb13d09feed344ca5e0aa7d1a922652194940
706
py
Python
setup.py
Juxsta/merge-excel
6cb957cdd177bc6a7c40893db952928175638efd
[ "MIT" ]
null
null
null
setup.py
Juxsta/merge-excel
6cb957cdd177bc6a7c40893db952928175638efd
[ "MIT" ]
null
null
null
setup.py
Juxsta/merge-excel
6cb957cdd177bc6a7c40893db952928175638efd
[ "MIT" ]
null
null
null
""" Setup file for merge-excel. Use setup.cfg to configure your project. This file was generated with PyScaffold 4.1. PyScaffold helps you to put up the scaffold of your new Python project. Learn more under: https://pyscaffold.org/ """ from setuptools import setup if __name__ == "__main__": tr...
32.090909
77
0.640227
795cb15e951497fdcf67cd2ceaac12a17f15f869
3,164
py
Python
tests/models/test_infoxlm.py
fuliucansheng/UniTorch
47038321593ce4e7eabda555bd58c0cf89482146
[ "MIT" ]
2
2022-02-05T08:52:00.000Z
2022-03-27T07:01:34.000Z
tests/models/test_infoxlm.py
Lixin-Qian/unitorch
47038321593ce4e7eabda555bd58c0cf89482146
[ "MIT" ]
null
null
null
tests/models/test_infoxlm.py
Lixin-Qian/unitorch
47038321593ce4e7eabda555bd58c0cf89482146
[ "MIT" ]
1
2022-03-27T07:01:13.000Z
2022-03-27T07:01:13.000Z
# Copyright (c) FULIUCANSHENG. # Licensed under the MIT License. import unitorch import torch from absl.testing import absltest, parameterized from unitorch import set_seed from unitorch.models.infoxlm import InfoXLMForGeneration, InfoXLMProcessor from unitorch.cli import cached_path from unitorch.cli import CoreConfi...
35.550562
117
0.667509
795cb1ce8cf25cbf9ffa8ac72b86ca232695bb1a
8,536
py
Python
packages/pegasus-python/src/Pegasus/db/admin/versions/v6.py
ahnitz/pegasus
e269b460f4d87eb3f3a7e91cd82e2c28fdb55573
[ "Apache-2.0" ]
127
2015-01-28T19:19:13.000Z
2022-03-31T05:57:40.000Z
packages/pegasus-python/src/Pegasus/db/admin/versions/v6.py
ahnitz/pegasus
e269b460f4d87eb3f3a7e91cd82e2c28fdb55573
[ "Apache-2.0" ]
14
2015-04-15T17:44:20.000Z
2022-02-22T22:48:49.000Z
packages/pegasus-python/src/Pegasus/db/admin/versions/v6.py
ahnitz/pegasus
e269b460f4d87eb3f3a7e91cd82e2c28fdb55573
[ "Apache-2.0" ]
70
2015-01-22T15:20:32.000Z
2022-02-21T22:50:23.000Z
#!/usr/bin/env python # # Copyright 2017-2021 University Of Southern California # # 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...
33.214008
179
0.571228
795cb1def5c0927608fea84a7b9524e004b95174
2,138
py
Python
venv/lib/python3.7/site-packages/AccessControl/tests/test_safeiter.py
leanhvu86/matrix-server
6e16fc53dfebaeaf222ff5a371ccffcc65de3818
[ "Apache-2.0" ]
10
2015-03-30T08:39:50.000Z
2022-02-28T21:57:51.000Z
venv/lib/python3.7/site-packages/AccessControl/tests/test_safeiter.py
leanhvu86/matrix-server
6e16fc53dfebaeaf222ff5a371ccffcc65de3818
[ "Apache-2.0" ]
79
2015-06-18T20:21:46.000Z
2022-03-29T06:33:00.000Z
venv/lib/python3.7/site-packages/AccessControl/tests/test_safeiter.py
leanhvu86/matrix-server
6e16fc53dfebaeaf222ff5a371ccffcc65de3818
[ "Apache-2.0" ]
14
2015-03-30T08:40:00.000Z
2022-02-09T00:48:51.000Z
############################################################################## # # Copyright (c) 2003 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
35.633333
78
0.58232
795cb34bc118deb8121558b2bbe81dcdbed407ad
3,072
py
Python
pykeops/examples/numpy/plot_test_softmax_numpy.py
neonbjb/keops
7ec8e23d3da2de08c28b58b2a28378abd233c95b
[ "MIT" ]
1
2021-04-20T09:04:21.000Z
2021-04-20T09:04:21.000Z
pykeops/examples/numpy/plot_test_softmax_numpy.py
neonbjb/keops
7ec8e23d3da2de08c28b58b2a28378abd233c95b
[ "MIT" ]
null
null
null
pykeops/examples/numpy/plot_test_softmax_numpy.py
neonbjb/keops
7ec8e23d3da2de08c28b58b2a28378abd233c95b
[ "MIT" ]
null
null
null
""" SumSoftMaxWeight reduction ========================== """ ############################################################################### # Using the :class:`numpy.Genred <pykeops.numpy.Genred>` class, # we show how to perform a computation specified through: # # * Its **inputs**: # # - :math:`x`, an array of ...
31.030303
106
0.523438
795cb5a4b602003916493613544b1bdcdfd99f03
45,418
py
Python
awswrangler/athena/_read.py
lukaswerner/aws-data-wrangler
10475967649ab6244315a769ef42a96ea1bd22cc
[ "Apache-2.0" ]
null
null
null
awswrangler/athena/_read.py
lukaswerner/aws-data-wrangler
10475967649ab6244315a769ef42a96ea1bd22cc
[ "Apache-2.0" ]
null
null
null
awswrangler/athena/_read.py
lukaswerner/aws-data-wrangler
10475967649ab6244315a769ef42a96ea1bd22cc
[ "Apache-2.0" ]
null
null
null
"""Amazon Athena Module gathering all read_sql_* function.""" import csv import datetime import logging import re import sys import uuid from typing import Any, Dict, Iterator, List, Match, NamedTuple, Optional, Tuple, Union import boto3 import botocore.exceptions import pandas as pd from awswrangler import _utils, ...
41.744485
120
0.683826
795cb5db7d22f353f8c5875b1553545644756443
22,556
py
Python
tests/components/homekit/test_type_thermostats.py
raymondelooff/home-assistant
a9a8cbbd100b4ca5c7f90210fb37da37bc634923
[ "Apache-2.0" ]
3
2019-01-31T13:41:37.000Z
2020-05-20T14:22:18.000Z
tests/components/homekit/test_type_thermostats.py
raymondelooff/home-assistant
a9a8cbbd100b4ca5c7f90210fb37da37bc634923
[ "Apache-2.0" ]
5
2021-02-08T20:32:11.000Z
2022-01-13T01:19:23.000Z
tests/components/homekit/test_type_thermostats.py
raymondelooff/home-assistant
a9a8cbbd100b4ca5c7f90210fb37da37bc634923
[ "Apache-2.0" ]
1
2021-05-31T08:13:56.000Z
2021-05-31T08:13:56.000Z
"""Test different accessory types: Thermostats.""" from collections import namedtuple from unittest.mock import patch import pytest from homeassistant.components.climate import ( ATTR_CURRENT_TEMPERATURE, ATTR_MAX_TEMP, ATTR_MIN_TEMP, ATTR_TARGET_TEMP_LOW, ATTR_TARGET_TEMP_HIGH, ATTR_OPERATION_MODE, ATTR_...
43.128107
78
0.686824
795cb783aba37765771f660fdf02f18cd0ba907c
12,726
py
Python
labguru/core.py
BioData/LabguruPython
2b108f038726acd6ee980cac9aaca3ce60faa4ea
[ "MIT" ]
5
2019-09-25T11:29:38.000Z
2022-03-24T00:12:36.000Z
labguru/core.py
BioData/LabguruPython
2b108f038726acd6ee980cac9aaca3ce60faa4ea
[ "MIT" ]
2
2022-02-12T19:23:29.000Z
2022-02-13T07:17:15.000Z
labguru/core.py
BioData/LabguruPython
2b108f038726acd6ee980cac9aaca3ce60faa4ea
[ "MIT" ]
3
2022-01-19T16:40:46.000Z
2022-03-24T00:16:01.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from . import api from .error import UnAuthorizeException from .project import Project, Folder, Experiment, Procedure, Element from .inventory import InventoryItem, Stock from .response import Session from .validation import validate_required_fields, valida...
48.387833
121
0.696134
795cb85d309c77ef1ca29741aa45eed4207a3c65
4,767
py
Python
src/awkward/_v2/operations/reducers/ak_mean.py
colesbury/awkward-1.0
d036ab18eb54de8a2571d9f179d315ac8ee22119
[ "BSD-3-Clause" ]
null
null
null
src/awkward/_v2/operations/reducers/ak_mean.py
colesbury/awkward-1.0
d036ab18eb54de8a2571d9f179d315ac8ee22119
[ "BSD-3-Clause" ]
null
null
null
src/awkward/_v2/operations/reducers/ak_mean.py
colesbury/awkward-1.0
d036ab18eb54de8a2571d9f179d315ac8ee22119
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE import awkward as ak np = ak.nplike.NumpyMetadata.instance() # @ak._v2._connect.numpy.implements("mean") def mean( x, weight=None, axis=None, keepdims=False, mask_identity=True, flatten_records=False ): """ Args: ...
40.058824
88
0.619048
795cb8b8e7349bc12a4d9eb307c95e8d3179e4e8
1,554
py
Python
tests/device/test_read_measurement.py
Sensirion/python-shdlc-sfa3x
551c5f2078592a69bf2a333fd9ab58f1c6764f2f
[ "BSD-3-Clause" ]
1
2021-04-12T12:22:43.000Z
2021-04-12T12:22:43.000Z
tests/device/test_read_measurement.py
Sensirion/python-shdlc-sfa3x
551c5f2078592a69bf2a333fd9ab58f1c6764f2f
[ "BSD-3-Clause" ]
1
2021-04-27T12:22:06.000Z
2021-05-02T19:14:15.000Z
tests/device/test_read_measurement.py
Sensirion/python-shdlc-sfa3x
551c5f2078592a69bf2a333fd9ab58f1c6764f2f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # (c) Copyright 2020 Sensirion AG, Switzerland from __future__ import absolute_import, division, print_function from sensirion_shdlc_sfa3x.response_types import FormaldehydeConcentration, \ Humidity, Temperature from sensirion_shdlc_sfa3x.device_errors import \ Sfa3xNoMeasurementDataAva...
32.375
77
0.7574
795cb989b201f7bc9a8871d14c6bd5a22665e658
174
py
Python
gammapy/astro/population/__init__.py
Rishank2610/gammapy
3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76
[ "BSD-3-Clause" ]
155
2015-02-25T12:38:02.000Z
2022-03-13T17:54:30.000Z
gammapy/astro/population/__init__.py
Rishank2610/gammapy
3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76
[ "BSD-3-Clause" ]
3,131
2015-01-06T15:36:23.000Z
2022-03-31T17:30:57.000Z
gammapy/astro/population/__init__.py
Rishank2610/gammapy
3cd64fdb2c53c8e5c697a9b85ef8d0486bff0b76
[ "BSD-3-Clause" ]
158
2015-03-16T20:36:44.000Z
2022-03-30T16:05:37.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Astrophysical population models.""" from .simulate import * from .spatial import * from .velocity import *
29
63
0.752874
795cbb4b535ced3feffbbb79075428fe07f2c9ed
4,977
py
Python
dash/__init__.py
lakesite/dash
c64cea5fe4c5aff529e3f121270dbf29f700aeb2
[ "MIT" ]
null
null
null
dash/__init__.py
lakesite/dash
c64cea5fe4c5aff529e3f121270dbf29f700aeb2
[ "MIT" ]
1
2019-09-17T12:22:26.000Z
2019-09-18T22:58:14.000Z
dash/__init__.py
lakesite/dash
c64cea5fe4c5aff529e3f121270dbf29f700aeb2
[ "MIT" ]
1
2019-09-27T03:58:43.000Z
2019-09-27T03:58:43.000Z
import os from flask import Flask, g, current_app, render_template, redirect, url_for from flask_admin import Admin from flask_admin.contrib.sqla import ModelView from flask_login import login_required from flask_mail import Mail from flask_plugins import ( PluginManager, get_enabled_plugins, get_plugin, Plugin, e...
28.936047
85
0.666265
795cbbc78ae88af58564729c83da3805043754d2
237,129
py
Python
nfelib/v4_00/retEnvEventoCancNFe.py
cclauss/nfelib
86832c69ceed8809eecbd536cf55fdcd7aec044b
[ "MIT" ]
null
null
null
nfelib/v4_00/retEnvEventoCancNFe.py
cclauss/nfelib
86832c69ceed8809eecbd536cf55fdcd7aec044b
[ "MIT" ]
null
null
null
nfelib/v4_00/retEnvEventoCancNFe.py
cclauss/nfelib
86832c69ceed8809eecbd536cf55fdcd7aec044b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated by generateDS.py version 2.38.6. # Python 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0] # # Command line options: # ('--no-namespace-defs', '') # ('--no-dates', '') # ('--member-specs', 'list') # ('--use-getter-setter', 'none') # ('-f', '') #...
47.74089
302
0.599568
795cbd56d4395a53a270669969220a6cd849e624
1,957
py
Python
sevenbridges/meta/comp_mutable_dict.py
damirkrstanovic/sevenbridges-python
94b5cda5d6aacc9a331d96aba86e07ac492ee5c0
[ "Apache-2.0" ]
null
null
null
sevenbridges/meta/comp_mutable_dict.py
damirkrstanovic/sevenbridges-python
94b5cda5d6aacc9a331d96aba86e07ac492ee5c0
[ "Apache-2.0" ]
null
null
null
sevenbridges/meta/comp_mutable_dict.py
damirkrstanovic/sevenbridges-python
94b5cda5d6aacc9a331d96aba86e07ac492ee5c0
[ "Apache-2.0" ]
null
null
null
import six # noinspection PyProtectedMember,PyUnresolvedReferences class CompoundMutableDict(dict): """ Resource used for mutable compound dictionaries. """ def __init__(self, **kwargs): self._parent = kwargs.pop('_parent') self._api = kwargs.pop('api') for k, v in kwargs.item...
29.208955
77
0.560041
795cbeb241f363e8749a08b95164100875624f83
7,755
py
Python
library/views.py
doriclazar/peak_30
a87217e4d0d1f96d39ad214d40a879c7abfaaaee
[ "Apache-2.0" ]
null
null
null
library/views.py
doriclazar/peak_30
a87217e4d0d1f96d39ad214d40a879c7abfaaaee
[ "Apache-2.0" ]
1
2018-07-14T07:35:55.000Z
2018-07-16T07:40:49.000Z
library/views.py
doriclazar/peak_30
a87217e4d0d1f96d39ad214d40a879c7abfaaaee
[ "Apache-2.0" ]
null
null
null
import json from django.core import serializers from django.http import JsonResponse from django.utils import timezone from django.shortcuts import render from bots.models import Bot from .models import Profession, Module, Class, Category, ExternalModule, ProgrammingLanguage, Command, Call, Word, Combo def validate_...
46.160714
164
0.646937
795cbed9010954d8972b0d52aec72d2938562059
927
py
Python
app/user/views.py
nikinsaw/recipe-app-api
9815654cd1a5c9195625527facde55820f055867
[ "MIT" ]
null
null
null
app/user/views.py
nikinsaw/recipe-app-api
9815654cd1a5c9195625527facde55820f055867
[ "MIT" ]
null
null
null
app/user/views.py
nikinsaw/recipe-app-api
9815654cd1a5c9195625527facde55820f055867
[ "MIT" ]
null
null
null
from rest_framework import generics, authentication, permissions from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.settings import api_settings from user.serializers import UserSerializer, AuthTokenSerializer class CreateUserView(generics.CreateAPIView): """Create a new user in the s...
33.107143
66
0.788565
795cbf0c29a0f7a68071c88b72e57f7007ac9485
239
py
Python
django/blog/urls.py
ekulbyrnes/ras_v1
f3be9fa44568a9aa78efc238b2f0d68de4ee5f44
[ "MIT" ]
null
null
null
django/blog/urls.py
ekulbyrnes/ras_v1
f3be9fa44568a9aa78efc238b2f0d68de4ee5f44
[ "MIT" ]
null
null
null
django/blog/urls.py
ekulbyrnes/ras_v1
f3be9fa44568a9aa78efc238b2f0d68de4ee5f44
[ "MIT" ]
null
null
null
from . import views from django.urls import path urlpatterns = [ path('', views.index, name='index'), path('list', views.PageList.as_view(), name='list'), path('<slug:slug>/', views.PageDetail.as_view(), name='page_detail'), ]
29.875
73
0.661088
795cbfd63fc72c65412f57a2f67cf584aacf8f03
3,466
py
Python
Development/F_in Code/template_mpc1.py
nprakash13/MPC-Case-Study
dafd5eae3af5be332d33574d53adc596f75973a6
[ "CNRI-Python" ]
null
null
null
Development/F_in Code/template_mpc1.py
nprakash13/MPC-Case-Study
dafd5eae3af5be332d33574d53adc596f75973a6
[ "CNRI-Python" ]
null
null
null
Development/F_in Code/template_mpc1.py
nprakash13/MPC-Case-Study
dafd5eae3af5be332d33574d53adc596f75973a6
[ "CNRI-Python" ]
2
2020-12-12T17:52:52.000Z
2020-12-19T23:14:26.000Z
# # This file is part of do-mpc # # do-mpc: An environment for the easy, modular and efficient implementation of # robust nonlinear model predictive control # # Copyright (c) 2014-2019 Sergio Lucia, Alexandru Tatulea-Codrean # TU Dortmund. All rights reserved # # do-mpc is free sof...
31.225225
80
0.558857
795cc049c4cc888e158b5e09d71b8b28b6c6ebdb
22,610
py
Python
Python/triton_monitor.py
ultpnml/ult_instruments
3c9dd6b26e993bba3e20c7f91af6510152850cfd
[ "BSD-3-Clause" ]
null
null
null
Python/triton_monitor.py
ultpnml/ult_instruments
3c9dd6b26e993bba3e20c7f91af6510152850cfd
[ "BSD-3-Clause" ]
null
null
null
Python/triton_monitor.py
ultpnml/ult_instruments
3c9dd6b26e993bba3e20c7f91af6510152850cfd
[ "BSD-3-Clause" ]
null
null
null
# Monitors the status of the dilution refrigerator #TO DO: Message boundaries for recv over TCP import socket import time import traceback import atexit from collections import deque try: import thread except ModuleNotFoundError: import _thread as thread import datetime import re dt_expression = r'^\s*((?P<d...
37.936242
249
0.531269
795cc0a4379a9603f5fe3f44007e064eec4cb930
452
py
Python
main_site/migrations/0003_auto_20200526_1848.py
forbidd/RaiseLeaders
26b27823ee23bf851d42dbff8e30ddb7ddcc5192
[ "MIT" ]
1
2020-05-28T19:09:59.000Z
2020-05-28T19:09:59.000Z
main_site/migrations/0003_auto_20200526_1848.py
forbidd/RaiseLeaders
26b27823ee23bf851d42dbff8e30ddb7ddcc5192
[ "MIT" ]
10
2020-05-30T20:32:55.000Z
2022-03-12T00:24:16.000Z
main_site/migrations/0003_auto_20200526_1848.py
forbidd/RaiseLeaders
26b27823ee23bf851d42dbff8e30ddb7ddcc5192
[ "MIT" ]
2
2020-05-30T20:25:07.000Z
2020-06-08T20:20:17.000Z
# Generated by Django 3.0.3 on 2020-05-26 18:48 from django.db import migrations, models import main_site.models class Migration(migrations.Migration): dependencies = [ ('main_site', '0002_auto_20200526_1842'), ] operations = [ migrations.AlterField( model_name='event', ...
22.6
87
0.639381
795cc0ced7fa4a1685a2b72bdca12f944f1a02d7
1,159
py
Python
Constant.py
tommasoberlose/Kazaa
ebac0fdf76409ad68f8d66b59fd332e25878ce27
[ "MIT" ]
null
null
null
Constant.py
tommasoberlose/Kazaa
ebac0fdf76409ad68f8d66b59fd332e25878ce27
[ "MIT" ]
null
null
null
Constant.py
tommasoberlose/Kazaa
ebac0fdf76409ad68f8d66b59fd332e25878ce27
[ "MIT" ]
null
null
null
PORT = "30000" PORT_SN = "3000" LENGTH_PORT = 5 LENGTH_ITEM_REMOVED = 3 TTL = "2" TTL_SN = "4" LENGTH_TTL = 2 ERROR_PKT = "0000" LIST_PKT = [] LENGTH_PKTID = 16 LENGTH_SESSIONID = 16 LENGTH_FORMAT = 24 ERROR_LOG = "0" * LENGTH_SESSIONID LENGTH_FILENAME = 100 LENGTH_QUERY = 20 LENGTH_SECTION_IPV4 = 3 LENGTH_SEC...
13.963855
34
0.713546
795cc30cdcfec00747a8b52d80ebf8623698face
15,880
py
Python
generate_targeted_triplets_eval_sets.py
mitjanikolaus/peppa
bacfaf3ef09f050dcb503bb4c67e01f8e7ab06f5
[ "Apache-2.0" ]
null
null
null
generate_targeted_triplets_eval_sets.py
mitjanikolaus/peppa
bacfaf3ef09f050dcb503bb4c67e01f8e7ab06f5
[ "Apache-2.0" ]
14
2021-11-06T09:38:04.000Z
2022-03-15T11:14:01.000Z
generate_targeted_triplets_eval_sets.py
mitjanikolaus/peppa
bacfaf3ef09f050dcb503bb4c67e01f8e7ab06f5
[ "Apache-2.0" ]
1
2021-11-22T14:25:33.000Z
2021-11-22T14:25:33.000Z
import argparse import itertools import json import os import re from collections import Counter import pandas as pd from spacy.tokens import Doc import spacy from tqdm import tqdm from pig.data import SPLIT_SPEC DATA_DIR = "data/out/180x100/" REALIGNED_DATA_DIR = "data/out/realign/" DATA_EVAL_DIR = "data/eval/" F...
35.927602
120
0.542884
795cc410967f76b8f01969dd837c8df7d05c5a11
958
py
Python
figures/performance_error.py
stefaniaebli/paper-snn-neurips2020tda
935658c9fa93897b4e288918e6e9c3fb0a0bee3e
[ "CC-BY-4.0" ]
5
2021-01-06T18:45:39.000Z
2022-03-30T05:09:20.000Z
figures/performance_error.py
stefaniaebli/paper-snn-neurips2020tda
935658c9fa93897b4e288918e6e9c3fb0a0bee3e
[ "CC-BY-4.0" ]
null
null
null
figures/performance_error.py
stefaniaebli/paper-snn-neurips2020tda
935658c9fa93897b4e288918e6e9c3fb0a0bee3e
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 import os import numpy as np import matplotlib.pyplot as plt def main(): plt.rcParams.update({"font.size": 6}) fig = plt.figure(constrained_layout=True, figsize=(80/25.4, 35/25.4)) gs = fig.add_gridspec(1, 3) axs = gs.subplots() for d in [0, 1, 2]: errors = np.l...
24.564103
86
0.610647
795cc44922f0c4c4efb5d23e30bc7efce2807fb3
1,158
py
Python
TUI/Misc/MCP/TestData.py
StarkillerX42/stui
668628cf7539e7d2be12846033141e4eb8616fe1
[ "BSD-3-Clause" ]
2
2019-05-07T04:33:57.000Z
2021-12-16T19:54:02.000Z
TUI/Misc/MCP/TestData.py
StarkillerX42/stui
668628cf7539e7d2be12846033141e4eb8616fe1
[ "BSD-3-Clause" ]
5
2018-05-29T20:14:50.000Z
2020-02-17T21:58:30.000Z
TUI/Misc/MCP/TestData.py
StarkillerX42/stui
668628cf7539e7d2be12846033141e4eb8616fe1
[ "BSD-3-Clause" ]
2
2019-10-18T22:02:54.000Z
2020-09-26T04:20:26.000Z
#!/usr/bin/env python import TUI.Base.TestDispatcher testDispatcher = TUI.Base.TestDispatcher.TestDispatcher("mcp", delay=1.5) tuiModel = testDispatcher.tuiModel dataList = ( "ffsStatus=01,01,01,01,01,01,01,01", "ffsCommandedOpen=false", "ffsSelected=11", "ffLamp=0,0,0,0", "ffLampCommandedOn=false...
21.444444
73
0.607945
795cc453fff76b80224e87c507816187c1fe0fd9
156,728
py
Python
Lib/lib-tk/Tkinter.py
erdc-cm/python
25f8eb75c63f35f7594d817ffb1d9a26f3d0bb77
[ "PSF-2.0" ]
1
2018-01-31T03:04:40.000Z
2018-01-31T03:04:40.000Z
Lib/lib-tk/Tkinter.py
erdc-cm/python
25f8eb75c63f35f7594d817ffb1d9a26f3d0bb77
[ "PSF-2.0" ]
1
2019-12-13T17:28:42.000Z
2019-12-13T17:28:42.000Z
Lib/lib-tk/Tkinter.py
erdc-cm/python
25f8eb75c63f35f7594d817ffb1d9a26f3d0bb77
[ "PSF-2.0" ]
4
2016-12-18T08:07:29.000Z
2017-01-20T21:49:25.000Z
"""Wrapper functions for Tcl/Tk. Tkinter provides classes which allow the display, positioning and control of widgets. Toplevel widgets are Tk and Toplevel. Other widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton, Checkbutton, Scale, Listbox, Scrollbar, OptionMenu, Spinbox LabelFrame and PanedWindow. ...
41.705162
110
0.608685
795cc4ddf898cc7646931177e59467d044f3caff
4,871
py
Python
scripts/seeder/seed_tests.py
CraftyChimera/nittfest-site
71754a0f282dff247e9b5ef8bc992718c6643576
[ "MIT" ]
null
null
null
scripts/seeder/seed_tests.py
CraftyChimera/nittfest-site
71754a0f282dff247e9b5ef8bc992718c6643576
[ "MIT" ]
null
null
null
scripts/seeder/seed_tests.py
CraftyChimera/nittfest-site
71754a0f282dff247e9b5ef8bc992718c6643576
[ "MIT" ]
null
null
null
""" Seed Question data """ from requests.sessions import Session from config.logger import logger from scripts.test_constants import ( test_answers, test_clusters, test_departments, test_domains, test_events, test_points, test_prefs, test_questions, test_user, ) from server.schemas...
34.062937
71
0.498255
795cc58d2ec2460d1186a43af47b36f65ca123e2
34
py
Python
tests/test_placeholder.py
theY4Kman/birdfeeder
25503a138fe01589fb28317ae0f3e281d6ce1961
[ "MIT" ]
3
2021-08-09T11:59:16.000Z
2021-08-09T12:44:54.000Z
tests/test_placeholder.py
theY4Kman/birdfeeder
25503a138fe01589fb28317ae0f3e281d6ce1961
[ "MIT" ]
3
2022-02-28T20:22:56.000Z
2022-03-31T17:43:10.000Z
tests/test_placeholder.py
theY4Kman/birdfeeder
25503a138fe01589fb28317ae0f3e281d6ce1961
[ "MIT" ]
1
2021-05-19T19:03:43.000Z
2021-05-19T19:03:43.000Z
def test_hello(): assert True
11.333333
17
0.676471
795cc594d4e0828060e1ba97df5eb3d8bc56d858
2,349
py
Python
bilibili_api/channel.py
limn2o4/bilibili_api
dc518016c7649be2a135ccb8badb091712754a3d
[ "MIT" ]
null
null
null
bilibili_api/channel.py
limn2o4/bilibili_api
dc518016c7649be2a135ccb8badb091712754a3d
[ "MIT" ]
null
null
null
bilibili_api/channel.py
limn2o4/bilibili_api
dc518016c7649be2a135ccb8badb091712754a3d
[ "MIT" ]
null
null
null
""" bilibili_api.channel 频道相关操作。 """ import json import os from .exceptions import ArgsException from .utils.utils import get_api from .utils.network import request from .utils.Credential import Credential API = get_api("channel") def get_channel_info_by_tid(tid: int): """ 根据 tid 获取频道信息...
25.258065
99
0.536824
795cc5a4cf1efb88a1384b452cc88f5d3087709d
70,162
py
Python
test/engine/test_deprecations.py
CrsiX/sqlalchemy
fb81f9c8d914f9911925dd3f4e77d7fc374b267c
[ "MIT" ]
null
null
null
test/engine/test_deprecations.py
CrsiX/sqlalchemy
fb81f9c8d914f9911925dd3f4e77d7fc374b267c
[ "MIT" ]
1
2021-11-04T15:19:47.000Z
2021-11-04T15:19:47.000Z
test/engine/test_deprecations.py
GoProperly/sqlalchemy
84be0b42e03b0aaf8000637c4b5e348a39333e2f
[ "MIT" ]
null
null
null
import re import sqlalchemy as tsa import sqlalchemy as sa from sqlalchemy import bindparam from sqlalchemy import create_engine from sqlalchemy import DDL from sqlalchemy import engine from sqlalchemy import event from sqlalchemy import exc from sqlalchemy import ForeignKey from sqlalchemy import func from sqlalchemy...
34.871769
79
0.550925
795cc60ff350b23fd58b8522224c373528508859
687
py
Python
PS4/activation_layer.py
ngqm/EE538
f9a2731c9d76f52944481d82acdb920520426655
[ "MIT" ]
3
2021-03-19T14:49:19.000Z
2021-04-09T14:45:55.000Z
PS4/activation_layer.py
ngqm/ee538
f9a2731c9d76f52944481d82acdb920520426655
[ "MIT" ]
null
null
null
PS4/activation_layer.py
ngqm/ee538
f9a2731c9d76f52944481d82acdb920520426655
[ "MIT" ]
1
2021-07-10T10:13:14.000Z
2021-07-10T10:13:14.000Z
from layer import Layer # inherit from base class Layer class ActivationLayer(Layer): def __init__(self, activation, activation_prime): self.activation = activation self.activation_prime = activation_prime # returns the activated input def forward_propagation(self, input_data): sel...
38.166667
75
0.730713
795cc6a5dab1855ddb10b8a15bb9c52a2370741b
3,706
py
Python
plots/model_selection/plot_Sanger_nmf_model_selection.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
16
2017-04-19T12:04:47.000Z
2021-12-03T00:50:43.000Z
plots/model_selection/plot_Sanger_nmf_model_selection.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
1
2017-04-20T11:26:16.000Z
2017-04-20T11:26:16.000Z
plots/model_selection/plot_Sanger_nmf_model_selection.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
8
2015-12-15T05:29:43.000Z
2019-06-05T03:14:11.000Z
""" Plot the model selection of the VB-NMF algorithm on the Sanger dataset. We run our method on the entire dataset, so no test set. We plot the MSE, BIC and AIC. """ import matplotlib.pyplot as plt values_K = range(1,35+1) vb_all_values = {'MSE': [3.0272045267867274, 2.5912982754926035, 2.3421361670917507, 2.1573...
123.533333
2,846
0.794927
795cc70a1675dacd1651e0f3e66b196b9cb587c0
26,615
py
Python
nicos/devices/generic/sequence.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos/devices/generic/sequence.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
4
2019-11-08T10:18:16.000Z
2021-01-13T13:07:29.000Z
nicos/devices/generic/sequence.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
35.724832
80
0.568101
795cc73b6d80ce57ca9a1097bc4f1249758740fe
2,934
py
Python
default_settings.py
showell/zulip_archive
6135547f7f9681c5ab24e8ae265a33b7ff77d58d
[ "MIT" ]
null
null
null
default_settings.py
showell/zulip_archive
6135547f7f9681c5ab24e8ae265a33b7ff77d58d
[ "MIT" ]
null
null
null
default_settings.py
showell/zulip_archive
6135547f7f9681c5ab24e8ae265a33b7ff77d58d
[ "MIT" ]
null
null
null
# Welcome to default_settings.py! You will want to modify these values # for your own needs and then copy them to settings.py. Copying them # in the same directory is the mostly likely choice here: # # cp default_settings settings.py # <edit> settings.py # # If you prefer to keep the settings elsewhere, just ma...
25.513043
71
0.70893
795cc78ebcbb82592cf15d8d3d4f9f531efd93cf
3,110
py
Python
app/tests/e2e/test_wallet.py
didx-xyz/aries-cloudapi-python
0c8004265c4bfd88f313a152f2757ec0441740a7
[ "Apache-2.0" ]
7
2021-05-19T17:50:31.000Z
2022-01-16T13:52:34.000Z
app/tests/e2e/test_wallet.py
didx-xyz/aries-cloudapi-python
0c8004265c4bfd88f313a152f2757ec0441740a7
[ "Apache-2.0" ]
181
2021-05-25T14:55:14.000Z
2022-03-30T11:37:34.000Z
app/tests/e2e/test_wallet.py
didx-xyz/aries-cloudapi-python
0c8004265c4bfd88f313a152f2757ec0441740a7
[ "Apache-2.0" ]
5
2021-06-02T06:57:52.000Z
2022-03-23T10:23:07.000Z
from typing import Any from aries_cloudcontroller import AcaPyClient from httpx import AsyncClient import pytest import app.facades.acapy_wallet as wallet_facade from app.generic.wallet.models import SetDidEndpointRequest from app.tests.util.ledger import create_public_did, post_to_ledger from app.generic.wallet.walle...
29.903846
88
0.770096
795cc82574e484fba801d8e6fa0b407d7c4c536b
136
py
Python
app/urls.py
Kgermando/sem
c76e97e1d526d4e92a925adb6bceee426f999655
[ "Apache-2.0" ]
null
null
null
app/urls.py
Kgermando/sem
c76e97e1d526d4e92a925adb6bceee426f999655
[ "Apache-2.0" ]
null
null
null
app/urls.py
Kgermando/sem
c76e97e1d526d4e92a925adb6bceee426f999655
[ "Apache-2.0" ]
null
null
null
from django.urls import path from app.views import index app_name = 'app' urlpatterns = [ path('index/', index, name='index'), ]
13.6
40
0.676471
795cc8527eb28cd366851428e37c239f5e214695
650
py
Python
test_apps/python_app/example/flows/o1_testcases/prb1.py
Origen-SDK/o2
5b0f9a6d113ddebc73c7ee224931e8b2d0301794
[ "MIT" ]
null
null
null
test_apps/python_app/example/flows/o1_testcases/prb1.py
Origen-SDK/o2
5b0f9a6d113ddebc73c7ee224931e8b2d0301794
[ "MIT" ]
127
2019-11-23T17:09:35.000Z
2021-09-02T11:06:20.000Z
test_apps/python_app/example/flows/o1_testcases/prb1.py
Origen-SDK/o2
5b0f9a6d113ddebc73c7ee224931e8b2d0301794
[ "MIT" ]
null
null
null
with Flow(flow_description="Probe1 Main") as flow: #unless Origen.app.environment.name == 'v93k_global' flow.set_resources_filename('prb1') flow.include('components/prb1_main') flow.include( 'test' ) # import top-level test.rb directly, note that Flow.create options of sub-flow will be i...
30.952381
102
0.663077
795cca3f6ec455bd137e00e1b13f027f1b14be79
1,639
py
Python
config/ranger/commands.py
AgentOrange007/dotfiles
9eacdb770ce8c92d6703d3f056ee358f9ca3110f
[ "MIT" ]
null
null
null
config/ranger/commands.py
AgentOrange007/dotfiles
9eacdb770ce8c92d6703d3f056ee358f9ca3110f
[ "MIT" ]
null
null
null
config/ranger/commands.py
AgentOrange007/dotfiles
9eacdb770ce8c92d6703d3f056ee358f9ca3110f
[ "MIT" ]
null
null
null
from typing import Tuple, Optional from ranger.api.commands import Command from ranger.ext.get_executables import get_executables class wal(Command): """ :wal [filename] [alpha [background]] Generate a Pywal color scheme for the selected or given image. """ DEFAULT_ALPHA: int = 98 DEFAULT_B...
28.754386
69
0.597315
795ccad4a76cc37e698f69ff5ebabb368a58625e
655
py
Python
src/profiles/admin.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/profiles/admin.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/profiles/admin.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import Profile @admin.register(Profile) class OrderAdmin(admin.ModelAdmin): actions = ['approve_public_credit_names'] list_display = [ 'user', 'name', 'description', 'public_credit_name', 'public_credit_name_approved', ...
24.259259
77
0.68855
795ccd864eff7eaac8b24e76756429b1654c1e6b
12,598
py
Python
geotrek/core/helpers.py
jmdecastel/GEOTADMIN
15547c0a99ae4c541ca517cdbc2cf17ab5c96f87
[ "BSD-2-Clause" ]
null
null
null
geotrek/core/helpers.py
jmdecastel/GEOTADMIN
15547c0a99ae4c541ca517cdbc2cf17ab5c96f87
[ "BSD-2-Clause" ]
null
null
null
geotrek/core/helpers.py
jmdecastel/GEOTADMIN
15547c0a99ae4c541ca517cdbc2cf17ab5c96f87
[ "BSD-2-Clause" ]
null
null
null
import json import logging from django.conf import settings from django.db import connection from django.contrib.gis.geos import Point from django.db.models.query import QuerySet from geotrek.common.utils import sqlfunction, uniquify logger = logging.getLogger(__name__) class TopologyHelper(object): @classmet...
41.169935
112
0.549373
795ccec3a93b1c5857afb5dfaa00a09abc589593
2,002
py
Python
fpga/top_spi.py
renzenicolai/nmigen-experiments
c6048ad9cbb29d5b478538ef04997a00c0e5dd1b
[ "Unlicense" ]
null
null
null
fpga/top_spi.py
renzenicolai/nmigen-experiments
c6048ad9cbb29d5b478538ef04997a00c0e5dd1b
[ "Unlicense" ]
null
null
null
fpga/top_spi.py
renzenicolai/nmigen-experiments
c6048ad9cbb29d5b478538ef04997a00c0e5dd1b
[ "Unlicense" ]
null
null
null
from nmigen import * from nmigen.build import Platform, ResourceError, Resource, Subsignal, Pins, Attrs from nmigen.cli import main from nmigen_boards.versa_ecp5_5g import VersaECP55GPlatform import argparse from fourteensegmentdisplay import FourteenSegmentDisplay from spi_slave import SpiSlave class Top(Elaborata...
29.441176
91
0.713287
795cceda7f7868f2f28e1c7f494d7200b65661a1
331
py
Python
Python/flip-game.py
Ravan339/LeetCode
4276e562aa67e4c39cd92be5d2d6700a9465a579
[ "MIT" ]
4
2019-12-09T20:23:17.000Z
2021-11-24T08:59:21.000Z
Python/flip-game.py
Ravan339/LeetCode
4276e562aa67e4c39cd92be5d2d6700a9465a579
[ "MIT" ]
null
null
null
Python/flip-game.py
Ravan339/LeetCode
4276e562aa67e4c39cd92be5d2d6700a9465a579
[ "MIT" ]
9
2020-03-15T23:32:26.000Z
2022-02-25T05:51:26.000Z
# https://leetcode.com/problems/flip-game/submissions/ class Solution: def generatePossibleNextMoves(self, s): """ :type s: str :rtype: List[str] """ out = [] for i in range(0, len(s) - 1): if s[i:i+2] == '++': out.append(s[:i] + '--' + s[i+2:]) ...
23.642857
67
0.477341
795cd09a53228b3f40e277cc776105b3fae3b6fb
8,785
py
Python
Tests/test_closure.py
aisk/ironpython3
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
[ "Apache-2.0" ]
null
null
null
Tests/test_closure.py
aisk/ironpython3
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
[ "Apache-2.0" ]
null
null
null
Tests/test_closure.py
aisk/ironpython3
d492fd811a0cee4d0a07cd46f02a29a3c90d964b
[ "Apache-2.0" ]
2
2021-06-11T12:12:18.000Z
2021-06-14T09:41:26.000Z
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. import types import unittest from iptest import run_test x = 123456 # global to possibly mislead the clos...
24.068493
109
0.384178
795cd267740b9397324e225582906d7a7bd4c4ad
703
py
Python
wsgi/pythonanywhere.py
rvl/guestbook
0f6aa524ef6b9468d8d37df98608b09722552f1c
[ "MIT" ]
3
2018-06-05T00:32:10.000Z
2019-06-10T10:36:21.000Z
wsgi/pythonanywhere.py
rvl/guestbook
0f6aa524ef6b9468d8d37df98608b09722552f1c
[ "MIT" ]
null
null
null
wsgi/pythonanywhere.py
rvl/guestbook
0f6aa524ef6b9468d8d37df98608b09722552f1c
[ "MIT" ]
null
null
null
# This file contains the WSGI configuration required to serve up your # web application at http://<your-username>.pythonanywhere.com/ # It works by setting the variable 'application' to a WSGI handler of some # description. import os.path import sys # add your project directory to the sys.path project_home = os.path....
30.565217
74
0.776671
795cd2d30be0b74ae589b01d34699e531dda9360
1,685
py
Python
iati/urls.py
IATI/new-website
b90783e32d19ac4c821c5ea018a52997a11b5286
[ "MIT" ]
4
2019-03-28T06:42:17.000Z
2021-06-06T13:10:51.000Z
iati/urls.py
IATI/new-website
b90783e32d19ac4c821c5ea018a52997a11b5286
[ "MIT" ]
177
2018-09-28T14:21:56.000Z
2022-03-30T21:45:26.000Z
iati/urls.py
IATI/new-website
b90783e32d19ac4c821c5ea018a52997a11b5286
[ "MIT" ]
8
2018-10-25T20:43:10.000Z
2022-03-17T14:19:27.000Z
"""Django URL settings. Defines the routing of user requests.""" from django.conf import settings from django.conf.urls import include from django.urls import re_path from django.conf.urls.static import static from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib import admin from wag...
37.444444
81
0.745401
795cd3dee68ef64398d0dff8fbf086c1932df55c
470
py
Python
home/kwatters/harry/gestures/FindImage.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
63
2015-02-03T18:49:43.000Z
2022-03-29T03:52:24.000Z
home/kwatters/harry/gestures/FindImage.py
hirwaHenryChristian/pyrobotlab
2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9
[ "Apache-2.0" ]
16
2016-01-26T19:13:29.000Z
2018-11-25T21:20:51.000Z
home/kwatters/harry/gestures/FindImage.py
hirwaHenryChristian/pyrobotlab
2debb381fc2db4be1e7ea6e5252a50ae0de6f4a9
[ "Apache-2.0" ]
151
2015-01-03T18:55:54.000Z
2022-03-04T07:04:23.000Z
def FindImage(image): RetourServer=Parse("http://www.myai.cloud/version.html") try: image = image.decode( "utf8" ) except: pass #mouth.speak(image) #PLEASE USE REAL LANGUAGE PARAMETER : #lang=XX ( FR/EN/RU/IT etc...) #A FAKE LANGUAGE WORKS BUT DATABASE WILL BROKE a = Parse(BotURL+"&type=pic&pic...
31.333333
77
0.655319
795cd473d84b81afd455c91debdf8a1662abbeae
351
py
Python
example.py
etorovsky/MiniGeoJSON
9f37e6d85623ecf5f2e9f1f631949598d292138c
[ "MIT" ]
null
null
null
example.py
etorovsky/MiniGeoJSON
9f37e6d85623ecf5f2e9f1f631949598d292138c
[ "MIT" ]
null
null
null
example.py
etorovsky/MiniGeoJSON
9f37e6d85623ecf5f2e9f1f631949598d292138c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import sys import MiniGeoJSON as mgjson def MiniGeoJSONExample(): fc = mgjson.FeatureCollection() square = mgjson.Square(0, 0, 1, 1) # square of (x,y): (0,0) -> (1,1) square.setProperty({"ID": 1}) fc.addFeature(square) print(fc.toJSON()) if __name__ == "__mai...
21.9375
72
0.649573
795cd4ee32248c2bfdc9fb58f463b104bb0f435e
3,861
py
Python
setup.py
robotpt/pickle-database
4e6ed79dcb6aad2a68a9ad5484817730f820a8cf
[ "MIT" ]
null
null
null
setup.py
robotpt/pickle-database
4e6ed79dcb6aad2a68a9ad5484817730f820a8cf
[ "MIT" ]
null
null
null
setup.py
robotpt/pickle-database
4e6ed79dcb6aad2a68a9ad5484817730f820a8cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pipenv install twine --dev import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = 'pickle-database' DESCRIPTION = '...
28.813433
86
0.640249
795cd52d6ad5a59c57f5a7f2558951949817d2e1
25,408
py
Python
facedetector/utils/datasets.py
jinglingzhua/blinkblink
1975be380ef08f895af4c1c07992efaed7af49e9
[ "MIT" ]
4
2021-05-24T10:59:06.000Z
2022-03-14T01:25:54.000Z
facedetector/utils/datasets.py
jinglingzhua/blinkblink
1975be380ef08f895af4c1c07992efaed7af49e9
[ "MIT" ]
null
null
null
facedetector/utils/datasets.py
jinglingzhua/blinkblink
1975be380ef08f895af4c1c07992efaed7af49e9
[ "MIT" ]
null
null
null
import glob import math import os import random import shutil import time from pathlib import Path from threading import Thread from PIL import Image, ExifTags import cv2 import numpy as np import torch from PIL import Image, ExifTags from torch.utils.data import Dataset from tqdm import tqdm from .utils import xyxy2x...
43.581475
118
0.513578
795cd547d8f063c2e7146600c1500b3d8b90fd9c
123
py
Python
my_website/home/urls.py
PricelessAntonio/Generic-Portfolio-Website
a5881c9387be8cb0e7b4281109249c9188e90f37
[ "MIT" ]
null
null
null
my_website/home/urls.py
PricelessAntonio/Generic-Portfolio-Website
a5881c9387be8cb0e7b4281109249c9188e90f37
[ "MIT" ]
null
null
null
my_website/home/urls.py
PricelessAntonio/Generic-Portfolio-Website
a5881c9387be8cb0e7b4281109249c9188e90f37
[ "MIT" ]
null
null
null
from django.urls import path from .views import HomeView urlpatterns = [ path('', HomeView.as_view(), name='home') ]
15.375
45
0.691057
795cd5c5cc155c56a726015a3757c914bacbc064
2,413
py
Python
src/evaluater/predict.py
nimitdesai92/image-quality-assessment
e53c80e3b46c5ee8d57ff29e297c1d582a5bc610
[ "Apache-2.0" ]
null
null
null
src/evaluater/predict.py
nimitdesai92/image-quality-assessment
e53c80e3b46c5ee8d57ff29e297c1d582a5bc610
[ "Apache-2.0" ]
null
null
null
src/evaluater/predict.py
nimitdesai92/image-quality-assessment
e53c80e3b46c5ee8d57ff29e297c1d582a5bc610
[ "Apache-2.0" ]
null
null
null
import os import glob import json import argparse from utils.utils import calc_mean_score, save_json from handlers.model_builder import Nima from handlers.data_generator import TestDataGenerator from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True def image_file_to_json(img_path): img_dir = os.path.di...
32.173333
112
0.70949
795cd60ac552272d84011fe46cccfcbe50ef865d
4,597
py
Python
smac/tae/execute_ta_run_old.py
jtuyls/SMAC3_4_PC
3f3dcf0e5aca05eeb95ac56aee469935f85fdb4a
[ "BSD-3-Clause" ]
null
null
null
smac/tae/execute_ta_run_old.py
jtuyls/SMAC3_4_PC
3f3dcf0e5aca05eeb95ac56aee469935f85fdb4a
[ "BSD-3-Clause" ]
null
null
null
smac/tae/execute_ta_run_old.py
jtuyls/SMAC3_4_PC
3f3dcf0e5aca05eeb95ac56aee469935f85fdb4a
[ "BSD-3-Clause" ]
null
null
null
import sys from subprocess import Popen, PIPE from smac.tae.execute_ta_run import StatusType, ExecuteTARun __author__ = "Marius Lindauer" __copyright__ = "Copyright 2015, ML4AAD" __license__ = "3-clause BSD" __maintainer__ = "Marius Lindauer" __email__ = "lindauer@cs.uni-freiburg.de" __version__ = "0.0.1" class Exe...
35.914063
144
0.545791
795cd7aaccb3c20100f66bde84c4f2fcb8118799
4,472
py
Python
hcl_target/dataset/cityscapes_train_dataset.py
jxhuang0508/HCL
db54aacd5acdc71cbb014d88b84674b4e3a89f66
[ "MIT" ]
15
2021-12-13T12:26:07.000Z
2022-03-21T21:45:57.000Z
caco_vanilla_finetune/dataset/cityscapes_train_dataset.py
jxhuang0508/CaCo
0106d93fd6277ca843572a6aa01bdf2d1caca117
[ "MIT" ]
4
2021-12-17T09:02:59.000Z
2022-03-17T12:06:29.000Z
caco_vanilla_finetune/dataset/cityscapes_train_dataset.py
jxhuang0508/CaCo
0106d93fd6277ca843572a6aa01bdf2d1caca117
[ "MIT" ]
6
2021-12-21T12:47:50.000Z
2022-03-28T03:51:55.000Z
import os import os.path as osp import numpy as np import random import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt import collections import torch import torchvision from torch.utils import data from PIL import Image from dataset.autoaugment import ImageNetPolicy import time class cityscapesDataS...
40.288288
197
0.583408