hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
0a1eaf6b7e32695b5e6a96b0eee80707d820de35
9,462
py
Python
colab_logica.py
smdesai/logica
ad099bcd6064e38e9c2bc9a99564832857c0768c
[ "Apache-2.0" ]
null
null
null
colab_logica.py
smdesai/logica
ad099bcd6064e38e9c2bc9a99564832857c0768c
[ "Apache-2.0" ]
null
null
null
colab_logica.py
smdesai/logica
ad099bcd6064e38e9c2bc9a99564832857c0768c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
28.672727
92
0.686007
955
0.10093
0
0
81
0.008561
0
0
3,387
0.357958
0a1ed95ecf3a94b0314f7b8f523edacf4c486e8a
275
py
Python
pyccel/ast/basic.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
pyccel/ast/basic.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
pyccel/ast/basic.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
from sympy.core.basic import Basic as sp_Basic class Basic(sp_Basic): """Basic class for Pyccel AST.""" _fst = None def set_fst(self, fst): """Sets the redbaron fst.""" self._fst = fst @property def fst(self): return self._fst
18.333333
46
0.6
225
0.818182
0
0
53
0.192727
0
0
61
0.221818
0a20c183c03d4133fca24e84a8755331075102c6
1,195
py
Python
alibi_detect/utils/tests/test_discretize.py
Clusks/alibi-detect
b39406a6cf88f315f401562d4fea93a42aa6dcc1
[ "ECL-2.0", "Apache-2.0", "CC0-1.0" ]
1,227
2019-11-19T15:38:40.000Z
2022-03-31T11:18:32.000Z
alibi_detect/utils/tests/test_discretize.py
Clusks/alibi-detect
b39406a6cf88f315f401562d4fea93a42aa6dcc1
[ "ECL-2.0", "Apache-2.0", "CC0-1.0" ]
323
2019-11-21T18:41:00.000Z
2022-03-31T21:08:56.000Z
alibi_detect/utils/tests/test_discretize.py
Clusks/alibi-detect
b39406a6cf88f315f401562d4fea93a42aa6dcc1
[ "ECL-2.0", "Apache-2.0", "CC0-1.0" ]
133
2019-11-19T14:23:23.000Z
2022-03-31T07:55:43.000Z
from itertools import product import numpy as np import pytest from alibi_detect.utils.discretizer import Discretizer x = np.random.rand(10, 4) n_features = x.shape[1] feature_names = [str(_) for _ in range(n_features)] categorical_features = [[], [1, 3]] percentiles = [list(np.arange(25, 100, 25)), list(np.arange(10...
31.447368
85
0.663598
0
0
0
0
778
0.651046
0
0
22
0.01841
0a21ba878c2e6396a56688811ff51897970088c4
3,361
py
Python
tinc/tests/parameter_space_test.py
AlloSphere-Research-Group/tinc-python
4c3390df9911a391833244de1eb1d33a2e19d330
[ "BSD-3-Clause" ]
1
2020-11-23T22:42:50.000Z
2020-11-23T22:42:50.000Z
tinc/tests/parameter_space_test.py
AlloSphere-Research-Group/tinc-python
4c3390df9911a391833244de1eb1d33a2e19d330
[ "BSD-3-Clause" ]
null
null
null
tinc/tests/parameter_space_test.py
AlloSphere-Research-Group/tinc-python
4c3390df9911a391833244de1eb1d33a2e19d330
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jun 14 11:49:43 2021 @author: Andres """ import sys,time import unittest from tinc import * class ParameterSpaceTest(unittest.TestCase): def test_parameter(self): p1 = Parameter("param1") p2 = Parameter("param2") ps = ParameterSpace("ps") ...
28.974138
86
0.555489
3,154
0.938411
0
0
0
0
0
0
419
0.124665
0a247bd11d82f9ea0cd74cd38836b820c3903839
5,048
py
Python
interpretable_ddts/runfiles/gym_runner.py
CORE-Robotics-Lab/Interpretable_DDTS_AISTATS2020
a7fde4d2a7d70477b2e6c96b140f8c6587f78791
[ "MIT" ]
5
2021-08-11T14:58:36.000Z
2022-02-12T06:12:19.000Z
interpretable_ddts/runfiles/gym_runner.py
CORE-Robotics-Lab/Interpretable_DDTS_AISTATS2020
a7fde4d2a7d70477b2e6c96b140f8c6587f78791
[ "MIT" ]
null
null
null
interpretable_ddts/runfiles/gym_runner.py
CORE-Robotics-Lab/Interpretable_DDTS_AISTATS2020
a7fde4d2a7d70477b2e6c96b140f8c6587f78791
[ "MIT" ]
4
2020-10-21T03:57:52.000Z
2021-06-28T08:08:05.000Z
# Created by Andrew Silva on 8/28/19 import gym import numpy as np import torch from interpretable_ddts.agents.ddt_agent import DDTAgent from interpretable_ddts.agents.mlp_agent import MLPAgent from interpretable_ddts.opt_helpers.replay_buffer import discount_reward import torch.multiprocessing as mp import argparse im...
40.709677
112
0.621434
0
0
0
0
0
0
0
0
936
0.18542
0a263ee52f1bcf865cb343ad7cbe07411cfb3a5e
1,534
py
Python
Week 08/tw10_words_by_prefix.py
andrewn488/OMSBA-5061
8e57fff45d8965b0423a6fe338bd74cedfe94ea0
[ "MIT" ]
null
null
null
Week 08/tw10_words_by_prefix.py
andrewn488/OMSBA-5061
8e57fff45d8965b0423a6fe338bd74cedfe94ea0
[ "MIT" ]
null
null
null
Week 08/tw10_words_by_prefix.py
andrewn488/OMSBA-5061
8e57fff45d8965b0423a6fe338bd74cedfe94ea0
[ "MIT" ]
1
2022-02-07T02:42:43.000Z
2022-02-07T02:42:43.000Z
""" TW10: Words by Prefix Team: Tam Tamura, Andrew Nalundasan For: OMSBA 2061, Seattle University Date: 11/3/2020 """ def wordByPrefix(prefix_length, word): my_dict = {} for key in word: for letter in word: prefix_key = letter[:prefix_length] letter = word[:prefix_len...
24.741935
82
0.544329
0
0
0
0
0
0
0
0
197
0.128422
0a26a5869fd7404e249d795b4a225c3eca2ac49a
2,683
py
Python
openff/bespokefit/executor/services/qcgenerator/cache.py
openforcefield/bespoke-f
27b072bd09610dc8209429118d739e1f453edd61
[ "MIT" ]
12
2020-08-28T20:49:00.000Z
2021-11-17T08:50:32.000Z
openff/bespokefit/executor/services/qcgenerator/cache.py
openforcefield/bespoke-f
27b072bd09610dc8209429118d739e1f453edd61
[ "MIT" ]
95
2020-02-19T18:40:54.000Z
2021-12-02T10:52:23.000Z
openff/bespokefit/executor/services/qcgenerator/cache.py
openforcefield/openff-bespokefit
85c92a51055a5a82e5d50fee1668a7de4ce2b1d4
[ "MIT" ]
3
2021-04-01T04:22:49.000Z
2021-04-13T03:19:10.000Z
import hashlib from typing import TypeVar, Union import redis from openff.toolkit.topology import Molecule from openff.bespokefit.executor.services.qcgenerator import worker from openff.bespokefit.schema.tasks import HessianTask, OptimizationTask, Torsion1DTask from openff.bespokefit.utilities.molecule import canonic...
31.197674
87
0.706299
0
0
0
0
0
0
0
0
462
0.172195
0a277a87fbb9f9430d9ecdf658e9964b1157dc17
3,951
py
Python
advanced-workflows/task-graphs-lab/exercise/plugins/lab/plugin/workflows.py
jrzeszutek/cloudify-training-labs
5477750d269cb703ce47e35a1c13749fc88f3f6f
[ "Apache-2.0" ]
6
2015-07-06T01:10:08.000Z
2016-12-21T15:42:07.000Z
advanced-workflows/task-graphs-lab/exercise/plugins/lab/plugin/workflows.py
jrzeszutek/cloudify-training-labs
5477750d269cb703ce47e35a1c13749fc88f3f6f
[ "Apache-2.0" ]
4
2015-08-25T06:32:36.000Z
2016-09-07T07:01:34.000Z
advanced-workflows/task-graphs-lab/exercise/plugins/lab/plugin/workflows.py
jrzeszutek/cloudify-training-labs
5477750d269cb703ce47e35a1c13749fc88f3f6f
[ "Apache-2.0" ]
14
2015-03-28T05:45:58.000Z
2017-02-14T02:22:09.000Z
'''Copyright Gigaspaces, 2017, All Rights Reserved''' from cloudify.plugins import lifecycle OP_START = 'hacker.interfaces.lifecycle.start' OP_STOP = 'hacker.interfaces.lifecycle.stop' OP_SS_C = 'hacker.interfaces.lifecycle.create_snapshots' OP_SS_D = 'hacker.interfaces.lifecycle.delete_snapshots' REQUIRED_OPS = set([...
37.628571
77
0.679069
0
0
0
0
0
0
0
0
1,948
0.49304
0a28f4c1d95b682b9a50e90e2f39fe8345b14eab
33,404
py
Python
File Transfer/Flyter/flyter.py
CryptoNyxz/Miscellaneous-Tools
797ea04d7c369469ab3d2a1ae2838c4a7b7b9c02
[ "MIT" ]
null
null
null
File Transfer/Flyter/flyter.py
CryptoNyxz/Miscellaneous-Tools
797ea04d7c369469ab3d2a1ae2838c4a7b7b9c02
[ "MIT" ]
null
null
null
File Transfer/Flyter/flyter.py
CryptoNyxz/Miscellaneous-Tools
797ea04d7c369469ab3d2a1ae2838c4a7b7b9c02
[ "MIT" ]
null
null
null
""" Flyter Tool for transferring files on the same network using raw sockets. Doesn't use encryption. """ __version__ = (0, 0, 0) __author__ = "CryptoNyxz" __license__ = """ MIT License Copyright (c) 2021 Jaymund Cyrus F. Floranza Permission is hereby granted, free of charge, to any person obtaining a copy of this...
31.542965
79
0.55176
27,119
0.811752
0
0
1,329
0.039781
0
0
8,761
0.262243
0a29f1417c7897dd77e238158ebcffa7aedd19a4
14,751
py
Python
tests/test_modeling_tf_led.py
patelrajnath/transformers
98afe9d7c94a840d4b30c7eb76f9bfe570d2ed50
[ "Apache-2.0" ]
null
null
null
tests/test_modeling_tf_led.py
patelrajnath/transformers
98afe9d7c94a840d4b30c7eb76f9bfe570d2ed50
[ "Apache-2.0" ]
null
null
null
tests/test_modeling_tf_led.py
patelrajnath/transformers
98afe9d7c94a840d4b30c7eb76f9bfe570d2ed50
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright Iz Beltagy, Matthew E. Peters, Arman Cohan and The HuggingFace Inc. team. 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.ap...
42.266476
119
0.686055
12,496
0.847129
0
0
12,538
0.849976
0
0
2,408
0.163243
0a2a4e7e62506f1bbd8360775e618cece1d71944
5,239
py
Python
src/wann_genetic/individual/numpy/ffnn.py
plonerma/wann-genetic
c4a8a1db81665b2549994d615e1d347dbe00226a
[ "MIT" ]
null
null
null
src/wann_genetic/individual/numpy/ffnn.py
plonerma/wann-genetic
c4a8a1db81665b2549994d615e1d347dbe00226a
[ "MIT" ]
null
null
null
src/wann_genetic/individual/numpy/ffnn.py
plonerma/wann-genetic
c4a8a1db81665b2549994d615e1d347dbe00226a
[ "MIT" ]
null
null
null
import numpy as np import sklearn import logging from wann_genetic.individual.network_base import BaseFFNN def softmax(x, axis=-1): """Compute softmax values for each sets of scores in x. Returns: softmax - softmax normalized in dim axis """ e_x = np.exp(x - np.expand_dims(np.max(x,axis=axis)...
33.158228
86
0.601642
4,189
0.79958
0
0
0
0
0
0
1,241
0.236877
0a2acc58ab0f0250a6af12c5eb3f75f975289067
14,665
py
Python
common/tests/util.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
14
2020-03-25T11:11:29.000Z
2022-03-08T20:41:33.000Z
common/tests/util.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
352
2020-03-25T10:42:09.000Z
2022-03-30T15:32:26.000Z
common/tests/util.py
uktrade/tamato
4ba2ffb25eea2887e4e081c81da7634cd7b4f9ca
[ "MIT" ]
3
2020-08-06T12:22:41.000Z
2022-01-16T11:51:12.000Z
import contextlib from datetime import date from datetime import datetime from datetime import timezone from functools import wraps from io import BytesIO from itertools import count from typing import Any from typing import Dict from typing import Sequence import pytest from dateutil.parser import parse as parse_date...
31.268657
93
0.633277
3,551
0.242141
208
0.014183
1,795
0.1224
0
0
3,915
0.266962
0a2ad964a50ee086e447a623b3863c7fbb9ef26a
1,977
py
Python
src/com/python/email/send_mail.py
Leeo1124/pythonDemo
72e2209c095301a3f1f61edfe03ea69c3c05be40
[ "Apache-2.0" ]
null
null
null
src/com/python/email/send_mail.py
Leeo1124/pythonDemo
72e2209c095301a3f1f61edfe03ea69c3c05be40
[ "Apache-2.0" ]
null
null
null
src/com/python/email/send_mail.py
Leeo1124/pythonDemo
72e2209c095301a3f1f61edfe03ea69c3c05be40
[ "Apache-2.0" ]
null
null
null
''' Created on 2016年8月10日 @author: Administrator ''' from email import encoders from email.header import Header from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.mime.multipart import MIMEBase from email.utils import parseaddr, formataddr import smtplib def _format_addr(s)...
29.073529
83
0.676277
0
0
0
0
0
0
0
0
1,115
0.505211
0a2b055f1a31031a96cc1310b503a9a15b43be19
4,176
py
Python
aqui_carattino/blog/migrations/0002_auto_20200424_1452.py
aquilesC/aquicarattino
b6d873aea6e3ec9d1b802ea13952746e4fcc22b6
[ "MIT" ]
null
null
null
aqui_carattino/blog/migrations/0002_auto_20200424_1452.py
aquilesC/aquicarattino
b6d873aea6e3ec9d1b802ea13952746e4fcc22b6
[ "MIT" ]
2
2020-05-08T04:30:26.000Z
2021-06-17T20:19:02.000Z
aqui_carattino/blog/migrations/0002_auto_20200424_1452.py
aquilesC/aquicarattino
b6d873aea6e3ec9d1b802ea13952746e4fcc22b6
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-24 12:52 from django.db import migrations, models import django.db.models.deletion import modelcluster.contrib.taggit import modelcluster.fields import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): depend...
68.459016
1,357
0.670498
3,905
0.935105
0
0
0
0
0
0
1,075
0.257423
0a2b4094e1ca26bb245cb9af7bc67b4f16fdf9b2
2,224
py
Python
studies/mixture_feasibility/parsley_benchmark/alcohol_ester/run.py
openforcefield/nistdataselection
d797d597f4ff528a7219d58daa8ef6508d438b24
[ "MIT" ]
3
2020-03-25T02:42:04.000Z
2020-07-20T10:39:35.000Z
studies/mixture_feasibility/parsley_benchmark/alcohol_ester/run.py
openforcefield/nistdataselection
d797d597f4ff528a7219d58daa8ef6508d438b24
[ "MIT" ]
13
2019-09-05T00:20:03.000Z
2020-03-05T23:58:04.000Z
studies/mixture_feasibility/parsley_benchmark/alcohol_ester/run.py
openforcefield/nistdataselection
d797d597f4ff528a7219d58daa8ef6508d438b24
[ "MIT" ]
null
null
null
from evaluator import unit from evaluator.backends import QueueWorkerResources from evaluator.backends.dask import DaskLSFBackend from evaluator.client import ConnectionOptions, EvaluatorClient from evaluator.datasets import PhysicalPropertyDataSet from evaluator.forcefield import SmirnoffForceFieldSource from evaluato...
31.771429
85
0.71223
0
0
0
0
0
0
0
0
430
0.193345
0a2b482bae656ac79eb981d550db6a1224027b57
2,268
py
Python
nuplan/planning/simulation/observation/idm/test/test_profile_idm_observation.py
motional/nuplan-devkit
e39029e788b17f47f2fcadb774098ef8fbdd0d67
[ "Apache-2.0" ]
128
2021-12-06T15:41:14.000Z
2022-03-29T13:16:32.000Z
nuplan/planning/simulation/observation/idm/test/test_profile_idm_observation.py
motional/nuplan-devkit
e39029e788b17f47f2fcadb774098ef8fbdd0d67
[ "Apache-2.0" ]
28
2021-12-11T08:11:31.000Z
2022-03-25T02:35:43.000Z
nuplan/planning/simulation/observation/idm/test/test_profile_idm_observation.py
motional/nuplan-devkit
e39029e788b17f47f2fcadb774098ef8fbdd0d67
[ "Apache-2.0" ]
14
2021-12-11T04:12:26.000Z
2022-03-24T06:38:30.000Z
import logging import unittest from pyinstrument import Profiler from nuplan.planning.scenario_builder.nuplan_db.test.nuplan_scenario_test_utils import get_test_nuplan_scenario from nuplan.planning.simulation.history.simulation_history_buffer import SimulationHistoryBuffer from nuplan.planning.simulation.observation....
36.580645
119
0.665785
1,683
0.742063
0
0
0
0
0
0
170
0.074956
0a2c405aef1ab33457cf8c88423bb2ac392300fb
11,867
py
Python
baselines/ddpg/ddpg.py
RDaneelOlivav/baselines
fea6ba932055bb76d68b4b22e812bab738fc18f8
[ "MIT" ]
11
2021-02-23T17:15:21.000Z
2021-09-08T21:31:57.000Z
baselines/ddpg/ddpg.py
RDaneelOlivav/baselines
fea6ba932055bb76d68b4b22e812bab738fc18f8
[ "MIT" ]
1
2021-03-04T05:49:46.000Z
2021-03-04T10:50:59.000Z
baselines/ddpg/ddpg.py
RDaneelOlivav/baselines
fea6ba932055bb76d68b4b22e812bab738fc18f8
[ "MIT" ]
2
2021-01-29T10:40:35.000Z
2021-03-03T08:03:59.000Z
import os import os.path as osp import time from collections import deque import pickle from baselines.ddpg.ddpg_learner import DDPG from baselines.ddpg.models import Actor, Critic from baselines.ddpg.memory import Memory from baselines.ddpg.noise import AdaptiveParamNoiseSpec, NormalActionNoise, OrnsteinUhlenbeckActi...
41.493007
188
0.610854
0
0
0
0
0
0
0
0
1,670
0.140726
0a2e0012f198d1fec400f883216fa2149bcfd26b
1,889
py
Python
footprints/transaction_details.py
enwawerueli/footprints
d9b2a0064b21495edfd0563cb521b0675ee4363d
[ "MIT" ]
1
2018-10-11T19:23:08.000Z
2018-10-11T19:23:08.000Z
footprints/transaction_details.py
enwawerueli/footprints
d9b2a0064b21495edfd0563cb521b0675ee4363d
[ "MIT" ]
null
null
null
footprints/transaction_details.py
enwawerueli/footprints
d9b2a0064b21495edfd0563cb521b0675ee4363d
[ "MIT" ]
null
null
null
import os from datetime import datetime from PySide2.QtGui import * from PySide2.QtCore import * from PySide2.QtWidgets import * from PySide2.QtPrintSupport import QPrinter, QPrintDialog from jinja2 import TemplateNotFound from .ui.ui_transaction_details import Ui_TransactionDetails from .ui import images_rc from . i...
38.55102
119
0.68343
1,513
0.800953
0
0
0
0
0
0
159
0.084172
0a2e68851d4d316362a1de570d5c1e2e08a4775e
64,070
py
Python
yt/units/yt_array.py
FeiLi5/git-github.com-yt-project-yt
0c6cf75351b91e4da80f6a0207ebbcb73dd72a59
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/units/yt_array.py
FeiLi5/git-github.com-yt-project-yt
0c6cf75351b91e4da80f6a0207ebbcb73dd72a59
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/units/yt_array.py
FeiLi5/git-github.com-yt-project-yt
0c6cf75351b91e4da80f6a0207ebbcb73dd72a59
[ "BSD-3-Clause-Clear" ]
null
null
null
""" YTArray class. """ from __future__ import print_function #----------------------------------------------------------------------------- # Copyright (c) 2013, yt Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this so...
35.106849
119
0.592836
43,211
0.674434
0
0
6,638
0.103605
0
0
22,762
0.355268
0a306266dca5739cfacd9015b52dba19c79b8c41
1,548
py
Python
src/posts/api/serializers.py
MahmoudMagdi20/django_rest_blog_api
e1969c75e20b4d807baf26051924a0b99a23b4dc
[ "MIT" ]
null
null
null
src/posts/api/serializers.py
MahmoudMagdi20/django_rest_blog_api
e1969c75e20b4d807baf26051924a0b99a23b4dc
[ "MIT" ]
null
null
null
src/posts/api/serializers.py
MahmoudMagdi20/django_rest_blog_api
e1969c75e20b4d807baf26051924a0b99a23b4dc
[ "MIT" ]
null
null
null
from rest_framework import serializers from posts.models import Post class PostCreateUpdateSerializer(serializers.ModelSerializer): class Meta: model = Post fields = [ #'id', 'title', #'slug', 'content', 'publish', ] post_detail_...
22.434783
62
0.541344
1,349
0.871447
0
0
0
0
0
0
158
0.102067
0a31cb53c607d4ae46c2c3f0ae523a2030f68afc
1,085
py
Python
Protheus_WebApp/Modules/SIGAGTP/GTPA036ETestCase.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
17
2018-09-24T17:27:08.000Z
2021-09-16T19:09:46.000Z
Protheus_WebApp/Modules/SIGAGTP/GTPA036ETestCase.py
98llm/tir-script-samples
0bff8393b79356aa562e9e6512c11ee6e039b177
[ "MIT" ]
4
2018-09-24T17:30:32.000Z
2022-01-03T11:39:30.000Z
Protheus_WebApp/Modules/SIGAGTP/GTPA036ETestCase.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 GTPA036E(unittest.TestCase): @classmethod def setUpClass(inst): inst.oHelper = Webapp() inst.oHelper.Setup("SIGAGTP", "05/08/2020", "T1", "D MG 01 ") inst.oHelper.Program('GTPA036') def test_GTPA036E_CT001(self): self.oHelper.SetButton('Avançar') ...
35
94
0.62765
1,002
0.92011
0
0
223
0.204775
0
0
244
0.224059
0a31df6f647d431831f887f61ef014c34b1a74e5
1,436
py
Python
code_tmpl/views.py
lovebirdegg/nnms-server
9fd4563ccca9f29add375d346cdd1c2dd636c512
[ "MIT" ]
null
null
null
code_tmpl/views.py
lovebirdegg/nnms-server
9fd4563ccca9f29add375d346cdd1c2dd636c512
[ "MIT" ]
null
null
null
code_tmpl/views.py
lovebirdegg/nnms-server
9fd4563ccca9f29add375d346cdd1c2dd636c512
[ "MIT" ]
null
null
null
# @Time : {time} # @Author : code_generator from rest_framework.viewsets import ModelViewSet from rest_framework.generics import ListAPIView from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.response import Response from rest_framework.decorators import api_view,authentication_cla...
39.888889
95
0.83078
0
0
0
0
0
0
0
0
50
0.034819
0a32bc170cadd36fc1306d343ea0e49f3379160d
1,654
py
Python
src/collectors/heartbeat/heartbeat.py
art19/netuitive-diamond
57f61f2444e6f3d3692b4ee989415939bfaa932e
[ "MIT" ]
2
2016-11-17T13:17:50.000Z
2017-03-28T19:42:04.000Z
src/collectors/heartbeat/heartbeat.py
art19/netuitive-diamond
57f61f2444e6f3d3692b4ee989415939bfaa932e
[ "MIT" ]
62
2016-09-30T14:04:52.000Z
2021-04-22T21:22:28.000Z
src/collectors/heartbeat/heartbeat.py
art19/netuitive-diamond
57f61f2444e6f3d3692b4ee989415939bfaa932e
[ "MIT" ]
4
2017-01-24T14:44:56.000Z
2021-03-03T17:14:19.000Z
# coding=utf-8 """ Send a value of 1 as a heartbeat every time this collector is invoked. #### Dependencies None #### Usage Add the collector config as : enabled = True path = netuitive Metrics are collected as : - metrics.heartbeat Netuitive Change History ======================== DVG 2016/11/14 In...
25.84375
90
0.615478
1,149
0.69468
0
0
0
0
0
0
502
0.303507
0a33b4fb181d675d2537be4a920a504933aa3c82
6,599
py
Python
process_script/stat.py
vitorebatista/AVEMH
1c0bea3ae6c35729b80ba49b9663ce83ea43922d
[ "MIT" ]
2
2020-11-11T14:02:53.000Z
2020-12-10T00:10:50.000Z
process_script/stat.py
vitorebatista/AVEMH
1c0bea3ae6c35729b80ba49b9663ce83ea43922d
[ "MIT" ]
null
null
null
process_script/stat.py
vitorebatista/AVEMH
1c0bea3ae6c35729b80ba49b9663ce83ea43922d
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import sys markets = ["hangseng", "dax", "ftse", "sp", "nikkei"] market = markets[int(sys.argv[1])-1] # read GD data file dat = pd.read_csv("./num_res/{}.GD.csv".format(market)) # split into two experiments exp1_GD = dat[dat.columns[:5]] exp2_GD = dat[dat.columns[5:...
39.279762
105
0.690711
0
0
0
0
0
0
0
0
2,100
0.31823
0a33cb634cfe076d601a3145a01487981499f068
22,712
py
Python
Scripts/calc_Utilities.py
zmlabe/ThicknessSensitivity
6defdd897a61d7d1a02f34a9f4ec92b2b17b3075
[ "MIT" ]
1
2017-10-22T02:22:14.000Z
2017-10-22T02:22:14.000Z
Scripts/calc_Utilities.py
zmlabe/ThicknessSensitivity
6defdd897a61d7d1a02f34a9f4ec92b2b17b3075
[ "MIT" ]
null
null
null
Scripts/calc_Utilities.py
zmlabe/ThicknessSensitivity
6defdd897a61d7d1a02f34a9f4ec92b2b17b3075
[ "MIT" ]
4
2018-04-05T17:55:36.000Z
2022-03-31T07:05:01.000Z
""" Functions are useful untilities for SITperturb experiments Notes ----- Author : Zachary Labe Date : 13 August 2017 Usage ----- [1] calcDecJan(varx,vary,lat,lon,level,levsq) [2] calcDecJanFeb(varx,vary,lat,lon,level,levsq) [3] calc_indttest(varx,vary) [4] calc_weightedAve(var,lats) ...
36.514469
95
0.468739
0
0
0
0
0
0
0
0
9,562
0.421011
0a33db09aef1c74c5ffed0995a5bf7a3bfec7f84
13,403
py
Python
tests/python/unittest/test_tir_schedule_compute_inline.py
xiebaiyuan/tvm
726239d788e3b90cbe4818271ca5361c46d8d246
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
tests/python/unittest/test_tir_schedule_compute_inline.py
xiebaiyuan/tvm
726239d788e3b90cbe4818271ca5361c46d8d246
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
tests/python/unittest/test_tir_schedule_compute_inline.py
xiebaiyuan/tvm
726239d788e3b90cbe4818271ca5361c46d8d246
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.836898
94
0.643886
0
0
0
0
6,882
0.513467
0
0
1,264
0.094307
0a3465198ac8a54def9b1ff02f89cdbec3079889
4,239
py
Python
cwl_flask.py
Sage-Bionetworks/workflow-service
8b5dc0afe9ea0972014cdf48a693ee6f893cfe5e
[ "Apache-2.0" ]
1
2019-11-14T23:46:23.000Z
2019-11-14T23:46:23.000Z
cwl_flask.py
Sage-Bionetworks/workflow-service
8b5dc0afe9ea0972014cdf48a693ee6f893cfe5e
[ "Apache-2.0" ]
null
null
null
cwl_flask.py
Sage-Bionetworks/workflow-service
8b5dc0afe9ea0972014cdf48a693ee6f893cfe5e
[ "Apache-2.0" ]
null
null
null
from flask import Flask, Response, request, redirect import subprocess import tempfile import json import yaml import signal import threading import time import copy app = Flask(__name__) jobs_lock = threading.Lock() jobs = [] class Job(threading.Thread): def __init__(self, jobid, path, inputobj): super...
28.641892
79
0.517103
2,243
0.529134
718
0.16938
1,362
0.321302
0
0
412
0.097193
0a3472688b742e51fb849821bffb5408a0c299f0
5,306
py
Python
cs15211/ReverseBits.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/ReverseBits.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/ReverseBits.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
__source__ = 'https://leetcode.com/problems/reverse-bits/description/' # https://github.com/kamyu104/LeetCode/blob/master/Python/reverse-bits.py # Time : O(n) # Space: O(1) # Bit Manipulation # # Description: Leetcode # 190. Reverse Bits # # Reverse bits of a given 32 bits unsigned integer. # # For example, given input...
31.963855
96
0.67942
374
0.070486
0
0
0
0
0
0
4,872
0.918206
0a34f204369f984c96ff6e5a370ca5dd3ef2cd5a
128
py
Python
tibanna/_version.py
freezecoder/tibanna
89b02e95d04b9c630a9786f4d1eb8157c40098e0
[ "MIT" ]
null
null
null
tibanna/_version.py
freezecoder/tibanna
89b02e95d04b9c630a9786f4d1eb8157c40098e0
[ "MIT" ]
null
null
null
tibanna/_version.py
freezecoder/tibanna
89b02e95d04b9c630a9786f4d1eb8157c40098e0
[ "MIT" ]
null
null
null
"""Version information.""" # The following line *must* be the last in the module, exactly as formatted: __version__ = "0.16.1"
25.6
76
0.710938
0
0
0
0
0
0
0
0
110
0.859375
0a35e9528722fb698d7d9b2d769ceed182b29b73
1,265
py
Python
selective_merge_pdf.py
vs-slavchev/selective_merge_pdf
b24b4dbcaf1ffb8dc0924dafec56f94e452c1ebd
[ "MIT" ]
null
null
null
selective_merge_pdf.py
vs-slavchev/selective_merge_pdf
b24b4dbcaf1ffb8dc0924dafec56f94e452c1ebd
[ "MIT" ]
null
null
null
selective_merge_pdf.py
vs-slavchev/selective_merge_pdf
b24b4dbcaf1ffb8dc0924dafec56f94e452c1ebd
[ "MIT" ]
null
null
null
from sys import argv from PyPDF2 import PdfFileReader, PdfFileWriter import re range_pattern = re.compile(r'(\d+)(\.\.|-)(\d+)') comma_pattern = re.compile('\d+(,\d+)*') def pages_args_to_array(pages_str): groups = range_pattern.search(pages_str) if groups: start = int(groups.group(1)) end = int(groups.group(3)...
31.625
115
0.709091
0
0
0
0
0
0
0
0
260
0.205534
0a366dc7ea5c7f093418a07f29237983fc6bf2d7
4,031
py
Python
vp/scoring.py
romack77/vp-toolbox
2677b78b80d0b4794735f3ee9bd70403c6b884e6
[ "MIT" ]
10
2019-08-03T06:29:47.000Z
2022-02-05T03:08:15.000Z
vp/scoring.py
romack77/vp-toolbox
2677b78b80d0b4794735f3ee9bd70403c6b884e6
[ "MIT" ]
null
null
null
vp/scoring.py
romack77/vp-toolbox
2677b78b80d0b4794735f3ee9bd70403c6b884e6
[ "MIT" ]
3
2019-01-22T12:19:05.000Z
2021-02-25T16:58:59.000Z
import math from vp import geom_tools def horizon_error(ground_truth_horizon, detected_horizon, image_dims): """Calculates error in a detected horizon. This measures the max distance between the detected horizon line and the ground truth horizon line, within the image's x-axis, and normalized by ima...
34.161017
86
0.675019
0
0
0
0
0
0
0
0
1,599
0.396676
0a36be6ff9e65c7b1ffad1c7ff8f47b4ee0f6df3
4,175
py
Python
compositional-rl-benchmark/composition/spinningup_training/train_mtl_ppo.py
collassubmission91/CompoSuite-Code
ac544efb68a11ed8a483b0932975c4949f0cec90
[ "MIT" ]
null
null
null
compositional-rl-benchmark/composition/spinningup_training/train_mtl_ppo.py
collassubmission91/CompoSuite-Code
ac544efb68a11ed8a483b0932975c4949f0cec90
[ "MIT" ]
null
null
null
compositional-rl-benchmark/composition/spinningup_training/train_mtl_ppo.py
collassubmission91/CompoSuite-Code
ac544efb68a11ed8a483b0932975c4949f0cec90
[ "MIT" ]
null
null
null
import numpy as np import argparse import composition import os import json import torch from spinup.algos.pytorch.ppo.core import MLPActorCritic from spinup.algos.pytorch.ppo.ppo import ppo from spinup.utils.run_utils import setup_logger_kwargs from spinup.utils.mpi_tools import proc_id, num_procs def parse_args()...
43.489583
199
0.697725
0
0
0
0
0
0
0
0
735
0.176048
0a36ce830d4011a6336f73093bb61b54abdb2cbd
7,782
py
Python
pypy/interpreter/test/test_generator.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
pypy/interpreter/test/test_generator.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
pypy/interpreter/test/test_generator.py
m4sterchain/mesapy
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
[ "Apache-2.0", "OpenSSL" ]
30
2018-08-20T03:16:34.000Z
2022-01-12T17:39:22.000Z
class AppTestGenerator: def test_generator(self): def f(): yield 1 assert f().next() == 1 def test_generator2(self): def f(): yield 1 g = f() assert g.next() == 1 raises(StopIteration, g.next) def test_attributes(self): def f...
24.092879
77
0.467489
7,346
0.943973
5,606
0.72038
0
0
0
0
1,143
0.146877
0a3711b515419fb6ad721023cf62fe24b0ba8280
15,121
py
Python
igvm/cli.py
innogames/igvm
6c4bd98d61ebaf6280698e74d560ea5b3d70cd9e
[ "MIT" ]
14
2018-02-15T14:09:54.000Z
2021-07-19T01:55:58.000Z
igvm/cli.py
innogames/igvm
6c4bd98d61ebaf6280698e74d560ea5b3d70cd9e
[ "MIT" ]
129
2018-02-19T09:47:18.000Z
2022-03-02T14:08:10.000Z
igvm/cli.py
innogames/igvm
6c4bd98d61ebaf6280698e74d560ea5b3d70cd9e
[ "MIT" ]
10
2018-02-16T15:56:59.000Z
2021-05-14T23:31:31.000Z
"""igvm - The command line interface Copyright (c) 2017 InnoGames GmbH """ from __future__ import print_function from argparse import ArgumentParser, _SubParsersAction from logging import StreamHandler, root as root_logger import time from fabric.network import disconnect_all from igvm.commands import ( change_...
29.824458
79
0.612195
1,871
0.123735
0
0
0
0
0
0
5,883
0.389062
0a390498151447698302dd1d056f6ca3842fd3c6
987
py
Python
test/test_data_processor/test_condition_generation_dataset.py
puraminy/OpenPrompt
49f0ed9719bb6285e94c746de4511991c848492c
[ "Apache-2.0" ]
979
2021-09-30T15:32:58.000Z
2022-03-31T11:23:03.000Z
test/test_data_processor/test_condition_generation_dataset.py
Spritebai/OpenPrompt
bd9ea544ab144d94af32d245101ba35c9d5a5a65
[ "Apache-2.0" ]
104
2021-10-01T07:56:33.000Z
2022-03-31T14:39:09.000Z
test/test_data_processor/test_condition_generation_dataset.py
Spritebai/OpenPrompt
bd9ea544ab144d94af32d245101ba35c9d5a5a65
[ "Apache-2.0" ]
121
2021-09-30T16:09:53.000Z
2022-03-31T09:39:34.000Z
import os, sys from os.path import dirname as d from os.path import abspath, join root_dir = d(d(d(abspath(__file__)))) sys.path.append(root_dir) from openprompt.data_utils.conditional_generation_dataset import PROCESSORS base_path = os.path.join(root_dir, "datasets/CondGen") def test_WebNLGProcessor(): dataset_n...
41.125
98
0.761905
0
0
0
0
0
0
0
0
151
0.152989
0a393fec60ca724f475a9fdf13a20c1df07768c4
5,354
py
Python
BaseTools/Source/Python/Common/BuildToolError.py
JayLeeCompal/EDKII_Git
de4800d50e1f357002bf77235d3bebabd0c00007
[ "MIT" ]
1
2022-01-20T04:51:29.000Z
2022-01-20T04:51:29.000Z
BaseTools/Source/Python/Common/BuildToolError.py
JayLeeCompal/EDKII_Git
de4800d50e1f357002bf77235d3bebabd0c00007
[ "MIT" ]
1
2022-01-21T06:19:02.000Z
2022-01-21T06:19:02.000Z
BaseTools/Source/Python/Common/BuildToolError.py
JayLeeCompal/EDKII_Git
de4800d50e1f357002bf77235d3bebabd0c00007
[ "MIT" ]
null
null
null
## @file # Standardized Error Hanlding infrastructures. # # Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text...
33.886076
85
0.699664
38
0.007097
0
0
0
0
0
0
1,679
0.313597
0a3943aef4b92eda2997e8228a72ccdd4b255c3d
1,360
py
Python
datasets/SUN397EncodbleDataset.py
allenai/ViRB
fbe1c42571ce0994b1e41bc4bdf88cf9658ae48b
[ "Apache-2.0" ]
26
2021-05-19T13:49:53.000Z
2022-02-10T16:33:47.000Z
datasets/SUN397EncodbleDataset.py
allenai/ViRB
fbe1c42571ce0994b1e41bc4bdf88cf9658ae48b
[ "Apache-2.0" ]
null
null
null
datasets/SUN397EncodbleDataset.py
allenai/ViRB
fbe1c42571ce0994b1e41bc4bdf88cf9658ae48b
[ "Apache-2.0" ]
1
2021-06-07T02:55:30.000Z
2021-06-07T02:55:30.000Z
import torch import torchvision.transforms as transforms from torch.utils.data import Dataset import glob from PIL import Image import random class SUN397EncodableDataset(Dataset): """SUN397 encodable dataset class""" def __init__(self, train=True): super().__init__() path = 'data/SUN397/trai...
34
97
0.625735
1,215
0.893382
0
0
0
0
0
0
113
0.083088
0a3a46f51a8f874a867b535822da740830faf6e6
966
py
Python
cybox/common/location.py
tirkarthi/python-cybox
a378deb68b3ac56360c5cc35ff5aad1cd3dcab83
[ "BSD-3-Clause" ]
40
2015-03-05T18:22:51.000Z
2022-03-06T07:29:25.000Z
cybox/common/location.py
tirkarthi/python-cybox
a378deb68b3ac56360c5cc35ff5aad1cd3dcab83
[ "BSD-3-Clause" ]
106
2015-01-12T18:52:20.000Z
2021-04-25T22:57:52.000Z
cybox/common/location.py
tirkarthi/python-cybox
a378deb68b3ac56360c5cc35ff5aad1cd3dcab83
[ "BSD-3-Clause" ]
30
2015-03-25T07:24:40.000Z
2021-07-23T17:10:11.000Z
# Copyright (c) 2017, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. from mixbox import entities, fields import cybox import cybox.bindings.cybox_common as common_binding class LocationFactory(entities.EntityFactory): @classmethod def entity_class(cls, key): return...
26.108108
65
0.704969
752
0.778468
0
0
216
0.223602
0
0
188
0.194617
0a3be6996ac9517d3022400855065d32ff7ed3c0
1,359
py
Python
scripts/bam-stats.py
varlociraptor/prosic-evaluation
f4f1950ba5c10bda0f41df2a8f519d98f779d736
[ "MIT" ]
2
2020-04-29T00:56:09.000Z
2021-03-07T19:59:06.000Z
scripts/bam-stats.py
varlociraptor/prosic-evaluation
f4f1950ba5c10bda0f41df2a8f519d98f779d736
[ "MIT" ]
null
null
null
scripts/bam-stats.py
varlociraptor/prosic-evaluation
f4f1950ba5c10bda0f41df2a8f519d98f779d736
[ "MIT" ]
1
2022-03-15T12:23:03.000Z
2022-03-15T12:23:03.000Z
#!/usr/bin/env python import sys import numpy as np import pandas as pd import pysam import matplotlib matplotlib.use("agg") import matplotlib.pyplot as plt import seaborn as sns from functools import partial tumor = pysam.AlignmentFile(snakemake.input[0], "rb") normal = pysam.AlignmentFile(snakemake.input[1], "rb") ...
28.3125
92
0.675497
0
0
0
0
0
0
0
0
115
0.084621
0a3bec6c960ec5a80b8e4e32d4669b80255b605f
1,114
py
Python
app/rss_feeder_api/migrations/0003_auto_20200813_1623.py
RSaab/rss-scraper
9bf608878e7d08fea6508ae90b27f1c226b313f1
[ "MIT" ]
null
null
null
app/rss_feeder_api/migrations/0003_auto_20200813_1623.py
RSaab/rss-scraper
9bf608878e7d08fea6508ae90b27f1c226b313f1
[ "MIT" ]
null
null
null
app/rss_feeder_api/migrations/0003_auto_20200813_1623.py
RSaab/rss-scraper
9bf608878e7d08fea6508ae90b27f1c226b313f1
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-08-13 16:23 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('rss_feeder_api', '0002_feed_subtitle'), ] operations = [ migrations.AlterModelOptions( name='entry', ...
29.315789
107
0.577199
994
0.89228
0
0
0
0
0
0
269
0.241472
0a3c1af48960fabf760e667011b0450023e75e10
4,849
py
Python
AdversarialSampleGeneratorV11/AdversarialSampleGeneratorV11/ResNetConstructor.py
MetaMain/BewareAdvML
52d489b565b0df36cb588b5709c29c2e8e4d3f49
[ "BSD-3-Clause" ]
1
2022-03-25T07:53:13.000Z
2022-03-25T07:53:13.000Z
AdversarialSampleGeneratorV11/AdversarialSampleGeneratorV11/ResNetConstructor.py
MetaMain/BewareAdvML
52d489b565b0df36cb588b5709c29c2e8e4d3f49
[ "BSD-3-Clause" ]
null
null
null
AdversarialSampleGeneratorV11/AdversarialSampleGeneratorV11/ResNetConstructor.py
MetaMain/BewareAdvML
52d489b565b0df36cb588b5709c29c2e8e4d3f49
[ "BSD-3-Clause" ]
null
null
null
import tensorflow from tensorflow import keras Model = keras.models.Model Dense = keras.layers.Dense Activation = keras.layers.Activation Flatten = keras.layers.Flatten BatchNormalization= keras.layers.BatchNormalization Conv2D = tensorflow.keras.layers.Conv2D AveragePooling2D = keras.layers.AveragePooling2D I...
37.589147
80
0.545061
0
0
0
0
0
0
0
0
1,051
0.216746
0a3cda3b610042fefd30969a702f9d925c74876f
4,421
py
Python
ttl2json.py
the-norman-sicily-project/genealogical-trees
32fa4f25861ae34543b0a6b95e54842c0018331b
[ "MIT" ]
1
2021-05-18T20:39:30.000Z
2021-05-18T20:39:30.000Z
ttl2json.py
the-norman-sicily-project/genealogical-trees
32fa4f25861ae34543b0a6b95e54842c0018331b
[ "MIT" ]
null
null
null
ttl2json.py
the-norman-sicily-project/genealogical-trees
32fa4f25861ae34543b0a6b95e54842c0018331b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import json import rdflib import rdflib.plugins.sparql as sparql RELS_TO_DRAW = ['isWifeOf', 'isMotherOf', 'isFatherOf', 'isHusbandOf', 'isSpouseOf'] RELS_TO_INFER = ['hasGrandParent', 'isGrandParentOf', 'hasGreatGrandParent', 'isGreatGrandParentOf', 'isUncleOf', 'ha...
28.339744
84
0.555078
0
0
0
0
0
0
0
0
2,106
0.476363
0a3d017dc9b9c85df909d024333ec6af657c45e5
53,871
py
Python
tests/rest/client/test_login.py
BearerPipelineTest/synapse-1
78b99de7c206b106340e12cdee0af9aa246bd5ad
[ "Apache-2.0" ]
null
null
null
tests/rest/client/test_login.py
BearerPipelineTest/synapse-1
78b99de7c206b106340e12cdee0af9aa246bd5ad
[ "Apache-2.0" ]
null
null
null
tests/rest/client/test_login.py
BearerPipelineTest/synapse-1
78b99de7c206b106340e12cdee0af9aa246bd5ad
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2021 The Matrix.org Foundation C.I.C. # # 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...
40.443694
119
0.626218
50,161
0.931097
0
0
39,213
0.727879
1,168
0.021681
18,868
0.350231
0a3d26451658f18eb6e4d945d41095c7fba3dc44
1,683
py
Python
rmf_demo_tasks/rmf_demo_tasks/request_delivery.py
Kevinskwk/rmf_demos
2d7b9c7c75211b89b91977e5d1a66f440cc5df95
[ "Apache-2.0" ]
null
null
null
rmf_demo_tasks/rmf_demo_tasks/request_delivery.py
Kevinskwk/rmf_demos
2d7b9c7c75211b89b91977e5d1a66f440cc5df95
[ "Apache-2.0" ]
null
null
null
rmf_demo_tasks/rmf_demo_tasks/request_delivery.py
Kevinskwk/rmf_demos
2d7b9c7c75211b89b91977e5d1a66f440cc5df95
[ "Apache-2.0" ]
null
null
null
import argparse import sys from time import sleep import uuid import rclpy from rmf_task_msgs.msg import Delivery def main(argv = sys.argv): rclpy.init(args=argv) args_without_ros = rclpy.utilities.remove_ros_args(argv) ''' # Example request: task_id: randomid_001 items: [itemA, itemB....] ...
27.590164
88
0.680333
0
0
0
0
0
0
0
0
669
0.397504
0a3d8aa1a0610f6e6749b406310d289569ef5143
13,701
py
Python
dis_snek/api/http/http_client.py
BoredManCodes/Dis-Snek
662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b
[ "MIT" ]
null
null
null
dis_snek/api/http/http_client.py
BoredManCodes/Dis-Snek
662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b
[ "MIT" ]
null
null
null
dis_snek/api/http/http_client.py
BoredManCodes/Dis-Snek
662dbc3f86c133fd704c22d3d6d55af5ee1f6f5b
[ "MIT" ]
null
null
null
"""This file handles the interaction with discords http endpoints.""" import asyncio import logging from typing import Any, Dict, Optional, Union from urllib.parse import quote as _uriquote from weakref import WeakValueDictionary import aiohttp from aiohttp import BaseConnector, ClientSession, ClientWebSocketResponse,...
38.485955
160
0.593387
12,523
0.914021
0
0
121
0.008831
8,214
0.599518
4,065
0.296694
0a3e0181aa1152f21b25e174598bc71d6679ab76
986
py
Python
config.py
conradsuuna/uac-computer-competency
40f8b165e5432ca22ab97838f424e26650a3d300
[ "MIT" ]
null
null
null
config.py
conradsuuna/uac-computer-competency
40f8b165e5432ca22ab97838f424e26650a3d300
[ "MIT" ]
null
null
null
config.py
conradsuuna/uac-computer-competency
40f8b165e5432ca22ab97838f424e26650a3d300
[ "MIT" ]
null
null
null
from os import environ import psycopg2 from datetime import timedelta from dotenv import load_dotenv load_dotenv() class Config(object): """ app configuration class """ TESTING = False CSRF_ENABLED = True SECRET_KEY = environ.get('SECRET_KEY') USER = environ.get('DB_USER') PASSWORD = environ.g...
27.388889
80
0.720081
865
0.877282
0
0
0
0
0
0
256
0.259635
0a3e6de6fa0adef7035c5c9d0aedbcc9e7f13b79
791
py
Python
electrum/version.py
c4pt000/electrum-radiocoin
7cb5f618a9aa8cd03d60191624a0e57cc24646d2
[ "MIT" ]
null
null
null
electrum/version.py
c4pt000/electrum-radiocoin
7cb5f618a9aa8cd03d60191624a0e57cc24646d2
[ "MIT" ]
null
null
null
electrum/version.py
c4pt000/electrum-radiocoin
7cb5f618a9aa8cd03d60191624a0e57cc24646d2
[ "MIT" ]
null
null
null
ELECTRUM_VERSION = '4.1.5-radc' # version of the client package APK_VERSION = '4.1.5.0' # read by buildozer.spec PROTOCOL_VERSION = '1.4' # protocol version requested # The hash of the mnemonic seed must begin with this SEED_PREFIX = '01' # Standard wallet SEED_PREFIX_SW = '100' # S...
34.391304
67
0.668774
0
0
0
0
0
0
0
0
338
0.427307
0a3ee6851d0a7ef05afcdf6a271167449fef0269
7,867
py
Python
lib/layers/functions/prior_box.py
arleyzhang/object-detection-pytorch
de96a507e6643a7019b94d92f77219439ccca29f
[ "MIT" ]
4
2018-10-10T03:06:38.000Z
2018-12-18T07:32:30.000Z
lib/layers/functions/prior_box.py
arleyzhang/object-detection-pytorch
de96a507e6643a7019b94d92f77219439ccca29f
[ "MIT" ]
null
null
null
lib/layers/functions/prior_box.py
arleyzhang/object-detection-pytorch
de96a507e6643a7019b94d92f77219439ccca29f
[ "MIT" ]
1
2018-10-10T03:06:39.000Z
2018-10-10T03:06:39.000Z
from __future__ import division from math import sqrt as sqrt from itertools import product as product import torch import numpy as np import cv2 from lib.utils.visualize_utils import TBWriter def vis(func): """tensorboard visualization if has writer as input""" def wrapper(*args, **kw): return func...
38.004831
104
0.583196
5,413
0.688064
0
0
2,033
0.258421
0
0
1,632
0.207449
0a3fe7e6abe2393d5617b3058cbf7b54468e33ee
5,073
py
Python
python/Gaffer/SequencePath.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/Gaffer/SequencePath.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/Gaffer/SequencePath.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2012-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redi...
27.721311
133
0.668244
3,234
0.637493
0
0
0
0
0
0
1,943
0.383008
0a4049bea9cce33edfb9f0362df0cd2e91b7aa1a
335
py
Python
reo/migrations/0121_merge_20211001_1841.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
7
2022-01-29T12:10:10.000Z
2022-03-28T13:45:20.000Z
reo/migrations/0121_merge_20211001_1841.py
NREL/reopt_api
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
12
2022-02-01T18:23:18.000Z
2022-03-31T17:22:17.000Z
reo/migrations/0121_merge_20211001_1841.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
3
2022-02-08T19:44:40.000Z
2022-03-12T11:05:36.000Z
# Generated by Django 3.1.13 on 2021-10-01 18:41 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('reo', '0117_financialmodel_generator_fuel_escalation_pct'), ('reo', '0120_auto_20210927_2046'), ('reo', '0121_auto_20211012_0305') ] operat...
20.9375
69
0.662687
249
0.743284
0
0
0
0
0
0
164
0.489552
0a42c30234b3cb9b1bf3706f896598d1f485e00b
7,765
py
Python
PhysicsTools/Heppy/python/analyzers/objects/TauAnalyzer.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
PhysicsTools/Heppy/python/analyzers/objects/TauAnalyzer.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
PhysicsTools/Heppy/python/analyzers/objects/TauAnalyzer.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
from PhysicsTools.Heppy.analyzers.core.Analyzer import Analyzer from PhysicsTools.Heppy.analyzers.core.AutoHandle import AutoHandle from PhysicsTools.Heppy.physicsobjects.Tau import Tau from PhysicsTools.HeppyCore.utils.deltar import deltaR, matchObjectCollection3 import PhysicsTools.HeppyCore.framework.config as cfg...
45.145349
171
0.619446
6,167
0.794205
0
0
0
0
0
0
1,783
0.22962
0a42e80075481314be34a3f3fd3ff44396a763e9
4,020
py
Python
vize/170401038.py
omuryorulmaz/kriptografi
04c22e4f05f126b14f41842597a7b27065326670
[ "Unlicense" ]
8
2020-04-15T12:06:42.000Z
2022-01-21T10:35:51.000Z
vize/170401038.py
omuryorulmaz/kriptografi
04c22e4f05f126b14f41842597a7b27065326670
[ "Unlicense" ]
3
2020-05-13T20:41:27.000Z
2020-06-11T00:45:27.000Z
vize/170401038.py
omuryorulmaz/kriptografi
04c22e4f05f126b14f41842597a7b27065326670
[ "Unlicense" ]
54
2020-04-23T14:58:50.000Z
2020-06-26T06:00:32.000Z
# İsmail ALTAY 170401038 import math import random r = 3271 def egcd(a,b): if(a == 0): return(b,0,1) else: c,d,e = egcd(b % a, a) return(c, e - (b // a) * d, d) def modInvert(a,b): c,d,e = egcd(a,b) if c != 1: raise Exception('moduler ters bulunamad...
26.447368
122
0.510945
0
0
0
0
0
0
0
0
634
0.156427
0a42fad82c7026120ddbfdc222f7f45f5ba001fc
8,219
py
Python
seqenv/ontology.py
xapple/seqenv
a898b936b64b51340f439b05fc8909f4ed826247
[ "MIT" ]
7
2016-12-02T09:28:00.000Z
2021-11-04T13:47:16.000Z
seqenv/ontology.py
xapple/seqenv
a898b936b64b51340f439b05fc8909f4ed826247
[ "MIT" ]
7
2016-04-07T17:00:50.000Z
2018-05-14T12:16:06.000Z
seqenv/ontology.py
xapple/seqenv
a898b936b64b51340f439b05fc8909f4ed826247
[ "MIT" ]
4
2016-03-15T16:41:12.000Z
2021-12-06T09:30:35.000Z
# Built-in modules # # Internal modules # from seqenv import module_dir from seqenv.common.cache import property_cached # Third party modules # import sh, networkx import matplotlib.colors # A list of envos to help test this module # test_envos = [ "ENVO:00000033", "ENVO:00000043", "ENVO:00000067", "...
35.426724
90
0.565397
7,734
0.94099
0
0
1,837
0.223507
0
0
4,347
0.528896
0a433c84b0dfa57ea11f80f51e65908aaa8c4377
87,582
py
Python
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_11_04/models/_models.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
1
2020-03-05T18:10:35.000Z
2020-03-05T18:10:35.000Z
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_11_04/models/_models.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
2
2020-03-03T23:11:13.000Z
2020-03-30T18:50:55.000Z
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_11_04/models/_models.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
36.706622
283
0.650042
86,833
0.991448
0
0
0
0
0
0
56,481
0.644893
0a435a4c25f9daef6a9569a6a1c22b40cc97a64d
18,579
py
Python
tests/unit/controllers/v1/test_rbac_for_supported_st2api_endpoints.py
cognifloyd/st2-open-rbac
fb3251223743e497267277fe9f5cef91f41ade34
[ "Apache-2.0" ]
null
null
null
tests/unit/controllers/v1/test_rbac_for_supported_st2api_endpoints.py
cognifloyd/st2-open-rbac
fb3251223743e497267277fe9f5cef91f41ade34
[ "Apache-2.0" ]
null
null
null
tests/unit/controllers/v1/test_rbac_for_supported_st2api_endpoints.py
cognifloyd/st2-open-rbac
fb3251223743e497267277fe9f5cef91f41ade34
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
33.78
98
0.466171
15,240
0.820281
0
0
12,979
0.698584
0
0
6,955
0.374347
0a444a2a9b00c93ede978edd61b59c20a6608e93
5,351
py
Python
testing/scripts/test_ksonnet_single_namespace.py
dtrawins/seldon-core
3d8b3791b343118953757a1e787e5919cc64e697
[ "Apache-2.0" ]
null
null
null
testing/scripts/test_ksonnet_single_namespace.py
dtrawins/seldon-core
3d8b3791b343118953757a1e787e5919cc64e697
[ "Apache-2.0" ]
null
null
null
testing/scripts/test_ksonnet_single_namespace.py
dtrawins/seldon-core
3d8b3791b343118953757a1e787e5919cc64e697
[ "Apache-2.0" ]
null
null
null
import pytest import time import subprocess from subprocess import run,Popen from seldon_utils import * from k8s_utils import * def wait_for_shutdown(deploymentName): ret = run("kubectl get deploy/"+deploymentName, shell=True) while ret.returncode == 0: time.sleep(1) ret = run("kubectl get depl...
50.481132
245
0.657073
4,194
0.783779
0
0
4,301
0.803775
0
0
1,950
0.364418
0a44501273cac10db9558b11e30ff5a413b1857f
89
py
Python
enthought/envisage/safeweakref.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/envisage/safeweakref.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/envisage/safeweakref.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from envisage.safeweakref import *
22.25
38
0.842697
0
0
0
0
0
0
0
0
14
0.157303
0a448d09286de882fe626777f47593a108a44caa
628
py
Python
test_app/models.py
alissonmuller/django-group-by
645c36ad2c3ab1f4691de6fcc04fed8b5d7ef78d
[ "MIT" ]
25
2016-09-29T15:25:16.000Z
2021-09-19T14:20:58.000Z
test_app/models.py
alissonmuller/django-group-by
645c36ad2c3ab1f4691de6fcc04fed8b5d7ef78d
[ "MIT" ]
22
2016-05-29T00:14:47.000Z
2019-06-08T13:24:21.000Z
test_app/models.py
alissonmuller/django-group-by
645c36ad2c3ab1f4691de6fcc04fed8b5d7ef78d
[ "MIT" ]
2
2018-09-24T07:28:39.000Z
2019-02-12T14:09:18.000Z
from django.db import models from .query import BookQuerySet class Book(models.Model): objects = BookQuerySet.as_manager() title = models.CharField(max_length=50) publication_date = models.DateTimeField() author = models.ForeignKey('Author') genres = models.ManyToManyField('Genre') class Autho...
23.259259
56
0.732484
555
0.883758
0
0
0
0
0
0
23
0.036624
0a4491bed67c4627a06dabc6e88940ee8f57226d
14,777
py
Python
ResNet/dropblock.py
whj363636/CamDrop
f8af8c200665145f112b59348f60fc4cf80f04ec
[ "MIT" ]
null
null
null
ResNet/dropblock.py
whj363636/CamDrop
f8af8c200665145f112b59348f60fc4cf80f04ec
[ "MIT" ]
null
null
null
ResNet/dropblock.py
whj363636/CamDrop
f8af8c200665145f112b59348f60fc4cf80f04ec
[ "MIT" ]
1
2021-11-06T11:22:49.000Z
2021-11-06T11:22:49.000Z
# -*- coding: utf-8 -*- # File: dropblock.py from __future__ import absolute_import from __future__ import division from __future__ import print_function import re import six # from tensorpack.tfutils.compat import tfv1 as tf # this should be avoided first in model code from tensorpack.tfutils.tower import get_curren...
45.891304
166
0.663667
0
0
0
0
0
0
0
0
6,122
0.414292
0a44f5460d17d97fc0728fbb786ff7e11153576a
2,374
py
Python
tutorial/deprecated/tutorial_recurrent_policy/main_a2c.py
Purple-PI/rlstructures
9b201b083715bbda2f3534b010c84e11dfc0a1c7
[ "MIT" ]
281
2021-01-13T14:20:23.000Z
2022-03-23T08:46:56.000Z
tutorial/deprecated/tutorial_recurrent_policy/main_a2c.py
Purple-PI/rlstructures
9b201b083715bbda2f3534b010c84e11dfc0a1c7
[ "MIT" ]
2
2021-01-22T23:28:34.000Z
2021-04-29T22:05:42.000Z
tutorial/deprecated/tutorial_recurrent_policy/main_a2c.py
Purple-PI/rlstructures
9b201b083715bbda2f3534b010c84e11dfc0a1c7
[ "MIT" ]
13
2021-01-15T14:53:32.000Z
2022-03-22T11:12:54.000Z
# # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # from rlstructures import logging from rlstructures.env_wrappers import GymEnv, GymEnvInf from rlstructures.tools import weight_init impor...
29.675
156
0.700505
175
0.073715
0
0
0
0
0
0
652
0.274642
0a458f21d72d88857440d86e340b226a075998cd
19,980
py
Python
dashboard/gnd-app.py
buchmuseum/GND_Dashboard
c8c039bc8c09c480fc5ab8a0b186cd9dc37d7423
[ "CC0-1.0" ]
5
2021-01-21T17:54:23.000Z
2021-08-09T07:34:10.000Z
dashboard/gnd-app.py
buchmuseum/GND_Dashboard
c8c039bc8c09c480fc5ab8a0b186cd9dc37d7423
[ "CC0-1.0" ]
2
2021-07-27T13:38:06.000Z
2021-08-05T16:01:19.000Z
dashboard/gnd-app.py
buchmuseum/GND_Dashboard
c8c039bc8c09c480fc5ab8a0b186cd9dc37d7423
[ "CC0-1.0" ]
2
2021-03-02T12:48:14.000Z
2021-07-17T08:48:48.000Z
from matplotlib.pyplot import title import streamlit as st import pandas as pd import altair as alt import pydeck as pdk import os import glob from wordcloud import WordCloud import streamlit_analytics path = os.path.dirname(__file__) streamlit_analytics.start_tracking() @st.cache def load_gnd_top_daten(typ): gn...
50.71066
479
0.682382
0
0
0
0
235
0.011701
0
0
9,950
0.495444
0a47a03d932bb0b243e96234078c92e60fb74516
891
py
Python
seamo/support/seamo_exceptions.py
amandalynne/Seattle-Mobility-Index
f21d2fa6913ce9474aedc298e9e4a6e7c9390e64
[ "MIT" ]
3
2018-08-20T18:34:03.000Z
2018-10-02T23:41:52.000Z
seamo/support/seamo_exceptions.py
amandalynne/Seattle-Mobility-Index
f21d2fa6913ce9474aedc298e9e4a6e7c9390e64
[ "MIT" ]
null
null
null
seamo/support/seamo_exceptions.py
amandalynne/Seattle-Mobility-Index
f21d2fa6913ce9474aedc298e9e4a6e7c9390e64
[ "MIT" ]
1
2018-10-02T23:42:24.000Z
2018-10-02T23:42:24.000Z
""" Class for all excpetions used in following scripts - geocoder.py - geocoder_input.py """ class OverlappingGeographyError(Exception): def __init__(self, message): self.message = message # msg: geodataframe has overlapping polygons representing geographic features # please how shapefiles are pro...
27
81
0.740741
785
0.881033
0
0
0
0
0
0
322
0.361392
0a4800ab1d62e509adf8e4628718cf0758bb7bb5
3,189
py
Python
vize/150401052/sunucu.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
1
2021-05-04T21:46:08.000Z
2021-05-04T21:46:08.000Z
vize/150401052/sunucu.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
vize/150401052/sunucu.py
hasan-se/blm304
893d15282497a426ff96b0c8b6c77d57c406742e
[ "Unlicense" ]
null
null
null
#Erdin Alhas 150401052 import os import sys import time from socket import * from os import system, name ip = '127.0.0.1' port = 42 s_soket = socket(AF_INET, SOCK_DGRAM) s_soket.bind((ip, port)) print("\nSunucu Hazir\n") kontrol, istemciAdres = s_soket...
54.050847
107
0.444967
0
0
0
0
0
0
0
0
519
0.162696
0a482fa1649b42a4ec4a6b713bc6b758170e2273
12,096
py
Python
httprunner/compat.py
panyuan209/httprunner
d90f2b9ab06963e8efa1c327975fca5296d6bc39
[ "Apache-2.0" ]
null
null
null
httprunner/compat.py
panyuan209/httprunner
d90f2b9ab06963e8efa1c327975fca5296d6bc39
[ "Apache-2.0" ]
null
null
null
httprunner/compat.py
panyuan209/httprunner
d90f2b9ab06963e8efa1c327975fca5296d6bc39
[ "Apache-2.0" ]
null
null
null
""" This module handles compatibility issues between testcase format v2 and v3. 解决httprunner2 和 3 之间测试用例兼容性问题 """ import os import sys from typing import List, Dict, Text, Union, Any from loguru import logger from httprunner import exceptions from httprunner.loader import load_project_meta, convert_relative_project_r...
30.315789
112
0.61789
0
0
0
0
0
0
0
0
5,024
0.414385
0a49026066247a3018418704bbd8ff4e56b70f26
2,888
py
Python
examples/demo/basic/scatter.py
ContinuumIO/chaco
e4a42b91cb25ef7191fd465caaef2c3256fc668e
[ "BSD-3-Clause" ]
3
2017-09-17T17:32:06.000Z
2022-03-15T13:04:43.000Z
examples/demo/basic/scatter.py
ContinuumIO/chaco
e4a42b91cb25ef7191fd465caaef2c3256fc668e
[ "BSD-3-Clause" ]
null
null
null
examples/demo/basic/scatter.py
ContinuumIO/chaco
e4a42b91cb25ef7191fd465caaef2c3256fc668e
[ "BSD-3-Clause" ]
5
2015-05-17T16:08:11.000Z
2021-02-23T09:23:42.000Z
""" Scatter plot with panning and zooming Shows a scatter plot of a set of random points, with basic Chaco panning and zooming. Interacting with the plot: - Left-mouse-drag pans the plot. - Mouse wheel up and down zooms the plot in and out. - Pressing "z" brings up the Zoom Box, and you can click-drag a recta...
29.773196
80
0.541205
495
0.171399
0
0
0
0
0
0
1,396
0.48338
0a4908d9ecd7f27856ad9555eafa94debe8ca0ea
1,347
py
Python
webstr/core/config.py
fbalak/webstr
7c7e552fb9943bf664b94ca75a88747c0b243722
[ "Apache-2.0" ]
3
2017-03-01T11:51:12.000Z
2018-04-16T13:09:56.000Z
webstr/core/config.py
fbalak/webstr
7c7e552fb9943bf664b94ca75a88747c0b243722
[ "Apache-2.0" ]
null
null
null
webstr/core/config.py
fbalak/webstr
7c7e552fb9943bf664b94ca75a88747c0b243722
[ "Apache-2.0" ]
1
2018-04-16T13:09:34.000Z
2018-04-16T13:09:34.000Z
""" Central configuration module of webstr selenium tests. This module provides configuration options along with default values and function to redefine values. """ # Copyright 2016 Red Hat # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Li...
27.489796
79
0.746845
0
0
0
0
0
0
0
0
879
0.652561
0a4957ae4c91cc14cfa8216c87afffecedc2a26e
641
py
Python
operations/mutations/mutation.py
PiotrBosowski/feat-genes
8e6604fd4e121022f8ac988d9b56985de01b8331
[ "MIT" ]
null
null
null
operations/mutations/mutation.py
PiotrBosowski/feat-genes
8e6604fd4e121022f8ac988d9b56985de01b8331
[ "MIT" ]
null
null
null
operations/mutations/mutation.py
PiotrBosowski/feat-genes
8e6604fd4e121022f8ac988d9b56985de01b8331
[ "MIT" ]
null
null
null
import random class Mutation: def __init__(self, chrom_mut_chance, gen_mut_chance): self.chrom_mut_chance = chrom_mut_chance self.gen_mut_chance = gen_mut_chance def __call__(self, population): chroms_to_mutate = random.sample( population, round(self.chrom_mut_...
32.05
59
0.620905
624
0.973479
0
0
0
0
0
0
0
0
0a498f8f754b453bd4fdad3c6f6282e67b1ff4ac
1,551
py
Python
examples/CountLettersInList.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
null
null
null
examples/CountLettersInList.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
4
2019-11-07T12:32:19.000Z
2020-07-19T14:04:44.000Z
examples/CountLettersInList.py
Ellis0817/Introduction-to-Programming-Using-Python
1882a2a846162d5ff56d4d56c3940b638ef408bd
[ "MIT" ]
5
2019-12-04T15:56:55.000Z
2022-01-14T06:19:18.000Z
import RandomCharacter # Defined in Listing 6.9 def main(): """Main.""" # Create a list of characters chars = createList() # Display the list print("The lowercase letters are:") displayList(chars) # Count the occurrences of each letter counts = countLetters(chars) # Display cou...
23.149254
64
0.597679
0
0
0
0
0
0
0
0
626
0.403611
0a49a5caf98b95481017eff59d5dcd3666b0a6ef
1,318
py
Python
ddtrace/contrib/vertica/__init__.py
lightstep/dd-trace-py
9108cbf54ff31f803eac735507ae6d2a87b9b45f
[ "Apache-2.0", "BSD-3-Clause" ]
5
2020-03-07T01:12:29.000Z
2021-04-21T00:53:19.000Z
ddtrace/contrib/vertica/__init__.py
lightstep/dd-trace-py
9108cbf54ff31f803eac735507ae6d2a87b9b45f
[ "Apache-2.0", "BSD-3-Clause" ]
4
2019-11-22T20:58:01.000Z
2020-08-17T21:16:13.000Z
ddtrace/contrib/vertica/__init__.py
lightstep/dd-trace-py
9108cbf54ff31f803eac735507ae6d2a87b9b45f
[ "Apache-2.0", "BSD-3-Clause" ]
3
2020-03-18T16:29:20.000Z
2020-07-20T16:05:10.000Z
""" The Vertica integration will trace queries made using the vertica-python library. Vertica will be automatically instrumented with ``patch_all``, or when using the ``ls-trace-run`` command. Vertica is instrumented on import. To instrument Vertica manually use the ``patch`` function. Note the ordering of the follow...
25.346154
78
0.741275
0
0
0
0
0
0
0
0
1,079
0.818665
0a49e1637a3ffcd5ae7b64809f0205d8b48bfcf6
627
py
Python
desktop/core/ext-py/python-openid-2.2.5/openid/test/test_htmldiscover.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/python-openid-2.2.5/openid/test/test_htmldiscover.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/python-openid-2.2.5/openid/test/test_htmldiscover.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
from openid.consumer.discover import OpenIDServiceEndpoint import datadriven class BadLinksTestCase(datadriven.DataDrivenTestCase): cases = [ '', "http://not.in.a.link.tag/", '<link rel="openid.server" href="not.in.html.or.head" />', ] def __init__(self, data): datadriv...
28.5
80
0.660287
486
0.77512
0
0
0
0
0
0
106
0.169059
0a4ab6a6c7a8f22ae4262d99f43041e035e6b535
602
py
Python
project/settings/production.py
chiehtu/kissaten
a7aad01de569107d5fd5ed2cd781bca6e5750871
[ "MIT" ]
null
null
null
project/settings/production.py
chiehtu/kissaten
a7aad01de569107d5fd5ed2cd781bca6e5750871
[ "MIT" ]
null
null
null
project/settings/production.py
chiehtu/kissaten
a7aad01de569107d5fd5ed2cd781bca6e5750871
[ "MIT" ]
null
null
null
from .base import * SECRET_KEY = get_env_var('SECRET_KEY') CSRF_COOKIE_SECURE = True SESSION_COOKIE_SECURE = True TEMPLATE_LOADERS = ( ('django.template.loaders.cached.Loader', ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', )), ) EMAIL_BACK...
18.8125
61
0.750831
0
0
0
0
0
0
0
0
243
0.403654
0a4b453e9f68bd48c8b434b43c7c61e7c47c248d
3,400
py
Python
modelflow/graph_viz_from_outputs.py
ModelFlow/modelflow
c2b720b2da8bb17462baff5c00bbe942644474b0
[ "MIT" ]
6
2020-07-28T19:58:28.000Z
2021-05-01T18:51:37.000Z
modelflow/graph_viz_from_outputs.py
ModelFlow/modelflow
c2b720b2da8bb17462baff5c00bbe942644474b0
[ "MIT" ]
81
2020-07-30T07:08:10.000Z
2021-07-28T02:17:43.000Z
modelflow/graph_viz_from_outputs.py
ModelFlow/modelflow
c2b720b2da8bb17462baff5c00bbe942644474b0
[ "MIT" ]
null
null
null
import pandas as pd import argparse import json try: from graphviz import Digraph except: print("Note: Optional graphviz not installed") def generate_graph(df, graph_format='pdf'): g = Digraph('ModelFlow', filename='modelflow.gv', engine='neato', format=graph_format) g.attr(overlap='false') g.attr...
32.380952
95
0.577941
0
0
0
0
0
0
0
0
522
0.153529
0a4c02948fcf1ba6f4a5b3cae666b7bb9cd4c29a
4,508
py
Python
src/command/voice_log/chart.py
link1345/Vol-GameClanTools-DiscordBot
c3349f38d59cba59161b8c54c172e39ba873c53d
[ "MIT" ]
null
null
null
src/command/voice_log/chart.py
link1345/Vol-GameClanTools-DiscordBot
c3349f38d59cba59161b8c54c172e39ba873c53d
[ "MIT" ]
25
2021-08-11T13:02:18.000Z
2021-08-20T23:24:19.000Z
src/command/voice_log/chart.py
link1345/Vol-GameClanTools-DiscordBot
c3349f38d59cba59161b8c54c172e39ba873c53d
[ "MIT" ]
null
null
null
import discord import os import json import datetime import pandas as pd from dateutil.relativedelta import relativedelta from pprint import pprint import base.ColorPrint as CPrint import command.voice_log.Config_Main as CSetting def most_old_Month() : old_month = 1 labels = [] fileNameList = [] while True : ...
23.479167
154
0.675244
0
0
0
0
0
0
4,188
0.822467
1,709
0.335625
0a4c68a0832d4cee3f0250c6c84f885007935c0b
194
py
Python
5kyu/(5 kyu) Count IP Addresses/(5 kyu) Count IP Addresses.py
e1r0nd/codewars
9b05e32a26ee5f36a4b3f1e76a71e0c79b3c865b
[ "MIT" ]
49
2018-04-30T06:42:45.000Z
2021-07-22T16:39:02.000Z
5kyu/(5 kyu) Count IP Addresses/(5 kyu) Count IP Addresses.py
nis24jit/codewars-3
1a0d910af12f8af6e1070c31a30ba3c785a9b857
[ "MIT" ]
1
2020-08-31T02:36:53.000Z
2020-08-31T10:14:00.000Z
5kyu/(5 kyu) Count IP Addresses/(5 kyu) Count IP Addresses.py
nis24jit/codewars-3
1a0d910af12f8af6e1070c31a30ba3c785a9b857
[ "MIT" ]
25
2018-04-02T20:57:58.000Z
2021-05-28T15:24:51.000Z
def ips_between(start, end): calc = lambda n, m: (int(end.split(".")[n]) - int(start.split(".")[n])) * m return calc(0, 256 * 256 * 256) + calc(1, 256 * 256) + calc(2, 256) + calc(3, 1)
48.5
84
0.546392
0
0
0
0
0
0
0
0
6
0.030928
0a4c9bc797a43e5add896c8bde8af43dfb42905c
23,511
py
Python
python/src/vmaf/core/feature_extractor.py
jayholman/vmaf
0bba4faf68ab89e38314cc596e6908b4fb83984d
[ "Apache-2.0" ]
40
2019-07-04T06:22:10.000Z
2022-03-10T14:49:33.000Z
python/src/vmaf/core/feature_extractor.py
jayholman/vmaf
0bba4faf68ab89e38314cc596e6908b4fb83984d
[ "Apache-2.0" ]
null
null
null
python/src/vmaf/core/feature_extractor.py
jayholman/vmaf
0bba4faf68ab89e38314cc596e6908b4fb83984d
[ "Apache-2.0" ]
8
2019-08-20T08:14:41.000Z
2021-11-18T07:01:19.000Z
from abc import ABCMeta, abstractmethod import os from vmaf.tools.misc import make_absolute_path, run_process from vmaf.tools.stats import ListStats __copyright__ = "Copyright 2016-2018, Netflix, Inc." __license__ = "Apache, Version 2.0" import re import numpy as np import ast from vmaf import ExternalProgramCaller,...
44.02809
146
0.663562
22,992
0.977925
0
0
10,726
0.456212
0
0
5,555
0.236272
0a4d54d89c32a47c57e2c8a928a39b69e030c881
35
py
Python
notebooks/_solutions/pandas_02_basic_operations28.py
rprops/Python_DS-WS
b2fc449a74be0c82863e5fcf1ddbe7d64976d530
[ "BSD-3-Clause" ]
65
2017-03-21T09:15:40.000Z
2022-02-01T23:43:08.000Z
notebooks/_solutions/pandas_02_basic_operations28.py
rprops/Python_DS-WS
b2fc449a74be0c82863e5fcf1ddbe7d64976d530
[ "BSD-3-Clause" ]
100
2016-12-15T03:44:06.000Z
2022-03-07T08:14:07.000Z
notebooks/_solutions/pandas_02_basic_operations28.py
rprops/Python_DS-WS
b2fc449a74be0c82863e5fcf1ddbe7d64976d530
[ "BSD-3-Clause" ]
52
2016-12-19T07:48:52.000Z
2022-02-19T17:53:48.000Z
df['Age'].hist() #bins=30, log=True
35
35
0.628571
0
0
0
0
0
0
0
0
23
0.657143
0a4ed29474e7c8d2e3be0b36b2cae77e32eb65c8
376
py
Python
controller/base_service.py
oopsteams/pansite
11896842da66efc72c26eab071f7f802b982f435
[ "MIT" ]
null
null
null
controller/base_service.py
oopsteams/pansite
11896842da66efc72c26eab071f7f802b982f435
[ "MIT" ]
1
2021-06-02T01:00:41.000Z
2021-06-02T01:00:41.000Z
controller/base_service.py
oopsteams/pansite
11896842da66efc72c26eab071f7f802b982f435
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created by susy at 2019/11/8 """ from dao.dao import DataDao import pytz from dao.models import PanAccounts from cfg import PAN_SERVICE, MASTER_ACCOUNT_ID class BaseService: def __init__(self): self.default_tz = pytz.timezone('Asia/Chongqing') # self.pan_acc: PanAccoun...
23.5
88
0.726064
190
0.505319
0
0
0
0
0
0
155
0.412234
0a4f114d5336abdf79c1eeb8751aaf58a158b4d8
1,382
py
Python
transformerquant/modules/attention/multi_head.py
StateOfTheArt-quant/transformerquant
f6775d7aa920b84908b0a09d9ba098b1fe87bdff
[ "Apache-2.0" ]
22
2019-11-02T12:00:38.000Z
2022-02-16T08:00:36.000Z
transformerquant/modules/attention/multi_head.py
StateOfTheArt-quant/transformerquant
f6775d7aa920b84908b0a09d9ba098b1fe87bdff
[ "Apache-2.0" ]
null
null
null
transformerquant/modules/attention/multi_head.py
StateOfTheArt-quant/transformerquant
f6775d7aa920b84908b0a09d9ba098b1fe87bdff
[ "Apache-2.0" ]
6
2020-04-19T08:10:03.000Z
2021-12-07T05:59:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import torch.nn as nn from .single import attention class MultiHeadedAttention(nn.Module): def __init__(self, d_model, nhead, dropout=0.1): super().__init__() assert d_model % nhead ==0 # we assume d_v always equal d_k s...
35.435897
92
0.595514
1,280
0.926194
0
0
0
0
0
0
262
0.18958
0a50b1cbdb77a8f4dc63235c790b37c0f8c9b3d2
5,658
py
Python
avatar/generalization.py
Julian-Theis/AVATAR
24fcd6eaa26f413be528a160d865d5d7e49a780b
[ "MIT" ]
7
2020-12-22T12:09:14.000Z
2022-03-29T12:50:35.000Z
avatar/generalization.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
10
2020-11-13T17:45:59.000Z
2022-02-10T00:50:38.000Z
avatar/generalization.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
2
2020-03-26T22:27:27.000Z
2020-07-07T22:36:41.000Z
import os, time, argparse from datetime import datetime from pm4py.objects.log.importer.csv import factory as csv_importer from pm4py.objects.log.exporter.xes import factory as xes_exporter from pm4py.objects.log.importer.xes import factory as xes_importer from pm4py.objects.petri.importer import pnml as pnml_importer...
39.84507
166
0.61824
0
0
0
0
0
0
0
0
1,077
0.19035
0a515a3d5abf09db1a4745bebd807a1a69030c04
219
py
Python
Introductions/The Rust Programming Language/embed/bindings/embed.py
uqtimes/Rust-SampleCodes
f9d7a040d8198acd30bf3423e7c6cf52bc9c7b6e
[ "MIT" ]
null
null
null
Introductions/The Rust Programming Language/embed/bindings/embed.py
uqtimes/Rust-SampleCodes
f9d7a040d8198acd30bf3423e7c6cf52bc9c7b6e
[ "MIT" ]
null
null
null
Introductions/The Rust Programming Language/embed/bindings/embed.py
uqtimes/Rust-SampleCodes
f9d7a040d8198acd30bf3423e7c6cf52bc9c7b6e
[ "MIT" ]
null
null
null
# $ python embed.py from ctypes import cdll lib = cdll.LoadLibrary("../target/release/libembed.dylib") #=> for Mac #lib = cdll.LoadLibrary("../target/release/libembed.so") #=> for Linux lib.process() print("done!")
19.909091
70
0.689498
0
0
0
0
0
0
0
0
141
0.643836
0a51f623e8f7d8887b5aa54af4a94e17cde8759e
6,960
py
Python
huaweicloud-sdk-image/huaweicloudsdkimage/v1/image_client.py
handsome-baby/huaweicloud-sdk-python-v3
6cdcf1da8b098427e58fc3335a387c14df7776d0
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-image/huaweicloudsdkimage/v1/image_client.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-image/huaweicloudsdkimage/v1/image_client.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 from __future__ import absolute_import import datetime import re import importlib import six from huaweicloudsdkcore.client import Client, ClientBuilder from huaweicloudsdkcore.exceptions import exceptions from huaweicloudsdkcore.utils import http_utils from huaweicloudsdkcore.sdk_stream_request imp...
32.985782
135
0.653305
7,300
0.954997
0
0
281
0.036761
0
0
3,141
0.410911
0a52fbe0941050c6bef7a51be53e3c24aa5d63bd
18,295
py
Python
frank_wolfe.py
ebezzam/PolyatomicFW_SPL
7fbbead5a642915c4bb4d061006b7dac8f6af788
[ "MIT" ]
null
null
null
frank_wolfe.py
ebezzam/PolyatomicFW_SPL
7fbbead5a642915c4bb4d061006b7dac8f6af788
[ "MIT" ]
null
null
null
frank_wolfe.py
ebezzam/PolyatomicFW_SPL
7fbbead5a642915c4bb4d061006b7dac8f6af788
[ "MIT" ]
1
2022-02-23T07:18:03.000Z
2022-02-23T07:18:03.000Z
import numpy as np from typing import Optional, Any from pandas import DataFrame from copy import deepcopy from abc import abstractmethod from utils import TimedGenericIterativeAlgorithm import pycsou.core as pcore import pycsou.linop as pl from pycsou.func.penalty import L1Norm from pycsou.func.loss import SquaredL2...
54.287834
135
0.574857
17,921
0.979557
0
0
70
0.003826
0
0
1,595
0.087182
0a5476d41706f1feaac0aa6254b09258ce332025
1,700
py
Python
lib/rdflib-3.1.0/test/test_trix_serialize.py
suzuken/xbrlparser
d9309081b8d21113ebb7a0983c677bee971af0a1
[ "MIT" ]
3
2015-01-12T16:16:50.000Z
2020-03-20T03:22:36.000Z
lib/rdflib-3.1.0/test/test_trix_serialize.py
suzuken/xbrlparser
d9309081b8d21113ebb7a0983c677bee971af0a1
[ "MIT" ]
null
null
null
lib/rdflib-3.1.0/test/test_trix_serialize.py
suzuken/xbrlparser
d9309081b8d21113ebb7a0983c677bee971af0a1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest from rdflib.graph import ConjunctiveGraph from rdflib.term import URIRef, Literal from rdflib.graph import Graph class TestTrixSerialize(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def testSerialize(self): s1 = URIRef...
26.984127
72
0.597059
1,498
0.881176
0
0
0
0
0
0
403
0.237059
0a554fb894afeaf01a54f7e6b34139ca26334475
862
py
Python
dbschema/revertDBinstall.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
dbschema/revertDBinstall.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
dbschema/revertDBinstall.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
#!/usr/bin/env python from sinedon import dbupgrade, dbconfig import updatelib project_dbupgrade = dbupgrade.DBUpgradeTools('projectdata', drop=True) if __name__ == "__main__": updatelib_inst = updatelib.UpdateLib(project_dbupgrade) checkout_version = raw_input('Revert to checkout version, for example, 2.1 -->') i...
41.047619
90
0.759861
0
0
0
0
0
0
0
0
314
0.364269
0a56848b910320fe7cdd13bea4f9b4579072e4c7
724
py
Python
fightchurn/listings/chap9/listing_9_4_regression_cparam.py
guy4261/fight-churn
f3820edd6d4af5e0bd625434d3ad4236aa781ef4
[ "MIT" ]
151
2019-04-26T19:05:14.000Z
2022-03-28T10:11:53.000Z
fightchurn/listings/chap9/listing_9_4_regression_cparam.py
guy4261/fight-churn
f3820edd6d4af5e0bd625434d3ad4236aa781ef4
[ "MIT" ]
15
2019-08-05T06:35:00.000Z
2022-03-31T02:58:30.000Z
fightchurn/listings/chap9/listing_9_4_regression_cparam.py
guy4261/fight-churn
f3820edd6d4af5e0bd625434d3ad4236aa781ef4
[ "MIT" ]
71
2019-06-07T17:50:04.000Z
2022-03-27T02:49:24.000Z
from sklearn.linear_model import LogisticRegression from fightchurn.listings.chap8.listing_8_2_logistic_regression import prepare_data, save_regression_model from fightchurn.listings.chap8.listing_8_2_logistic_regression import save_regression_summary, save_dataset_predictions def regression_cparam(data_set_path, C_pa...
51.714286
119
0.825967
0
0
0
0
0
0
0
0
25
0.03453
0a56c8065ff434f391ba424536df2984e5ef9221
3,396
py
Python
notebooks/classical_clustering.py
prise6/smart-iss-posts
fc913078e7fbe6343fd36ec6ca9852322247da5d
[ "MIT" ]
null
null
null
notebooks/classical_clustering.py
prise6/smart-iss-posts
fc913078e7fbe6343fd36ec6ca9852322247da5d
[ "MIT" ]
10
2020-01-28T23:15:20.000Z
2022-03-12T00:12:31.000Z
notebooks/classical_clustering.py
prise6/smart-iss-posts
fc913078e7fbe6343fd36ec6ca9852322247da5d
[ "MIT" ]
null
null
null
#%% [markdown] # # Clustering classique #%% [markdown] # ## import classique import os #%% %load_ext autoreload %autoreload 2 os.chdir('/home/jovyan/work') #%% [markdown] # ## Import iss #%% from iss.tools import Config from iss.tools import Tools from iss.models import SimpleConvAutoEncoder from iss.clustering imp...
22.196078
152
0.707008
0
0
0
0
0
0
0
0
1,114
0.32707
0a56fc807619248f05b24361a88a0d2de688ca4d
2,156
py
Python
SM_28BYJ48/logger/logger.py
kaulketh/stepper-motor-stuff
ca7cc78279b378e5ad8e19f9c77b794a43d9a07e
[ "Unlicense" ]
null
null
null
SM_28BYJ48/logger/logger.py
kaulketh/stepper-motor-stuff
ca7cc78279b378e5ad8e19f9c77b794a43d9a07e
[ "Unlicense" ]
null
null
null
SM_28BYJ48/logger/logger.py
kaulketh/stepper-motor-stuff
ca7cc78279b378e5ad8e19f9c77b794a43d9a07e
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # ----------------------------------------------------------- # created 02.02.2021, tkaulke # Thomas Kaulke, [email protected] # https://github.com/kaulketh # ----------------------------------------------------------- __author__ = "Thomas Kaulke" __email__ = "kaulketh@gmail...
28.746667
78
0.652597
0
0
0
0
0
0
0
0
823
0.381725
0a5717bafa0ff0998fa59136b620ff9a8093ee50
11,521
py
Python
tests/test_mr_uplift.py
Ibotta/mr_uplift
e1facd39a87683dfdeaf7b08336e0ce781ff87cf
[ "Apache-2.0" ]
48
2020-04-22T16:57:55.000Z
2022-02-02T00:21:13.000Z
tests/test_mr_uplift.py
Ibotta/mr_uplift
e1facd39a87683dfdeaf7b08336e0ce781ff87cf
[ "Apache-2.0" ]
6
2020-05-01T18:15:22.000Z
2022-02-21T07:26:18.000Z
tests/test_mr_uplift.py
Ibotta/mr_uplift
e1facd39a87683dfdeaf7b08336e0ce781ff87cf
[ "Apache-2.0" ]
4
2020-04-25T08:41:34.000Z
2022-01-08T11:21:23.000Z
import numpy as np import pytest from mr_uplift.dataset.data_simulation import get_no_noise_data, get_simple_uplift_data, get_observational_uplift_data_1 from mr_uplift.mr_uplift import MRUplift, get_t_data from mr_uplift.keras_model_functionality import prepare_data_optimized_loss import sys import pandas as pd clas...
42.356618
174
0.63432
11,204
0.972485
0
0
0
0
0
0
180
0.015624
0a57479ced46772f03d9c9dc023a3217a695d37d
345
py
Python
lambdataalchemani/lambda_test.py
Full-Data-Alchemist/lambdata-Mani-alch
90dcbc091d8f9841d5a1046e64437058a4156dc5
[ "MIT" ]
null
null
null
lambdataalchemani/lambda_test.py
Full-Data-Alchemist/lambdata-Mani-alch
90dcbc091d8f9841d5a1046e64437058a4156dc5
[ "MIT" ]
null
null
null
lambdataalchemani/lambda_test.py
Full-Data-Alchemist/lambdata-Mani-alch
90dcbc091d8f9841d5a1046e64437058a4156dc5
[ "MIT" ]
null
null
null
""" """ import unittest from example_module import COLORS, increment class ExampleTest(unittest.TestCase): """ #TODO """ def test_increment(self): x0 = 0 y0 = increment(x0) #y0 == 1 self.assertEqual(y0, 1) x1 = 100 y1 = increment(x1) #y1 == 101 se...
15.681818
44
0.550725
270
0.782609
0
0
0
0
0
0
47
0.136232
0a585a8c735b3266210fbee5416e533aa2feb0c6
8,847
py
Python
desktop/core/src/desktop/auth/views.py
bopopescu/hue-5
665c275d0c0570b1a4a34a293503cc72ec35695c
[ "Apache-2.0" ]
1
2018-05-07T05:40:36.000Z
2018-05-07T05:40:36.000Z
desktop/core/src/desktop/auth/views.py
lockhart39/HueQualityAndIngestionApp
c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c
[ "Apache-2.0" ]
null
null
null
desktop/core/src/desktop/auth/views.py
lockhart39/HueQualityAndIngestionApp
c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c
[ "Apache-2.0" ]
1
2022-03-21T09:41:35.000Z
2022-03-21T09:41:35.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
34.158301
126
0.722505
0
0
0
0
5,103
0.576806
0
0
2,258
0.255228
0a58933890bb698e85d3cfefe359ee1effd69d83
1,050
py
Python
models/node.py
AlonsoReyes/t-intersection-graph
68bab234cd6e334edcec27bfee3e019f08997945
[ "MIT" ]
null
null
null
models/node.py
AlonsoReyes/t-intersection-graph
68bab234cd6e334edcec27bfee3e019f08997945
[ "MIT" ]
null
null
null
models/node.py
AlonsoReyes/t-intersection-graph
68bab234cd6e334edcec27bfee3e019f08997945
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, name, follow_list, intention, lane): self.name = name self.follow_list = follow_list self.intention = intention self.lane = lane def __eq__(self, other): if isinstance(other, Node): if self.name == other.get...
26.25
99
0.591429
1,046
0.99619
0
0
0
0
0
0
0
0
0a58e531ca2dae9287cb878ce3e08653ca7ffa30
1,451
py
Python
gsheetsdb/url.py
tim-werner/gsheets-db-api
12f2a4fbe1bd5aa36781226759326ce782b08a91
[ "MIT" ]
3
2021-02-23T06:40:35.000Z
2022-03-14T23:13:10.000Z
gsheetsdb/url.py
tim-werner/gsheets-db-api
12f2a4fbe1bd5aa36781226759326ce782b08a91
[ "MIT" ]
null
null
null
gsheetsdb/url.py
tim-werner/gsheets-db-api
12f2a4fbe1bd5aa36781226759326ce782b08a91
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import OrderedDict from moz_sql_parser import parse as parse_sql import pyparsing import re from six.moves.urllib import parse FROM_REGEX = re.compile...
25.45614
63
0.626465
0
0
0
0
0
0
0
0
167
0.115093
0a5afdc282108af1d03f7c2caaa0527030efeee6
5,178
py
Python
detr/datasets/construction_panoptic.py
joyjeni/detr-fine
dfc0f4abc2579a2b3ef4527904af3345c7a9de4d
[ "Apache-2.0" ]
null
null
null
detr/datasets/construction_panoptic.py
joyjeni/detr-fine
dfc0f4abc2579a2b3ef4527904af3345c7a9de4d
[ "Apache-2.0" ]
null
null
null
detr/datasets/construction_panoptic.py
joyjeni/detr-fine
dfc0f4abc2579a2b3ef4527904af3345c7a9de4d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import json from pathlib import Path import numpy as np import torch from PIL import Image from panopticapi.utils import rgb2id # from util.box_ops import masks_to_boxes from .construction import make_construction_transforms import logging def...
30.821429
115
0.571649
3,229
0.6236
0
0
0
0
0
0
1,123
0.216879
0a5cd9823d91b39775866f431a665d36a045cbd2
2,450
py
Python
Code/all-starter-code/search.py
diyarkudrat/CS-1.3-Core-Data-Structures
7d7d48ad7913cded7b0ea75ced144d0a08989924
[ "MIT" ]
null
null
null
Code/all-starter-code/search.py
diyarkudrat/CS-1.3-Core-Data-Structures
7d7d48ad7913cded7b0ea75ced144d0a08989924
[ "MIT" ]
null
null
null
Code/all-starter-code/search.py
diyarkudrat/CS-1.3-Core-Data-Structures
7d7d48ad7913cded7b0ea75ced144d0a08989924
[ "MIT" ]
null
null
null
#!python """ ANNOTATE FUNCTIONS WITH TIME AND SPACE COMPLEXITY!!!!! """ def linear_search(array, item): """return the first index of item in array or None if item is not found""" return linear_search_iterative(array, item) # return linear_search_recursive(array, item) def linear_search_iterative(ar...
27.222222
117
0.628571
0
0
0
0
0
0
0
0
966
0.394286
0a5d7faf0aee2e49257e320032c83e577c7a4db4
2,994
py
Python
max_ai/src/max_ai/mem_db.py
mat-heim/max_ros
e01e4f5b2db96d94865d80452d41b8dcf1412232
[ "Apache-2.0" ]
null
null
null
max_ai/src/max_ai/mem_db.py
mat-heim/max_ros
e01e4f5b2db96d94865d80452d41b8dcf1412232
[ "Apache-2.0" ]
null
null
null
max_ai/src/max_ai/mem_db.py
mat-heim/max_ros
e01e4f5b2db96d94865d80452d41b8dcf1412232
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python ''' memory class stored in sqlite data base holds raw input and memories in parse taged columns ''' import sys import re import sqlite3 import os from datetime import date, datetime from pattern.en import parse from pattern.en import pprint from pattern.en import parsetree from pattern.en import ...
31.1875
108
0.58684
2,248
0.750835
0
0
0
0
0
0
1,193
0.398464
0a5e25995315baeb1a8d9bd6a0b259803f947416
1,768
py
Python
examples/pylab_examples/image_masked.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
16
2016-06-14T19:45:35.000Z
2020-11-30T19:02:58.000Z
examples/pylab_examples/image_masked.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
7
2015-05-08T19:36:25.000Z
2015-06-30T15:32:17.000Z
examples/pylab_examples/image_masked.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
6
2015-06-05T03:34:06.000Z
2022-01-25T09:07:10.000Z
#!/usr/bin/env python '''imshow with masked array input and out-of-range colors. The second subplot illustrates the use of BoundaryNorm to get a filled contour effect. ''' from pylab import * from numpy import ma import matplotlib.colors as colors delta = 0.025 x = y = arange(-3.0, 3.0, delta) X, Y = meshgri...
31.571429
70
0.673643
0
0
0
0
0
0
0
0
843
0.47681
0a5ebfcd3225195296a0dbc5f193ada9ab19e141
164
py
Python
app/schemas/socket.py
d3vzer0/reternal-backend
aeeb613c820759212e7aef9150738a66b2882d50
[ "MIT" ]
6
2019-01-01T23:38:12.000Z
2021-07-27T03:43:11.000Z
app/schemas/socket.py
d3vzer0/reternal-backend
aeeb613c820759212e7aef9150738a66b2882d50
[ "MIT" ]
1
2020-08-02T00:21:41.000Z
2020-08-02T00:21:41.000Z
app/schemas/socket.py
d3vzer0/reternal-backend
aeeb613c820759212e7aef9150738a66b2882d50
[ "MIT" ]
1
2021-07-27T03:43:24.000Z
2021-07-27T03:43:24.000Z
from pydantic import BaseModel, validator, Field from typing import List, Dict from datetime import datetime class Authenticate(BaseModel): access_token: str
20.5
48
0.804878
52
0.317073
0
0
0
0
0
0
0
0
0a5ef02906722fedfa7e1972d812a70076441239
1,548
py
Python
meme/meme.py
aniket091/modmail-plugins-1
4360ff885f27e5c9488ea5cf9431aff20435209b
[ "MIT" ]
8
2020-01-03T19:01:59.000Z
2021-04-14T13:30:49.000Z
meme/meme.py
aniket091/modmail-plugins-1
4360ff885f27e5c9488ea5cf9431aff20435209b
[ "MIT" ]
4
2020-12-22T12:51:03.000Z
2022-01-05T20:17:00.000Z
meme/meme.py
aniket091/modmail-plugins-1
4360ff885f27e5c9488ea5cf9431aff20435209b
[ "MIT" ]
27
2020-01-17T18:05:29.000Z
2022-02-04T07:38:52.000Z
import discord from discord.ext import commands import requests import random from box import Box class WildMemes(commands.Cog): """ Randomly spawns memes. """ subreddits = [ "dankmemes", "wholesomememes", "memes", "terriblefacebookmemes", "historymemes", "me_irl", "2meirl4m...
30.352941
108
0.566537
1,399
0.903747
0
0
1,076
0.69509
1,047
0.676357
343
0.221576
0a5f2c5e88f319fb43560833894661a1abbe9435
1,934
py
Python
pcat2py/class/20bdcef0-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/20bdcef0-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
pcat2py/class/20bdcef0-5cc5-11e4-af55-00155d01fe08.py
phnomcobra/PCAT2PY
937c3b365cdc5ac69b78f59070be0a21bdb53db0
[ "MIT" ]
null
null
null
#!/usr/bin/python ################################################################################ # 20bdcef0-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # [email protected] # [email protected] # # 10/24/2014 Original Construction ################################################################...
46.047619
320
0.682006
1,595
0.824716
0
0
0
0
0
0
1,336
0.690796
0a616ab1db1fb980b42809561222fc9a899b77c4
153
py
Python
mikan/exceptions.py
dzzhvks94vd2/mikan
569b331cff02a089721fd6d0a430d5c2812b4934
[ "MIT" ]
1
2021-12-31T23:56:21.000Z
2021-12-31T23:56:21.000Z
mikan/exceptions.py
dzzhvks94vd2/mikan
569b331cff02a089721fd6d0a430d5c2812b4934
[ "MIT" ]
null
null
null
mikan/exceptions.py
dzzhvks94vd2/mikan
569b331cff02a089721fd6d0a430d5c2812b4934
[ "MIT" ]
null
null
null
class MikanException(Exception): """Generic Mikan exception""" class ConversionError(MikanException, ValueError): """Cannot convert a string"""
25.5
50
0.738562
150
0.980392
0
0
0
0
0
0
58
0.379085