hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
7121bc90502bb714cdb2acbbcead4ac4b1af4fec
392
py
Python
src/pytorch_adapt/adapters/utils.py
MarkusSagen/pytorch-adapt
947b9f1b748d2078cecbf4a00c34f73108d9ecde
[ "MIT" ]
1
2021-12-15T19:36:01.000Z
2021-12-15T19:36:01.000Z
src/pytorch_adapt/adapters/utils.py
MarkusSagen/pytorch-adapt
947b9f1b748d2078cecbf4a00c34f73108d9ecde
[ "MIT" ]
null
null
null
src/pytorch_adapt/adapters/utils.py
MarkusSagen/pytorch-adapt
947b9f1b748d2078cecbf4a00c34f73108d9ecde
[ "MIT" ]
null
null
null
from collections.abc import MutableMapping import torch def default_optimizer_tuple(): return (torch.optim.Adam, {"lr": 0.0001}) def with_opt(x): suffix = "_opt" if isinstance(x, str): return f"{x}{suffix}" if isinstance(x, list): return [with_opt(y) for y in x] if isinstance(x,...
21.777778
53
0.635204
137c492195cb384797f0678ab5b2854dac59237e
166,434
py
Python
angr/analyses/cfg/cfg_fast.py
Pamplemousse/angr
0783af9afb379fd22940505ac031d8c0ab18ae23
[ "BSD-2-Clause" ]
null
null
null
angr/analyses/cfg/cfg_fast.py
Pamplemousse/angr
0783af9afb379fd22940505ac031d8c0ab18ae23
[ "BSD-2-Clause" ]
null
null
null
angr/analyses/cfg/cfg_fast.py
Pamplemousse/angr
0783af9afb379fd22940505ac031d8c0ab18ae23
[ "BSD-2-Clause" ]
null
null
null
import itertools import logging import math import re import string from typing import List, Optional from collections import defaultdict, OrderedDict from sortedcontainers import SortedDict import claripy import cle import pyvex from cle.address_translator import AT from archinfo.arch_soot import SootAddressDescript...
43.729375
162
0.577851
c0887dfd30009a5c85bae8707571a8f5a25464be
170
py
Python
scraper.py
hackcouver/python-workshop
2cac35e87b877345141ac00953ca876fde019e69
[ "MIT" ]
null
null
null
scraper.py
hackcouver/python-workshop
2cac35e87b877345141ac00953ca876fde019e69
[ "MIT" ]
null
null
null
scraper.py
hackcouver/python-workshop
2cac35e87b877345141ac00953ca876fde019e69
[ "MIT" ]
1
2020-06-13T23:58:12.000Z
2020-06-13T23:58:12.000Z
import twint c = twint.Config() c.Username = "realDonaldTrump" # switch to whichever Twitter account you would like c.Output = "data/trump.txt" s = twint.run.Search(c)
24.285714
84
0.735294
efef888fb64360962d6e90e0b67ea3a37e6824ea
1,384
py
Python
python/tink/core/_tink_error.py
hazaelsan/tink
9be3f690611bfab85284624de46ad6f36119d8bb
[ "Apache-2.0" ]
1
2019-01-08T16:38:47.000Z
2019-01-08T16:38:47.000Z
python/tink/core/_tink_error.py
bhaskatripathi/tink
841802758ae6fadb6bcb60e9053fb4c169549f29
[ "Apache-2.0" ]
1
2020-08-18T16:42:11.000Z
2020-08-25T16:13:11.000Z
python/tink/core/_tink_error.py
bhaskatripathi/tink
841802758ae6fadb6bcb60e9053fb4c169549f29
[ "Apache-2.0" ]
1
2020-11-30T06:38:02.000Z
2020-11-30T06:38:02.000Z
# Copyright 2019 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
30.755556
74
0.774566
dbd3110622015b851f69746366c2dbd6783d2cff
7,027
py
Python
aae/auto_pose/eval/ae_multi_reconst.py
shbe-aau/multi-pose-estimation
0425ed9dcc7969f0281cb435615abc33c640e157
[ "MIT" ]
4
2021-12-28T09:25:06.000Z
2022-01-13T12:55:44.000Z
aae/auto_pose/eval/ae_multi_reconst.py
shbe-aau/multi-view-pose-estimation
22cea6cd09684fe655fb2214bc14856f589048e1
[ "MIT" ]
null
null
null
aae/auto_pose/eval/ae_multi_reconst.py
shbe-aau/multi-view-pose-estimation
22cea6cd09684fe655fb2214bc14856f589048e1
[ "MIT" ]
1
2022-01-13T13:00:15.000Z
2022-01-13T13:00:15.000Z
# -*- coding: utf-8 -*- import os import configparser import argparse import numpy as np import signal import shutil import cv2 os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import progressbar import tensorflow as tf from auto_pose.ae import ae_factory as factory from auto_pose.ae import utils as u from auto_pose.eval im...
39.926136
154
0.655045
b28d9f511993ae23dee8a12ad4023cc11cac137a
6,475
py
Python
model/net.py
Tianweidadada/RelationExtract-Pytorch
61ab88bae8dafb36c8efc03167df4ec599ca9e66
[ "MIT" ]
29
2019-10-31T07:54:39.000Z
2022-01-21T02:41:25.000Z
model/net.py
Tianweidadada/RelationExtract-Pytorch
61ab88bae8dafb36c8efc03167df4ec599ca9e66
[ "MIT" ]
3
2020-12-19T14:24:27.000Z
2021-09-22T12:39:10.000Z
model/net.py
Tianweidadada/RelationExtract-Pytorch
61ab88bae8dafb36c8efc03167df4ec599ca9e66
[ "MIT" ]
12
2020-10-13T09:22:59.000Z
2022-01-03T07:14:58.000Z
"""Define the neural network, loss function""" import torch import torch.nn as nn import torch.nn.functional as F class CNN(nn.Module): def __init__(self, data_loader, params): super(CNN, self).__init__() # loading embedding vectors of dataset embedding_vectors = data_loader.get_loaded_embedding_vectors() #...
35.382514
110
0.736988
0ab944737199a0f2f8a923affc731a753dac9b98
431
py
Python
malib/algorithm/dqn/__init__.py
ReinholdM/play_football_with_human
9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c
[ "MIT" ]
258
2021-05-10T11:17:45.000Z
2022-03-30T13:41:09.000Z
malib/algorithm/dqn/__init__.py
ReinholdM/play_football_with_human
9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c
[ "MIT" ]
28
2021-05-13T06:50:04.000Z
2022-03-30T14:19:15.000Z
malib/algorithm/dqn/__init__.py
ReinholdM/play_football_with_human
9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c
[ "MIT" ]
34
2021-05-31T16:17:49.000Z
2022-03-26T06:59:59.000Z
from .policy import DQN from .trainer import DQNTrainer from .loss import DQNLoss NAME = "DQN" LOSS = DQNLoss TRAINER = DQNTrainer POLICY = DQN # custom_config CONFIG = { "training": {"tau": 0.01}, "policy": { "gamma": 0.98, "eps_min": 1e-2, "eps_max": 1.0, "eps_decay": 2000, ...
17.24
47
0.563805
7a74cda68faf5584260544b3af415aaf92fcb224
46
py
Python
auxjad/spanners/__init__.py
gilbertohasnofb/auxjad
553b7fe97221b6f378a93ade6262f024e3cbc678
[ "MIT" ]
6
2020-05-18T09:28:29.000Z
2021-12-22T00:40:54.000Z
auxjad/spanners/__init__.py
gilbertohasnofb/auxjad
553b7fe97221b6f378a93ade6262f024e3cbc678
[ "MIT" ]
1
2021-04-21T20:29:38.000Z
2021-04-22T19:44:54.000Z
auxjad/spanners/__init__.py
gilbertohasnofb/auxjad
553b7fe97221b6f378a93ade6262f024e3cbc678
[ "MIT" ]
1
2021-04-21T18:54:46.000Z
2021-04-21T18:54:46.000Z
""" spanners ======== Auxjad's spanners. """
6.571429
18
0.5
838aca80aedc5f21f25fc6d3dce7e9e268d9b416
1,521
py
Python
Code/GCcalculation.py
baby-phage/GC-Plotter
b8495b392a485944f495363639dad5874544c427
[ "MIT" ]
1
2021-11-11T03:04:10.000Z
2021-11-11T03:04:10.000Z
Code/GCcalculation.py
baby-phage/GC-Plotter
b8495b392a485944f495363639dad5874544c427
[ "MIT" ]
null
null
null
Code/GCcalculation.py
baby-phage/GC-Plotter
b8495b392a485944f495363639dad5874544c427
[ "MIT" ]
null
null
null
# Functions for GC% calculation def Multiple_Fasta_Parser(filepath: str) -> (list, list): """Parses given FASTA file and returns a DNA sequence list and their corresponding trimmed down FASTA ID list.""" # Import regex import re with open(filepath, "r") as file: DNA_seq_list = [] ...
27.654545
118
0.558185
3d1b624a40f09e64f8ddf4f3f213bfbf6184d57f
30,491
py
Python
preprocessing/feature_extraction.py
Artisan-Lab/SMTimer
8e0bbb854afd360dcc61d6b098c4ae8931bae14c
[ "MIT" ]
5
2021-04-25T08:33:15.000Z
2022-03-10T02:20:34.000Z
preprocessing/feature_extraction.py
Artisan-Lab/SMTimer
8e0bbb854afd360dcc61d6b098c4ae8931bae14c
[ "MIT" ]
1
2021-12-12T08:34:09.000Z
2021-12-12T10:21:32.000Z
preprocessing/feature_extraction.py
Artisan-Lab/SMTimer
8e0bbb854afd360dcc61d6b098c4ae8931bae14c
[ "MIT" ]
null
null
null
import json import math import sys # import torch import traceback from pysmt.smtlib.parser import SmtLibParser from six.moves import cStringIO from pysmt.operators import __OP_STR__ from .Operators import op, none_op, bv_constant, bool_constant, reserved_word sys.setrecursionlimit(1000000) from collections import...
42.056552
127
0.490866
114e7948dbe67e0a7db7d258f76f824c3cbb2f9f
1,166
py
Python
test_unittest.py
danilovex/dojo-python-fizzbuzz
1f5647443c03b2a0078e912f9394a410d55f08c1
[ "MIT" ]
null
null
null
test_unittest.py
danilovex/dojo-python-fizzbuzz
1f5647443c03b2a0078e912f9394a410d55f08c1
[ "MIT" ]
null
null
null
test_unittest.py
danilovex/dojo-python-fizzbuzz
1f5647443c03b2a0078e912f9394a410d55f08c1
[ "MIT" ]
null
null
null
import service # The code to test import unittest # The test framework class Test_TestIncrementDecrement(unittest.TestCase): def test_deve_retornar_fizz_numeros_divisiveis_por3(self): self.assertEqual(service.eh_divisivel_por3(15), True) def test_deve_retornar_true_numeros_divisiveis_por5(self):...
34.294118
64
0.744425
33ed3d7bcd38b90c7a8f6692bb324ff0068e750e
1,979
py
Python
python/ql/test/query-tests/Functions/general/protocols.py
robertbrignull/ql
2ecef33c9d2c9a66b5359b68437c3229fcf54964
[ "MIT" ]
26
2020-06-30T03:07:19.000Z
2022-03-31T03:57:23.000Z
python/ql/test/query-tests/Functions/general/protocols.py
robertbrignull/ql
2ecef33c9d2c9a66b5359b68437c3229fcf54964
[ "MIT" ]
2
2020-06-30T06:00:59.000Z
2021-04-21T19:53:33.000Z
python/ql/test/query-tests/Functions/general/protocols.py
robertbrignull/ql
2ecef33c9d2c9a66b5359b68437c3229fcf54964
[ "MIT" ]
10
2021-03-24T13:09:08.000Z
2022-02-10T07:39:30.000Z
class Iterator: #Support both 2 and 3 protocol def __next__(self): pass def next(self): pass def __iter__(self): return self class X(object): def __iter__(self): return object() class IteratorMissingNext: def __iter__(self): ...
16.630252
62
0.590702
c98af38e2fdce25e8b8e68467d698dc02b66bac5
2,451
py
Python
tfce_toolbox/tfce_computation.py
celine-alameda/cluster-analysis
0168bb8238f2e368f92d5fddbfe9330fd3465438
[ "BSD-3-Clause" ]
null
null
null
tfce_toolbox/tfce_computation.py
celine-alameda/cluster-analysis
0168bb8238f2e368f92d5fddbfe9330fd3465438
[ "BSD-3-Clause" ]
null
null
null
tfce_toolbox/tfce_computation.py
celine-alameda/cluster-analysis
0168bb8238f2e368f92d5fddbfe9330fd3465438
[ "BSD-3-Clause" ]
null
null
null
import concurrent import math # values as per doi:10.1016/j.neuroimage.2008.03.061 dh = 0.1 extend_weight = 0.5 height_weight = 2 def tfces_from_distributions_st(distributions: list): tfces = [] for distribution in distributions: tfce = tfce_from_distribution(distribution) tfces.append(tfce) ...
35.521739
99
0.587923
5f41b53106d4226c2773b4d0f47db1d50245abee
15,268
py
Python
src/mrack/providers/beaker.py
Tiboris/mrack
c3a91ad9c36113ad14d4ebbab8985616a0a1359c
[ "Apache-2.0" ]
2
2021-05-26T15:57:13.000Z
2021-08-21T02:14:01.000Z
src/mrack/providers/beaker.py
Tiboris/mrack
c3a91ad9c36113ad14d4ebbab8985616a0a1359c
[ "Apache-2.0" ]
81
2020-10-02T08:30:56.000Z
2022-03-31T11:47:41.000Z
src/mrack/providers/beaker.py
Tiboris/mrack
c3a91ad9c36113ad14d4ebbab8985616a0a1359c
[ "Apache-2.0" ]
7
2020-10-02T08:13:57.000Z
2022-03-31T11:22:53.000Z
# Copyright 2020 Red Hat Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
36.439141
86
0.584228
1cd4d6519784f39b941570a118d4ced5254228aa
1,044
py
Python
tests/test_fitfuncs.py
david-hoffman/dphtools
f9f19ef5b0a00169562947c78a41c1f02e222a6a
[ "Apache-2.0" ]
null
null
null
tests/test_fitfuncs.py
david-hoffman/dphtools
f9f19ef5b0a00169562947c78a41c1f02e222a6a
[ "Apache-2.0" ]
4
2021-02-18T18:15:39.000Z
2022-02-09T06:49:58.000Z
tests/test_fitfuncs.py
david-hoffman/dphtools
f9f19ef5b0a00169562947c78a41c1f02e222a6a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # test_fitfuncs.py """ Testing for fitfuncs. Copyright (c) 2021, David Hoffman """ import unittest import numpy as np from dphtools.utils.fitfuncs import exponent, exponent_fit from numpy.testing import assert_allclose class TestExponentFit(unittest.TestCase): """...
24.857143
58
0.630268
a03095ee947027261254579a36557325dec1d234
4,688
py
Python
model-optimizer/extensions/front/tf/pooling_ext_test.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
2
2021-04-19T06:08:35.000Z
2021-08-25T02:43:43.000Z
model-optimizer/extensions/front/tf/pooling_ext_test.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
6
2022-01-11T18:56:22.000Z
2022-02-21T13:20:20.000Z
model-optimizer/extensions/front/tf/pooling_ext_test.py
apexxs/dldt
17e66dc5a6631d630da454506902bd7c25d4170b
[ "Apache-2.0" ]
3
2021-02-05T17:11:17.000Z
2021-04-19T08:33:31.000Z
""" Copyright (c) 2018 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
30.245161
88
0.473763
855c33562f8b643d52b4221e8a9d697358e43676
7,014
py
Python
cni_challenge/evaluation/classification_metrics.py
sz144/pl-cni_challenge
eded4050329f3a54d5a67d91e2680a6b0dadc471
[ "MIT" ]
3
2019-06-07T21:46:33.000Z
2019-07-04T19:24:14.000Z
cni_challenge/evaluation/classification_metrics.py
sz144/pl-cni_challenge
eded4050329f3a54d5a67d91e2680a6b0dadc471
[ "MIT" ]
null
null
null
cni_challenge/evaluation/classification_metrics.py
sz144/pl-cni_challenge
eded4050329f3a54d5a67d91e2680a6b0dadc471
[ "MIT" ]
11
2019-06-30T20:14:02.000Z
2021-05-19T19:01:37.000Z
#!/shared/python3shared/bin/python3 """ :Summary: With the lack of consensus of which metric is most suitable to determine the most appropriate classifier, we use an inclusive approach. This includes multiple measures which are commonly used in classification tasks, such as accuracy and AUC, allowing for a more intu...
23.458194
184
0.660393
5b634996f2ec8af1ee6661602098aa61e692ad2b
668
py
Python
examples/simple_spider/python_documentation_spider.py
AirSpiders/AirSpider
a56e4b1c640e19113b2b078c9a8e7f3a02b2f721
[ "Apache-2.0" ]
21
2020-03-20T09:01:24.000Z
2021-06-30T02:00:56.000Z
examples/simple_spider/python_documentation_spider.py
LRENZ/AirSpider
a56e4b1c640e19113b2b078c9a8e7f3a02b2f721
[ "Apache-2.0" ]
null
null
null
examples/simple_spider/python_documentation_spider.py
LRENZ/AirSpider
a56e4b1c640e19113b2b078c9a8e7f3a02b2f721
[ "Apache-2.0" ]
6
2020-03-30T09:24:22.000Z
2020-10-30T16:45:02.000Z
import asyncio import sys from airspider import Item, TextField, AttrField class PythonDocumentationItem(Item): title = TextField(css_select="title") tutorial_link = AttrField(xpath_select="//a[text()='Tutorial']", attr="href") async def field_extraction(): url = "https://docs.python.org/3/" item =...
25.692308
81
0.688623
27a1074d9b34002da448303d72bdbd5d894b542c
783
py
Python
tests/components/pages/form.py
T4rk1n/dazzler
69c49422dc19c910445ab265b1d3481041de8f43
[ "MIT" ]
15
2019-12-19T11:57:30.000Z
2021-11-15T23:34:41.000Z
tests/components/pages/form.py
T4rk1n/dazzler
69c49422dc19c910445ab265b1d3481041de8f43
[ "MIT" ]
196
2019-09-21T15:10:14.000Z
2022-03-31T11:07:48.000Z
tests/components/pages/form.py
jbampton/dazzler
4018f6cbcb55a9f482cb5c5cbf6a06b063c15e21
[ "MIT" ]
7
2019-10-30T19:38:15.000Z
2021-12-01T04:54:16.000Z
""" Page form of dazzler Created 2019-07-14 """ from aiohttp import web from dazzler.components import core from dazzler.system import Page, RouteMethod page = Page( __name__, core.Container([ core.Form( fields=[ { 'label': 'Field 1', ...
21.75
66
0.51341
115d286b326f5209df02f17b28f66dabc9439ecf
722
py
Python
src/predict.py
BiswajeetNayak/BankruptcyPrediction
92ae5523210a27eb8ac1869118991d7be648d3aa
[ "MIT" ]
null
null
null
src/predict.py
BiswajeetNayak/BankruptcyPrediction
92ae5523210a27eb8ac1869118991d7be648d3aa
[ "MIT" ]
null
null
null
src/predict.py
BiswajeetNayak/BankruptcyPrediction
92ae5523210a27eb8ac1869118991d7be648d3aa
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.ensemble import RandomForestClassifier, IsolationForest from sklearn.linear_model import LogisticRegression from models import * def i_f_predict(model, X): pred = model.predict(X) return pred def clf_predict(model, X): pred = model.predict(X) pred_proba = model.predi...
30.083333
97
0.739612
aabeeda2dff1300e9659c6a0083e6ffd105f5e5e
5,415
py
Python
electrumx/server/controller.py
UbuntuEvangelist/electrumx
3577dbc31cb9f661682dd7587a9a4ac400305f38
[ "CNRI-Python" ]
null
null
null
electrumx/server/controller.py
UbuntuEvangelist/electrumx
3577dbc31cb9f661682dd7587a9a4ac400305f38
[ "CNRI-Python" ]
null
null
null
electrumx/server/controller.py
UbuntuEvangelist/electrumx
3577dbc31cb9f661682dd7587a9a4ac400305f38
[ "CNRI-Python" ]
null
null
null
# Copyright (c) 2016-2021, Neil Booth # # All rights reserved. # # This file is licensed under the Open BSV License version 3, see LICENCE for details. from asyncio import Event from aiorpcx import _version as aiorpcx_version, TaskGroup import electrumx import electrumx.server.block_processor as block_proc from elec...
38.956835
86
0.651339
085c8959a975de56a879fc10c7d9d8dee1947bff
17,289
py
Python
code/huxt_analysis.py
University-of-Reading-Space-Science/GeoModelUncertainty
f5d26cb9c5888d23c1f96ed085dbda57e568af25
[ "MIT" ]
null
null
null
code/huxt_analysis.py
University-of-Reading-Space-Science/GeoModelUncertainty
f5d26cb9c5888d23c1f96ed085dbda57e568af25
[ "MIT" ]
null
null
null
code/huxt_analysis.py
University-of-Reading-Space-Science/GeoModelUncertainty
f5d26cb9c5888d23c1f96ed085dbda57e568af25
[ "MIT" ]
1
2021-07-12T11:46:26.000Z
2021-07-12T11:46:26.000Z
import numpy as np import astropy.units as u from astropy.time import Time import os import matplotlib.pyplot as plt import matplotlib as mpl import moviepy.editor as mpy import pandas as pd from moviepy.video.io.bindings import mplfig_to_npimage import huxt as H mpl.rc("axes", labelsize=16) mpl.rc("ytick", labelsize...
37.100858
123
0.629186
ec61118776f4d1f2d21206c749a90f450dc07789
1,942
py
Python
masci_tools/io/cif2inp_ase.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
15
2018-11-07T10:04:46.000Z
2021-11-08T20:51:08.000Z
masci_tools/io/cif2inp_ase.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
120
2020-02-04T15:37:42.000Z
2022-03-17T10:49:40.000Z
masci_tools/io/cif2inp_ase.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
11
2018-10-18T08:09:07.000Z
2022-02-22T15:45:21.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. # # All rights reserved. # # This file is part of the Masci-...
44.136364
118
0.49897
e02f3c2f3c34c30db4d9234a53c21efd2bb3f061
12,909
py
Python
lib/matplotlib/testing/compare.py
jbbrokaw/matplotlib
86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427
[ "MIT", "BSD-3-Clause" ]
8
2017-04-11T08:55:30.000Z
2022-03-25T04:31:26.000Z
lib/matplotlib/testing/compare.py
jbbrokaw/matplotlib
86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427
[ "MIT", "BSD-3-Clause" ]
2
2021-05-10T17:57:41.000Z
2021-07-26T16:23:09.000Z
lib/matplotlib/testing/compare.py
jbbrokaw/matplotlib
86ec1b6fc5628bfb2d09797c58d7eed0ca8c2427
[ "MIT", "BSD-3-Clause" ]
14
2015-10-05T04:15:46.000Z
2020-06-11T18:06:02.000Z
""" Provides a collection of utilities for comparing (image) results. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import six import hashlib import os import shutil import numpy as np import matplotlib from matplotlib.compat import subprocess from...
34.060686
79
0.629173
c2142dbaff612a5a47a56fdb9c4a5adc22e34cb9
9,386
py
Python
ir_to_COCO/cal_ojb_num.py
WJ-Lai/CenterNet-CentralNet
d28a8c2438244782ccdd6805e555558b2c01ff46
[ "MIT" ]
6
2019-12-24T07:13:18.000Z
2021-06-12T17:06:36.000Z
ir_to_COCO/cal_ojb_num.py
WJ-Lai/CenterNet-CentralNet
d28a8c2438244782ccdd6805e555558b2c01ff46
[ "MIT" ]
null
null
null
ir_to_COCO/cal_ojb_num.py
WJ-Lai/CenterNet-CentralNet
d28a8c2438244782ccdd6805e555558b2c01ff46
[ "MIT" ]
1
2021-03-15T02:38:44.000Z
2021-03-15T02:38:44.000Z
import os import random import shutil import sys import json import glob import xml.etree.ElementTree as ET import re #from https://www.php.cn/python-tutorials-424348.html def mkdir(path): path=path.strip() path=path.rstrip("\\") isExists=os.path.exists(path) if not isExists: os.makedirs(path) ...
31.92517
117
0.623269
bc0f81cc6df2152342b298bb5e3eac46fc31a396
13,096
py
Python
quantum/tests/unit/nec/test_pfc_driver.py
yamt/neutron
f94126739a48993efaf1d1439dcd3dadb0c69742
[ "Apache-2.0" ]
null
null
null
quantum/tests/unit/nec/test_pfc_driver.py
yamt/neutron
f94126739a48993efaf1d1439dcd3dadb0c69742
[ "Apache-2.0" ]
null
null
null
quantum/tests/unit/nec/test_pfc_driver.py
yamt/neutron
f94126739a48993efaf1d1439dcd3dadb0c69742
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 NEC Corporation. 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...
36.890141
78
0.633476
f251922e0a52644957fe91c19aa2e8857ed95b5c
92,083
py
Python
powergenome/generators.py
deeglaze/PowerGenome
669e26c63ff1272a7afcfa34165b592eafa9e142
[ "MIT" ]
59
2021-01-09T03:00:11.000Z
2022-03-31T02:33:55.000Z
powergenome/generators.py
deeglaze/PowerGenome
669e26c63ff1272a7afcfa34165b592eafa9e142
[ "MIT" ]
77
2021-01-07T19:39:34.000Z
2022-03-25T01:30:31.000Z
powergenome/generators.py
deeglaze/PowerGenome
669e26c63ff1272a7afcfa34165b592eafa9e142
[ "MIT" ]
18
2021-01-31T16:43:17.000Z
2022-02-11T10:43:34.000Z
import collections import logging from numbers import Number from typing import Dict import re import requests import geopandas as gpd import numpy as np import pandas as pd from pathlib import Path import pudl from bs4 import BeautifulSoup from flatten_dict import flatten from powergenome.cluster_method import ( ...
35.146183
97
0.627684
69bf4f90c112cfdcb70a009f749c3a71f9f17f0e
15,853
py
Python
src/etos_lib/lib/events.py
fredjn/etos-library
f0fe414abae178f36314dfc3ea25353b7d8780bb
[ "Apache-2.0" ]
null
null
null
src/etos_lib/lib/events.py
fredjn/etos-library
f0fe414abae178f36314dfc3ea25353b7d8780bb
[ "Apache-2.0" ]
3
2020-09-28T12:02:39.000Z
2022-01-20T08:39:52.000Z
src/etos_lib/lib/events.py
fredjn/etos-library
f0fe414abae178f36314dfc3ea25353b7d8780bb
[ "Apache-2.0" ]
3
2020-09-25T11:16:28.000Z
2020-12-02T10:16:07.000Z
# Copyright 2020-2021 Axis Communications AB. # # For a full list of individual contributors, please see the commit history. # # 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...
41.5
131
0.668202
ed475f8222ae28b790324c16f0c9863194da2b5f
1,690
py
Python
salt/grains/extra.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
null
null
null
salt/grains/extra.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
1
2017-07-10T21:44:39.000Z
2017-07-10T21:44:39.000Z
salt/grains/extra.py
markgras/salt
d66cd3c935533c63870b83228b978ce43e0ef70d
[ "Apache-2.0" ]
1
2021-08-19T13:30:13.000Z
2021-08-19T13:30:13.000Z
import logging import os import salt.utils.data import salt.utils.files import salt.utils.platform import salt.utils.yaml __proxyenabled__ = ["*"] log = logging.getLogger(__name__) def shell(): """ Return the default shell to use on this system """ # Provides: # shell if salt.utils.platfor...
27.704918
80
0.556213
7756cd889b741435a27128beb664f52b38def04c
13,463
py
Python
RI/TP2/indexer.py
lengors/ua-repository
4a2ff60af8b190783e1992fe8edb40fc1147224a
[ "MIT" ]
null
null
null
RI/TP2/indexer.py
lengors/ua-repository
4a2ff60af8b190783e1992fe8edb40fc1147224a
[ "MIT" ]
null
null
null
RI/TP2/indexer.py
lengors/ua-repository
4a2ff60af8b190783e1992fe8edb40fc1147224a
[ "MIT" ]
null
null
null
from corpus_reader import CorpusReader from tokenization import Tokenizer import collections, math, psutil import os, shutil, gc class Indexer: class __InnerIndexer: def __init__(self, tokenizer : Tokenizer, index_folder : str, max_memory_usage : float = 20): self.terms = {} self.se...
43.289389
224
0.564287
eb531edb8adf408d15b621b9b85e3cc969089b47
8,794
py
Python
simscale_sdk/models/darcy_forchheimer_medium.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
8
2021-01-22T13:41:03.000Z
2022-01-03T09:00:10.000Z
simscale_sdk/models/darcy_forchheimer_medium.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
null
null
null
simscale_sdk/models/darcy_forchheimer_medium.py
slainesimscale/simscale-python-sdk
db483eeabe558e55d020f5f829a3bf13c9c287a7
[ "MIT" ]
3
2021-03-18T15:52:52.000Z
2022-01-03T08:59:30.000Z
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class DarcyForchheimerMedium(object): """NOTE: This class is auto gen...
31.633094
222
0.642029
40fd1066f5d91209e56e234327a83593a61ea0c6
4,683
py
Python
airquality/hyperband/defs_regression/keras_mlp.py
javiermas/BCNAirQualityDatathon
88e0d487046a3d4b76f7757c7def2350d86766ab
[ "MIT" ]
51
2019-02-01T19:43:37.000Z
2022-03-16T09:07:03.000Z
airquality/hyperband/defs_regression/keras_mlp.py
javiermas/BCNAirQualityDatathon
88e0d487046a3d4b76f7757c7def2350d86766ab
[ "MIT" ]
2
2019-02-23T18:54:22.000Z
2019-11-09T01:30:32.000Z
airquality/hyperband/defs_regression/keras_mlp.py
javiermas/BCNAirQualityDatathon
88e0d487046a3d4b76f7757c7def2350d86766ab
[ "MIT" ]
35
2019-02-08T02:00:31.000Z
2022-03-01T23:17:00.000Z
"function (and parameter space) definitions for hyperband" "regression with Keras (multilayer perceptron)" from common_defs import * # a dict with x_train, y_train, x_test, y_test from load_data_for_regression import data from keras.models import Sequential from keras.layers.core import Dense, Dropout from keras.lay...
30.809211
90
0.645953
6d052aadd71d8dede700a9e0b91b25988b34f579
3,251
py
Python
scripts/old_gui.py
cognigraphtravis/cognigraph
cfed2a32a4b22b15687b13b40a52e54fdbed703a
[ "MIT" ]
null
null
null
scripts/old_gui.py
cognigraphtravis/cognigraph
cfed2a32a4b22b15687b13b40a52e54fdbed703a
[ "MIT" ]
null
null
null
scripts/old_gui.py
cognigraphtravis/cognigraph
cfed2a32a4b22b15687b13b40a52e54fdbed703a
[ "MIT" ]
null
null
null
import sys from pyqtgraph import QtCore, QtGui from cognigraph.pipeline import Pipeline from cognigraph.nodes import sources, processors, outputs from cognigraph import TIME_AXIS from cognigraph.gui.window import GUIWindow app = QtGui.QApplication(sys.argv) pipeline = Pipeline() # file_path = r"/home/dmalt/Code/py...
31.563107
91
0.809289
16226e18c3da377f4a682ac331457acddf34bd6a
3,156
py
Python
isi_sdk_8_2_1/isi_sdk_8_2_1/models/copy_errors.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_1/isi_sdk_8_2_1/models/copy_errors.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_1/isi_sdk_8_2_1/models/copy_errors.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 8 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_8_2_1.models.copy_er...
27.443478
96
0.57858
bc549e81f966823a47b077a9c3318a0992119fea
196
py
Python
runnertracker/application/root/views.py
victormartinez/runnertracker
2a390eff7866d5b96ad2a3f34391dd855cf003a6
[ "MIT" ]
null
null
null
runnertracker/application/root/views.py
victormartinez/runnertracker
2a390eff7866d5b96ad2a3f34391dd855cf003a6
[ "MIT" ]
null
null
null
runnertracker/application/root/views.py
victormartinez/runnertracker
2a390eff7866d5b96ad2a3f34391dd855cf003a6
[ "MIT" ]
null
null
null
from http import HTTPStatus from aiohttp import web class RootView(web.View): async def get(self) -> web.Response: return web.json_response({"healthy": True}, status=HTTPStatus.OK)
21.777778
73
0.719388
43ff06639f6a5d4d503984c0f67f51065ba45f54
1,437
py
Python
cookielaw/test_project/wsgi.py
selectnull/django-cookie-law
5da5c54415e99d0d489eea2aa7e471c5e6bd08e6
[ "BSD-2-Clause" ]
182
2015-04-21T13:13:12.000Z
2022-03-12T14:20:54.000Z
cookielaw/test_project/wsgi.py
selectnull/django-cookie-law
5da5c54415e99d0d489eea2aa7e471c5e6bd08e6
[ "BSD-2-Clause" ]
74
2015-01-26T11:15:08.000Z
2021-12-17T05:29:07.000Z
cookielaw/test_project/wsgi.py
selectnull/django-cookie-law
5da5c54415e99d0d489eea2aa7e471c5e6bd08e6
[ "BSD-2-Clause" ]
81
2015-01-22T09:55:59.000Z
2022-03-23T04:53:05.000Z
""" WSGI config for test_project project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATI...
43.545455
79
0.80515
c519986c5e35f71d300155869de556b3fcf70a6d
60,062
py
Python
src/sentry/south_migrations/0212_auto__add_fileblob__add_field_file_blob.py
apragacz/sf-sentry
2fdd6c1195c29a1d401d1cd538c22ea68556699a
[ "BSD-3-Clause" ]
1
2018-03-05T15:40:12.000Z
2018-03-05T15:40:12.000Z
src/sentry/south_migrations/0212_auto__add_fileblob__add_field_file_blob.py
pkaminski/sentry
27e948283e27d93ca5192ca7b580830e092c25c7
[ "BSD-3-Clause" ]
5
2020-07-17T11:20:41.000Z
2021-05-09T12:16:53.000Z
src/sentry/south_migrations/0212_auto__add_fileblob__add_field_file_blob.py
zaasmi/codeerrorhelp
1ab8d3e314386b9b2d58dad9df45355bf6014ac9
[ "BSD-3-Clause" ]
2
2021-01-26T09:53:39.000Z
2022-03-22T09:01:47.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as 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 'FileBlob' db.create_table( 'sentry_fileblob', ...
36.269324
99
0.395375
d8e923eae84d83960ad58d4f24c21437d5ac7460
6,901
py
Python
index.py
Senarc-Studios/Semethon-API
e1c12deb1251012409d789a987d4c8df12e1b374
[ "BSD-3-Clause" ]
null
null
null
index.py
Senarc-Studios/Semethon-API
e1c12deb1251012409d789a987d4c8df12e1b374
[ "BSD-3-Clause" ]
null
null
null
index.py
Senarc-Studios/Semethon-API
e1c12deb1251012409d789a987d4c8df12e1b374
[ "BSD-3-Clause" ]
null
null
null
import os import json import string import random import asyncio from typing import Optional from cool_utils import get_data from pydantic import BaseModel from fastapi import FastAPI, WebSocket from fastapi.reponses import JSONResponse from local_cubacrypt import decypher, cypher from dotenv import find_dotenv, load_d...
25.654275
136
0.691494
a94189534ce080a8cf3ffff26370b7f4f53abe8a
6,101
py
Python
code/examples/Q_Learning_examples/matchers.py
ekarais/RLFM
479679e39b4fdd230b5a67c2005dd2fb001e7169
[ "MIT" ]
7
2020-06-17T14:09:57.000Z
2022-03-15T05:20:42.000Z
rl_markets_code/matchers.py
asikist-ethz/market_rl
8a8f45d30a9cb2400107d92f4a13091addc3d6f8
[ "MIT" ]
null
null
null
rl_markets_code/matchers.py
asikist-ethz/market_rl
8a8f45d30a9cb2400107d92f4a13091addc3d6f8
[ "MIT" ]
2
2019-11-12T20:51:24.000Z
2020-06-17T14:28:58.000Z
__author__ = "Thomas Asikis" __credits__ = ["Copyright (c) 2019 Thomas Asikis"] __license__ = "MIT" __version__ = "0.1" __maintainer__ = "Thomas Asikis" import random import pandas as pd from abc import abstractmethod class Matcher: def __init__(self): """ Abstract matcher object. This object is ...
46.930769
100
0.609572
0359f9e0b4b36bcd839f7c8628cd7c5186e904e9
346
py
Python
bravepatcher/utils/firewall/AbstractFirewallHelper.py
maxisoft/BravePatcher
b745567297460eb6a7d8567eb3707cc14cc9d66f
[ "MIT" ]
3
2021-11-11T23:10:59.000Z
2022-02-05T09:14:15.000Z
bravepatcher/utils/firewall/AbstractFirewallHelper.py
maxisoft/BravePatcher
b745567297460eb6a7d8567eb3707cc14cc9d66f
[ "MIT" ]
3
2021-01-12T21:31:18.000Z
2021-11-11T23:12:02.000Z
bravepatcher/utils/firewall/AbstractFirewallHelper.py
maxisoft/BravePatcher
b745567297460eb6a7d8567eb3707cc14cc9d66f
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from pathlib import Path class AbstractFirewallHelper(ABC): @abstractmethod def allow_program(self, path: Path, name: str): pass @abstractmethod def block_program(self, path: Path, name: str): pass @abstractmethod def has_rule(self, name: s...
20.352941
51
0.66763
0430a44ae46f08bfab2f0b45c05f08eb1f7cdbd7
21,466
py
Python
natsort/natsort.py
thethiny/natsort
36f0d6f553c02c5937af94541463d30656537615
[ "MIT" ]
null
null
null
natsort/natsort.py
thethiny/natsort
36f0d6f553c02c5937af94541463d30656537615
[ "MIT" ]
null
null
null
natsort/natsort.py
thethiny/natsort
36f0d6f553c02c5937af94541463d30656537615
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Along with ns_enum.py, this module contains all of the natsort public API. The majority of the "work" is defined in utils.py. """ import platform from functools import partial from operator import itemgetter from typing import Callable, Iterable, TypeVar from _typeshed import SupportsLess...
28.133683
108
0.629321
b98b48519865e4c9bb60d049b0bed8b5c3a96f97
12,327
py
Python
server/views.py
aysiu/Crypt-Server
90ab865e392ece250d06b0c035961665deaca89a
[ "Apache-2.0" ]
null
null
null
server/views.py
aysiu/Crypt-Server
90ab865e392ece250d06b0c035961665deaca89a
[ "Apache-2.0" ]
null
null
null
server/views.py
aysiu/Crypt-Server
90ab865e392ece250d06b0c035961665deaca89a
[ "Apache-2.0" ]
null
null
null
from models import * from django.contrib.auth.decorators import login_required, permission_required from django.template import RequestContext, Template, Context import json from django.views.decorators.csrf import csrf_exempt, csrf_protect from django.http import HttpResponse, Http404, JsonResponse from django.contrib...
38.642633
144
0.655228
a80686019cfc6bf706615e552dafe3c839c36389
2,395
py
Python
ropy/models/mdl_panda.py
jhavl/ropy
38b12369530253a16c22ef1f5be0bcb75053ffd8
[ "MIT" ]
16
2020-02-20T10:28:01.000Z
2021-07-12T09:03:25.000Z
ropy/models/mdl_panda.py
jhavl/ropy
38b12369530253a16c22ef1f5be0bcb75053ffd8
[ "MIT" ]
2
2020-04-27T01:35:44.000Z
2020-04-27T23:19:53.000Z
ropy/models/mdl_panda.py
jhavl/ropy
38b12369530253a16c22ef1f5be0bcb75053ffd8
[ "MIT" ]
3
2020-04-07T03:00:02.000Z
2020-09-05T23:49:28.000Z
# #!/usr/bin/env python # import numpy as np # from ropy.robot.Revolute import Revolute # from ropy.robot.SerialLink import SerialLink # from ropy.tools.transform import transl, xyzrpy_to_trans # class Panda(SerialLink): # """ # A class representing the Franka Emika Panda robot arm. # DH Parameters taken...
36.846154
137
0.517745
34e2bb33253c0a8595ca30111a3d42ed9c194fe5
2,485
py
Python
src/org_setup/resources/accessanalyzer.py
gilyas/aws-control-tower-org-setup-sample
65c1a1a0c7b7bb362dff1924f38f63bd8c3a8e41
[ "MIT-0" ]
null
null
null
src/org_setup/resources/accessanalyzer.py
gilyas/aws-control-tower-org-setup-sample
65c1a1a0c7b7bb362dff1924f38f63bd8c3a8e41
[ "MIT-0" ]
null
null
null
src/org_setup/resources/accessanalyzer.py
gilyas/aws-control-tower-org-setup-sample
65c1a1a0c7b7bb362dff1924f38f63bd8c3a8e41
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: MIT-0 * * 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...
37.089552
87
0.709054
52cb1269eb216e15769828fd613ef1a43b4425aa
246
py
Python
example_crm/dev_patrick.py
pkimber/crm
835e8ff3161404316b7da35cf61e3851763b37b9
[ "Apache-2.0" ]
4
2015-02-22T07:22:03.000Z
2017-03-13T05:36:23.000Z
example_crm/dev_patrick.py
pkimber/old-crm-migrated-to-gitlab
835e8ff3161404316b7da35cf61e3851763b37b9
[ "Apache-2.0" ]
1
2015-07-03T23:52:37.000Z
2016-04-10T14:49:36.000Z
example_crm/dev_patrick.py
pkimber/old-crm-migrated-to-gitlab
835e8ff3161404316b7da35cf61e3851763b37b9
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'temp.db', 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '', } }
16.4
47
0.410569
ef737764319dde6f64dbe5b233ce3173f2916280
927
py
Python
tests/turing_machine/test_rule.py
kigawas/computation-py
4e1dc356c03b845cae1218a244ad2f2ce2b10132
[ "MIT" ]
24
2016-04-16T09:10:15.000Z
2022-03-14T08:44:48.000Z
tests/turing_machine/test_rule.py
kigawas/computation-py
4e1dc356c03b845cae1218a244ad2f2ce2b10132
[ "MIT" ]
10
2020-11-29T13:01:09.000Z
2022-01-22T13:14:32.000Z
tests/turing_machine/test_rule.py
kigawas/computation-py
4e1dc356c03b845cae1218a244ad2f2ce2b10132
[ "MIT" ]
2
2019-09-21T15:07:41.000Z
2021-03-14T13:38:10.000Z
from computation.turing_machine.rule import ( DTM, Direction, DTMRulebook, Tape, TMConfiguration, TMRule, ) # increment binary number rulebook rulebook = DTMRulebook( [ TMRule(1, "0", 2, "1", Direction.RIGHT), TMRule(1, "1", 1, "0", Direction.LEFT), TMRule(1, "_", 2,...
23.175
78
0.514563
6896e1102e9a82a0195bb2f7d1401ef7a706ebc7
45
py
Python
tests/CompileTests/Python_tests/test2011_013.py
maurizioabba/rose
7597292cf14da292bdb9a4ef573001b6c5b9b6c0
[ "BSD-3-Clause" ]
488
2015-01-09T08:54:48.000Z
2022-03-30T07:15:46.000Z
tests/CompileTests/Python_tests/test2011_013.py
sujankh/rose-matlab
7435d4fa1941826c784ba97296c0ec55fa7d7c7e
[ "BSD-3-Clause" ]
174
2015-01-28T18:41:32.000Z
2022-03-31T16:51:05.000Z
tests/CompileTests/Python_tests/test2011_013.py
sujankh/rose-matlab
7435d4fa1941826c784ba97296c0ec55fa7d7c7e
[ "BSD-3-Clause" ]
146
2015-04-27T02:48:34.000Z
2022-03-04T07:32:53.000Z
def foo(): return 1 def bar(): return 2
7.5
10
0.577778
e8c5c3df4df9ae14dce48dd709ec5b0d070cd5bd
186
py
Python
biothings/tests/hub/config/conf_deep.py
sirloon/biothings.api
8a981fa2151e368d0ca76aaf226eb565d794d4fb
[ "Apache-2.0" ]
null
null
null
biothings/tests/hub/config/conf_deep.py
sirloon/biothings.api
8a981fa2151e368d0ca76aaf226eb565d794d4fb
[ "Apache-2.0" ]
null
null
null
biothings/tests/hub/config/conf_deep.py
sirloon/biothings.api
8a981fa2151e368d0ca76aaf226eb565d794d4fb
[ "Apache-2.0" ]
null
null
null
from conf_base import * # redefine some params D_D = "d" # redefine description E = "heu" # redefine desc of read-only READ_ONLY = "written in titanium" #- readonly -# F = "Forged"
12.4
33
0.682796
0f506f3d17d3607fd974357621c1e2d8a3d9789b
12,049
py
Python
intersight/model/appliance_device_certificate_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/appliance_device_certificate_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/appliance_device_certificate_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
54.520362
1,678
0.642875
2ff53c1389dce0053d576fefb065b93ae3831453
7,152
py
Python
test/performance/link_prediction/dgl/model.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
null
null
null
test/performance/link_prediction/dgl/model.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
null
null
null
test/performance/link_prediction/dgl/model.py
dedsec-9/AutoGL
487f2b2f798b9b1363ad5dc100fb410b12222e06
[ "MIT" ]
null
null
null
import dgl import torch import pickle import torch.nn as nn import torch.nn.functional as F import numpy as np import scipy.sparse as sp import dgl.function as fn import random from dgl.data import CoraGraphDataset, PubmedGraphDataset, CiteseerGraphDataset from autogl.module.model.dgl import AutoSAGE, AutoGCN, AutoGAT ...
36.865979
127
0.680928
bf4ec80bfaa68d5b950ac516e8cd918166b42cc2
5,660
py
Python
mujoco/ppo_main.py
mrbermell/seed_rl
9562e178fb8c16d2551d9e5d59594a7f908655dd
[ "Apache-2.0" ]
733
2019-10-14T11:38:22.000Z
2022-03-24T14:55:50.000Z
mujoco/ppo_main.py
mrbermell/seed_rl
9562e178fb8c16d2551d9e5d59594a7f908655dd
[ "Apache-2.0" ]
76
2019-10-30T14:18:17.000Z
2021-12-10T11:52:15.000Z
mujoco/ppo_main.py
mrbermell/seed_rl
9562e178fb8c16d2551d9e5d59594a7f908655dd
[ "Apache-2.0" ]
141
2019-10-14T11:38:25.000Z
2022-02-27T10:36:56.000Z
# coding=utf-8 # Copyright 2019 The SEED Authors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
38.767123
80
0.748057
be6d29424a1823b6f23173b26c2aa298ca7ab03e
369
py
Python
Intro-Bites/101.py
joaopalmeiro/pybites
54a70689c14149a8b927a004e70f1b07642ec766
[ "MIT" ]
null
null
null
Intro-Bites/101.py
joaopalmeiro/pybites
54a70689c14149a8b927a004e70f1b07642ec766
[ "MIT" ]
null
null
null
Intro-Bites/101.py
joaopalmeiro/pybites
54a70689c14149a8b927a004e70f1b07642ec766
[ "MIT" ]
null
null
null
MIN_DRIVING_AGE = 18 def allowed_driving(name, age): """Print '{name} is allowed to drive' or '{name} is not allowed to drive' checking the passed in age against the MIN_DRIVING_AGE constant""" not_str = " " if age >= MIN_DRIVING_AGE else " not " print(f"{name} is{not_str}allowed to drive") allow...
28.384615
77
0.688347
0436d3a43fae5a4664ef8ae9aebe90b696f4d1fa
7,201
py
Python
HoundSploit/searcher/engine/version_comparator.py
nicolas-carolo/houndsplo
a44b02559588ec2ae44af3529cc8a58371fa15c8
[ "BSD-3-Clause" ]
85
2019-12-18T08:11:51.000Z
2022-02-25T05:45:48.000Z
HoundSploit/searcher/engine/version_comparator.py
juan157/houndsploit
12210481d8fa5880265e4b342f816a53d93e4637
[ "BSD-3-Clause" ]
2
2020-04-21T13:33:14.000Z
2020-04-30T12:39:50.000Z
HoundSploit/searcher/engine/version_comparator.py
juan157/houndsploit
12210481d8fa5880265e4b342f816a53d93e4637
[ "BSD-3-Clause" ]
11
2020-04-20T09:49:30.000Z
2022-02-01T15:29:17.000Z
import re from pkg_resources import parse_version def get_num_version(software_name, description): """ Get the number of the version of the software contained in a description of a vulnerability without '<' char. :param software_name: the name of the software we want to get the number of version. :par...
44.177914
120
0.653243
04a1821b1ce755bd4c7dcbb62c71a1f5261819f2
7,206
py
Python
Mac/Modules/res/ressupport.py
deadsnakes/python2.4
f493d5415b662e99a73d017bcafe2148c5bc8fb5
[ "PSF-2.0" ]
null
null
null
Mac/Modules/res/ressupport.py
deadsnakes/python2.4
f493d5415b662e99a73d017bcafe2148c5bc8fb5
[ "PSF-2.0" ]
null
null
null
Mac/Modules/res/ressupport.py
deadsnakes/python2.4
f493d5415b662e99a73d017bcafe2148c5bc8fb5
[ "PSF-2.0" ]
null
null
null
# This script will generate the Resources interface for Python. # It uses the "bgen" package to generate C code. # It execs the file resgen.py which contain the function definitions # (resgen.py was generated by resscan.py, scanning the <Resources.h> header file). from macsupport import * class ResMixIn: def che...
32.459459
106
0.594505
fe388dde68ec4f5245a1d09598f40caf18e35407
6,314
py
Python
gluon/contrib/login_methods/oauth10a_account.py
spiffytech/MobileBlur
f9d2469caa05f0fe5c05c2ec83d1480cf6b770d8
[ "BSD-3-Clause" ]
1
2019-05-16T17:25:57.000Z
2019-05-16T17:25:57.000Z
gluon/contrib/login_methods/oauth10a_account.py
spiffytech/MobileBlur
f9d2469caa05f0fe5c05c2ec83d1480cf6b770d8
[ "BSD-3-Clause" ]
null
null
null
gluon/contrib/login_methods/oauth10a_account.py
spiffytech/MobileBlur
f9d2469caa05f0fe5c05c2ec83d1480cf6b770d8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Written by Michele Comitini <mcm@glisco.it> License: GPL v3 Adds support for OAuth1.0a authentication to web2py. Dependencies: - python-oauth2 (http://github.com/simplegeo/python-oauth2) """ import oauth2 as oauth import cgi from urllib2 import urlopen import ur...
33.057592
146
0.617041
e03dcb8ce21706c05fff84ea41ab08b8bc6175c3
571
py
Python
nlp/Lib/site-packages/spacy/tests/lang/ne/test_text.py
zacandcheese/nsfw-gang
bba0f208780019ca211d9300e76d405ce3882fc0
[ "MIT" ]
null
null
null
nlp/Lib/site-packages/spacy/tests/lang/ne/test_text.py
zacandcheese/nsfw-gang
bba0f208780019ca211d9300e76d405ce3882fc0
[ "MIT" ]
1
2022-02-14T21:09:15.000Z
2022-02-14T21:09:15.000Z
nlp/Lib/site-packages/spacy/tests/lang/ne/test_text.py
zacandcheese/nsfw-gang
bba0f208780019ca211d9300e76d405ce3882fc0
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import pytest def test_ne_tokenizer_handlers_long_text(ne_tokenizer): text = """मैले पाएको सर्टिफिकेटलाई म त बोक्रो सम्झन्छु र अभ्यास तब सुरु भयो, जब मैले कलेज पार गरेँ र जीवनको पढाइ सुरु गरेँ ।""" tokens = ne_tokenizer(text) assert len(tokens) == 2...
30.052632
131
0.633975
e9eb869466d29aea929ed0ed51a6a7e734683777
4,744
py
Python
portfolio/Python/scrapy/sagemcom/curryscouk_sagemcom.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/sagemcom/curryscouk_sagemcom.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
null
null
null
portfolio/Python/scrapy/sagemcom/curryscouk_sagemcom.py
0--key/lib
ba7a85dda2b208adc290508ca617bdc55a5ded22
[ "Apache-2.0" ]
5
2016-03-22T07:40:46.000Z
2021-05-30T16:12:21.000Z
__author__ = 'juraseg' from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from scrapy.http import Request, FormRequest from product_spiders.items import Product, ProductLoader import logging import re class CurrysCoUkSpiderSagemcom(BaseSpider): name = 'currys.co.uk_sagemcom' ...
41.982301
127
0.604553
cb2472aabe4b148f89fea5325a8d3fffbc0b6e23
5,968
py
Python
plugins/pglogical/plugins/pglogical/plugin.py
OmniDB/plugins
2c951f2f0100a551da86714cffde22d2baeef29a
[ "MIT" ]
6
2018-06-09T15:40:30.000Z
2020-03-28T14:41:14.000Z
plugins/pglogical/plugins/pglogical/plugin.py
OmniDB/plugins
2c951f2f0100a551da86714cffde22d2baeef29a
[ "MIT" ]
null
null
null
plugins/pglogical/plugins/pglogical/plugin.py
OmniDB/plugins
2c951f2f0100a551da86714cffde22d2baeef29a
[ "MIT" ]
8
2018-07-27T00:48:05.000Z
2021-07-04T05:48:42.000Z
from . import metadata as metadata def get_pglogical_version(p_database_object, p_data): return { 'pglogical_version': metadata.GetPglogicalVersion(p_database_object) } def get_pglogical_templates(p_database_object, p_data): return { 'pglogical_create_node': metadata.TemplatePglogicalCreateNode(p_data...
46.263566
124
0.702245
d903683fd5d56ac5d7c8a036f7db2df0e592fc1f
839
py
Python
google/colab/_kernel.py
zbkruturaj/colabtools
73c8127fac51ce0509a4a6a994ec64ed5bb70422
[ "Apache-2.0" ]
5
2020-03-08T05:39:03.000Z
2021-10-29T22:40:43.000Z
google/colab/_kernel.py
zbkruturaj/colabtools
73c8127fac51ce0509a4a6a994ec64ed5bb70422
[ "Apache-2.0" ]
null
null
null
google/colab/_kernel.py
zbkruturaj/colabtools
73c8127fac51ce0509a4a6a994ec64ed5bb70422
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.269231
74
0.765197
4e6ef8ebb4ca75246c1cd9f805d0384c9522069c
1,015
py
Python
pymote/utils/visualization.py
darbula/pymote
fd581cc12fcd10beec7e4d72e90bf6250ac17699
[ "BSD-3-Clause" ]
16
2015-01-22T11:52:48.000Z
2021-01-31T23:30:45.000Z
pymote/utils/visualization.py
nkitic/pymote
84d852c922b39afc64950e967b8309ccd8faf6a5
[ "BSD-3-Clause" ]
5
2015-10-30T10:45:04.000Z
2017-06-28T17:42:04.000Z
pymote/utils/visualization.py
nkitic/pymote
84d852c922b39afc64950e967b8309ccd8faf6a5
[ "BSD-3-Clause" ]
17
2015-06-14T08:53:55.000Z
2021-08-25T00:53:07.000Z
from pymote.utils.tree import get_root_node def show_mst(net, treeKey='mst'): """ Show tree representation of network. treeKey -- key in nodes memory (dictionary) where parent and children data is stored in format: {'parent': parent_node, 'childre...
39.038462
73
0.585222
a16af96e25978801c69ceda7070daff0fd9dd1e6
2,037
py
Python
day11.py
mmokko/aoc2017
0732ac440775f9e6bd4a8447c665c9b0e6969f74
[ "MIT" ]
null
null
null
day11.py
mmokko/aoc2017
0732ac440775f9e6bd4a8447c665c9b0e6969f74
[ "MIT" ]
null
null
null
day11.py
mmokko/aoc2017
0732ac440775f9e6bd4a8447c665c9b0e6969f74
[ "MIT" ]
null
null
null
from day11_input import INPUT class Coordinates(object): def __init__(self, x=0, y=0): self.x = x self.y = y def travel(self, direction): if direction == 'n': self.y += 1 elif direction == 'ne': self.y += 1 self.x += 1 elif direction...
24.542169
60
0.517919
14ea378de01c7652a54a0280f040591066c23905
373
py
Python
core/migrations/0002_contato_data.py
capmayer/construameumaponte
2ef44dab8130597f1ff16b32bfbe35ac44761d48
[ "MIT" ]
null
null
null
core/migrations/0002_contato_data.py
capmayer/construameumaponte
2ef44dab8130597f1ff16b32bfbe35ac44761d48
[ "MIT" ]
null
null
null
core/migrations/0002_contato_data.py
capmayer/construameumaponte
2ef44dab8130597f1ff16b32bfbe35ac44761d48
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2019-03-28 15:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.AddField( model_name='contato', name='data', field=m...
19.631579
54
0.58445
5e3ac032966703355ba975cf6e4230084de6fae8
980
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/ATI/vertex_attrib_array_object.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/ATI/vertex_attrib_array_object.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/ATI/vertex_attrib_array_object.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import...
40.833333
128
0.797959
12aeeb883bbb50b230023ccc79a424ef5c1c7157
9,490
py
Python
src/config/utils/provision_control.py
casek14/contrail-controller
18e2572635370b3cb6da2731af049cbeb934f2bb
[ "Apache-2.0" ]
1
2019-01-11T06:16:10.000Z
2019-01-11T06:16:10.000Z
src/config/utils/provision_control.py
casek14/contrail-controller
18e2572635370b3cb6da2731af049cbeb934f2bb
[ "Apache-2.0" ]
null
null
null
src/config/utils/provision_control.py
casek14/contrail-controller
18e2572635370b3cb6da2731af049cbeb934f2bb
[ "Apache-2.0" ]
1
2020-06-08T11:50:36.000Z
2020-06-08T11:50:36.000Z
#!/usr/bin/python # # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # import sys import argparse import ConfigParser from provision_bgp import BgpProvisioner from vnc_api.vnc_api import * class ControlProvisioner(object): def __init__(self, args_str=None): self._args = None if n...
43.53211
124
0.577871
80ac95e83ab7f54b765cdaaed2771acc446cc54b
4,993
py
Python
chumpy/optimization.py
jeffhsu3/chumpy
00e83955ea45cd129d55a3017c08f89045842224
[ "MIT" ]
null
null
null
chumpy/optimization.py
jeffhsu3/chumpy
00e83955ea45cd129d55a3017c08f89045842224
[ "MIT" ]
null
null
null
chumpy/optimization.py
jeffhsu3/chumpy
00e83955ea45cd129d55a3017c08f89045842224
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ __all__ = ['minimize'] import numpy as np from . import ch import scipy.sparse as sp import scipy.optimize from .optimization_internal import minimize_dogleg #from memory_profiler import profile, memory_u...
30.820988
131
0.589425
8c6af9efd2eeade0fe53ab90e047019362d26513
2,608
py
Python
ai_lab/modelloader.py
ZachisGit/MultidirectionalAutoencoders
49257d9912e3de056034bb8315b7b2574cfcb030
[ "Apache-2.0" ]
3
2018-03-29T22:49:37.000Z
2019-01-18T15:13:51.000Z
ai_lab/modelloader.py
ZachisGit/MultidirectionalAutoencoders
49257d9912e3de056034bb8315b7b2574cfcb030
[ "Apache-2.0" ]
null
null
null
ai_lab/modelloader.py
ZachisGit/MultidirectionalAutoencoders
49257d9912e3de056034bb8315b7b2574cfcb030
[ "Apache-2.0" ]
null
null
null
import numpy as numpy import imp from ai_lab import storagemanager as sm ''' load_model(path[string]) Description: Returns the loaded model class, based on the BaseModel (ModelBaseStructure). It should be abstracted from BaseModel, else NotImplemented- Error is raised. model(class): |_ class_name = mo...
20.864
62
0.732362
fde0df824f3f664297d7a9098986cb40c2a45740
6,273
py
Python
railrl/launchers/contextual_env_launcher_util.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
railrl/launchers/contextual_env_launcher_util.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
railrl/launchers/contextual_env_launcher_util.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
from functools import partial import numpy as np import railrl.samplers.rollout_functions as rf import railrl.torch.pytorch_util as ptu from railrl.data_management.contextual_replay_buffer import ( ContextualRelabelingReplayBuffer, SelectKeyFn, ) from railrl.envs.contextual import ContextualEnv from railrl.en...
30.75
84
0.676391
ee8ec999fa8b5c6a1d8c6e509ef788e5072983fd
3,445
py
Python
clients/oathkeeper/python/ory_oathkeeper_client/models/swagger_rule_response.py
russelg/sdk
2515b35981784319bd7d58fcf0b5ab85b501b62f
[ "Apache-2.0" ]
77
2020-02-14T17:27:36.000Z
2022-03-25T08:44:52.000Z
clients/oathkeeper/python/ory_oathkeeper_client/models/swagger_rule_response.py
russelg/sdk
2515b35981784319bd7d58fcf0b5ab85b501b62f
[ "Apache-2.0" ]
125
2020-02-07T21:45:52.000Z
2022-03-31T12:54:24.000Z
clients/oathkeeper/python/ory_oathkeeper_client/models/swagger_rule_response.py
russelg/sdk
2515b35981784319bd7d58fcf0b5ab85b501b62f
[ "Apache-2.0" ]
44
2020-01-31T22:05:47.000Z
2022-03-09T14:41:22.000Z
# coding: utf-8 """ ORY Oathkeeper ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. # noqa: E501 The version of the OpenAPI document: v0.0.0-alpha.37 Contact: hi@ory.am Genera...
28.237705
187
0.583454
fe413fdae7533f0c9f9626347e191dacc0c4e485
28,271
py
Python
Text To Speech/strange_sound.py
poly451/Tutorials
8b6746394a8b651c9b746adae11e768bb9c74a38
[ "MIT" ]
10
2020-10-17T18:40:05.000Z
2022-02-21T17:42:44.000Z
Text To Speech/strange_sound.py
Mimsadi/Tutorials
ffd3b6eba3cecc4c30984cd1b33d7944bb4e0317
[ "MIT" ]
null
null
null
Text To Speech/strange_sound.py
Mimsadi/Tutorials
ffd3b6eba3cecc4c30984cd1b33d7944bb4e0317
[ "MIT" ]
18
2020-10-22T09:00:33.000Z
2022-03-29T17:52:14.000Z
import pyttsx3 import os, sys import utils """ rate — Integer speech rate in words per minute. The base value is 200. voice — String identifier of the active voice volume — Floating point volume in the range of 0.0 to 1.0 inclusive voices — List of pyttsx3.voice.Voice descriptor objects """ # -------------------------...
40.795094
152
0.538113
21ee60fdb68489d8e9e72fc3dfa5d7f95ff73a3a
305
py
Python
.history/ClassFiles/Functions/Functions_20210101230056.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Functions/Functions_20210101230056.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Functions/Functions_20210101230056.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
''' FUNCTIONS Functions are pieces(block) of code that does something. They are reusable. They execute or run when called by thier name. They can have parameters(variables) and arguments(values) They can return data as a result. def function_name(): print("Hello World!") ''' def sum(x,y)
20.333333
57
0.721311
62bfd5b4af628fc92590900f81738e4c5f75056e
1,373
py
Python
tests/test_arithmetic.py
thomasmatecki/parsley
0c51e9c37759fbc1c723519619952248c83e4642
[ "MIT" ]
null
null
null
tests/test_arithmetic.py
thomasmatecki/parsley
0c51e9c37759fbc1c723519619952248c83e4642
[ "MIT" ]
2
2020-03-24T18:30:15.000Z
2020-03-31T10:57:37.000Z
tests/test_arithmetic.py
thomasmatecki/parsley
0c51e9c37759fbc1c723519619952248c83e4642
[ "MIT" ]
null
null
null
from examples.arithmetic import * import pytest @pytest.mark.parametrize( "input_expression,expected_parsed", [("+", ("+",)), ("-", ("-",)), ("*", ("*",)), ("/", ("/",)),], ) def test_operator(input_expression, expected_parsed): parsed, remaining = OPERATOR.match(input_expression) assert parsed == exp...
26.403846
77
0.592862
e37704948b7de91929eecc0139ec204049041653
1,756
py
Python
ci/models/cpu-example/model.py
emattia/sigopt-python
e6b4e5240261ddbdc84a3b4061b8935873612c23
[ "MIT" ]
213
2015-02-24T22:26:46.000Z
2021-11-29T14:17:52.000Z
ci/models/cpu-example/model.py
emattia/sigopt-python
e6b4e5240261ddbdc84a3b4061b8935873612c23
[ "MIT" ]
150
2015-10-22T21:59:37.000Z
2022-03-10T00:55:19.000Z
ci/models/cpu-example/model.py
emattia/sigopt-python
e6b4e5240261ddbdc84a3b4061b8935873612c23
[ "MIT" ]
66
2016-01-01T18:25:11.000Z
2020-10-27T03:07:07.000Z
import sigopt from data_and_model_setup import LoadTransformData, log_inference_metrics import time import platform from xgboost.sklearn import XGBClassifier def train_xgboost_model(dataset, random_state=1): print("loading and transforming data") load_transform_data = LoadTransformData() trainX, testX, tr...
37.361702
102
0.722665
1f049b7ebb0287bf39be52c4c98671cba7b766c8
15,982
py
Python
Plugins/Classes/Weapons.py
bvbohnen/X4_Customizer
6f865008690916a66a44c97331d9a2692baedb35
[ "MIT" ]
25
2018-12-10T12:52:11.000Z
2022-01-29T14:42:57.000Z
Plugins/Classes/Weapons.py
bvbohnen/X4_Customizer
6f865008690916a66a44c97331d9a2692baedb35
[ "MIT" ]
4
2019-08-01T19:09:11.000Z
2022-01-02T01:47:42.000Z
Plugins/Classes/Weapons.py
bvbohnen/X4_Customizer
6f865008690916a66a44c97331d9a2692baedb35
[ "MIT" ]
6
2019-02-16T08:39:04.000Z
2021-12-21T06:11:58.000Z
from .Macro import Macro from .Connection import Connection from .Component import Component from Framework import File_System from .Shared import Physics_Properties __all__ = [ 'Weapon_System', 'Bullet', 'Missile', 'Bomb', 'Mine', ] class Weapon_System(Macro): ''' Weapon system, lin...
45.403409
172
0.534539
c384fde523727d27ee366ee013f08c97e6065bc3
9,685
py
Python
stream_alert/apps/_apps/onelogin.py
opsbay/streamalert
557fb3f604661cdd9bd36486cccc8ce3a34bd1f1
[ "Apache-2.0" ]
7
2018-12-26T14:38:08.000Z
2022-03-09T13:21:00.000Z
stream_alert/apps/_apps/onelogin.py
opsbay/streamalert
557fb3f604661cdd9bd36486cccc8ce3a34bd1f1
[ "Apache-2.0" ]
14
2018-05-09T19:18:15.000Z
2021-06-02T02:34:09.000Z
stream_alert/apps/_apps/onelogin.py
opsbay/streamalert
557fb3f604661cdd9bd36486cccc8ce3a34bd1f1
[ "Apache-2.0" ]
1
2018-12-06T20:51:58.000Z
2018-12-06T20:51:58.000Z
""" Copyright 2017-present, Airbnb Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
37.393822
98
0.575736
6cd5b0f835680a60264aa58f86885e84821beac8
5,583
py
Python
metrics/perplexity/perplexity.py
MitchellTesla/datasets
bf08ea3f95e8209a7afd2b50410ad5db51409d11
[ "Apache-2.0" ]
1
2022-03-22T16:49:47.000Z
2022-03-22T16:49:47.000Z
metrics/perplexity/perplexity.py
MitchellTesla/datasets
bf08ea3f95e8209a7afd2b50410ad5db51409d11
[ "Apache-2.0" ]
null
null
null
metrics/perplexity/perplexity.py
MitchellTesla/datasets
bf08ea3f95e8209a7afd2b50410ad5db51409d11
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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....
36.97351
121
0.617589
ce6d666b6e78b5a16bc11f4ea1e9d2aa076e5151
10,753
py
Python
TrainingHelper.py
meet-minimalist/Learn-pytorch-in-one-example
6a5093b964a5ad756bba5bbc5b6d7613fb8c41e6
[ "MIT" ]
null
null
null
TrainingHelper.py
meet-minimalist/Learn-pytorch-in-one-example
6a5093b964a5ad756bba5bbc5b6d7613fb8c41e6
[ "MIT" ]
null
null
null
TrainingHelper.py
meet-minimalist/Learn-pytorch-in-one-example
6a5093b964a5ad756bba5bbc5b6d7613fb8c41e6
[ "MIT" ]
null
null
null
import os import time import torch import datetime import numpy as np from tqdm import tqdm import torch.nn as nn import torch.nn.functional as F from torchsummary import summary import config from LRHelper import LRHelper from DatasetHelper import get_train_loader, get_test_loader from utils.Logger import Logger fr...
47.791111
161
0.588208
2bbb57c65f3322b61809286a9b09a44b212118cb
2,711
py
Python
formatBibTeXidentifiers.py
LWollatz/mendeley2bibtex
eadda877fc08c51e4572bb7498021fa2e324c050
[ "Apache-2.0" ]
null
null
null
formatBibTeXidentifiers.py
LWollatz/mendeley2bibtex
eadda877fc08c51e4572bb7498021fa2e324c050
[ "Apache-2.0" ]
null
null
null
formatBibTeXidentifiers.py
LWollatz/mendeley2bibtex
eadda877fc08c51e4572bb7498021fa2e324c050
[ "Apache-2.0" ]
null
null
null
def _idgroup(number): first_digit = int(number[0]) if first_digit <= 5 or first_digit == 7: group = number[0] elif first_digit == 6: group = number[:3] elif first_digit == 8: group = number[:2] elif int(number[:3]) == 999: group = number[:5] elif int(number[:2]) =...
27.948454
98
0.533383
7e9a490a8b8446ab33a58c78483e8895717b5867
13,080
py
Python
falkon/kernels/distance_kernel.py
mathurinm/falkon
bb2b3a0f17a3fa5968212d3c1fefb5e1f66257b5
[ "MIT" ]
null
null
null
falkon/kernels/distance_kernel.py
mathurinm/falkon
bb2b3a0f17a3fa5968212d3c1fefb5e1f66257b5
[ "MIT" ]
null
null
null
falkon/kernels/distance_kernel.py
mathurinm/falkon
bb2b3a0f17a3fa5968212d3c1fefb5e1f66257b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 24 21:49:21 2017 @author: alessandro """ import collections import functools import math from abc import ABC, abstractmethod from typing import Optional, Union import torch from falkon.options import BaseOptions, FalkonOptions from falkon.sparse i...
37.053824
99
0.610168
ff6fc7f51343b624f7f43dd1540b445f30178f44
7,099
py
Python
main.py
JamesK2754/DnD-Tool
6603ce9ceee4c05acce0969ce18ae2830a4ea23e
[ "MIT" ]
null
null
null
main.py
JamesK2754/DnD-Tool
6603ce9ceee4c05acce0969ce18ae2830a4ea23e
[ "MIT" ]
null
null
null
main.py
JamesK2754/DnD-Tool
6603ce9ceee4c05acce0969ce18ae2830a4ea23e
[ "MIT" ]
null
null
null
import random import time import os playerls = [] clear = lambda: os.system('clear') print(''' ================= | DnD Dice Tool | | by James King | | MIT Licence | | V2.0 | =================''') time.sleep(2) clear() v = '2.0' vint = int(2) def mainrun(): def set_players(): clear() set...
39.659218
248
0.498098
ad2dfacc4019673d83ddc70bbfbec8409e4ac883
21,799
py
Python
pysoa/test/plugins/pytest/plans.py
viniciusfeitosa/pysoa
925ca0c662f2e2f2943f33f1f30f9aae3742334f
[ "Apache-2.0" ]
null
null
null
pysoa/test/plugins/pytest/plans.py
viniciusfeitosa/pysoa
925ca0c662f2e2f2943f33f1f30f9aae3742334f
[ "Apache-2.0" ]
null
null
null
pysoa/test/plugins/pytest/plans.py
viniciusfeitosa/pysoa
925ca0c662f2e2f2943f33f1f30f9aae3742334f
[ "Apache-2.0" ]
null
null
null
from __future__ import ( absolute_import, unicode_literals, ) from functools import wraps import re import sys from unittest import SkipTest from _pytest._code.code import TracebackEntry from _pytest._code.source import Source from _pytest.mark import MARK_GEN from _pytest.unittest import ( TestCaseFuncti...
39.277477
120
0.647736
55008bea7669fd69649742455c1030199ef14341
4,712
py
Python
mask_word.py
ajitrajasekharan/bert_mask
33c7067134f2696b849fdb273443306026c5527d
[ "MIT" ]
24
2019-12-21T15:08:29.000Z
2022-01-18T16:41:41.000Z
mask_word.py
ajitrajasekharan/bert_mask
33c7067134f2696b849fdb273443306026c5527d
[ "MIT" ]
1
2021-09-06T08:57:35.000Z
2021-09-06T09:52:52.000Z
mask_word.py
ajitrajasekharan/bert_mask
33c7067134f2696b849fdb273443306026c5527d
[ "MIT" ]
7
2019-12-17T17:10:59.000Z
2022-03-02T20:19:05.000Z
import torch from transformers import * import pdb import operator from collections import OrderedDict import sys import traceback import argparse import string import logging DEFAULT_MODEL_PATH='bert-large-cased' DEFAULT_TO_LOWER=False DEFAULT_TOP_K = 20 ACCRUE_THRESHOLD = 1 def init_model(model_path,to_lower): ...
36.246154
371
0.65556
58499abba87c2f1a393c1dfd59e8bac14fe65ef1
228
py
Python
nautobot/core/__init__.py
jfach/nautobot
8965c30ffb0c1ea64f9710eada7fb49a6f2a4b62
[ "Apache-2.0" ]
2
2021-11-01T10:17:02.000Z
2021-11-08T08:35:44.000Z
nautobot/core/__init__.py
jfach/nautobot
8965c30ffb0c1ea64f9710eada7fb49a6f2a4b62
[ "Apache-2.0" ]
null
null
null
nautobot/core/__init__.py
jfach/nautobot
8965c30ffb0c1ea64f9710eada7fb49a6f2a4b62
[ "Apache-2.0" ]
1
2021-02-24T23:02:28.000Z
2021-02-24T23:02:28.000Z
from nautobot.core import checks # This will make sure the celery app is always imported when # Django starts so that shared_task will use this app. from nautobot.core.celery import app as celery_app __all__ = ("celery_app",)
28.5
60
0.785088
5ebd0788482ce9fc7b50c59d3938e84fd63d42fc
210,341
py
Python
scipy/stats/tests/test_stats.py
smola/scipy
ff8b9d9e87a585a820846d7f459d6156ba621c4d
[ "BSD-3-Clause" ]
1
2020-02-26T12:15:51.000Z
2020-02-26T12:15:51.000Z
scipy/stats/tests/test_stats.py
smola/scipy
ff8b9d9e87a585a820846d7f459d6156ba621c4d
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/tests/test_stats.py
smola/scipy
ff8b9d9e87a585a820846d7f459d6156ba621c4d
[ "BSD-3-Clause" ]
null
null
null
""" Test functions for stats module WRITTEN BY LOUIS LUANGKESORN <lluang@yahoo.com> FOR THE STATS MODULE BASED ON WILKINSON'S STATISTICS QUIZ https://www.stanford.edu/~clint/bench/wilk.txt Additional tests by a host of SciPy developers. """ from __future__ import division, print_function, absolute_imp...
40.110793
134
0.575689
e392825d4e8f145ba60f68c71fa81c45971c3b80
13,702
py
Python
tensorflow_federated/python/learning/templates/client_works.py
zhihansh/federated-oss
38cfcb05702ff7297db76d3ccb5f5afef53ca09b
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/templates/client_works.py
zhihansh/federated-oss
38cfcb05702ff7297db76d3ccb5f5afef53ca09b
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/templates/client_works.py
zhihansh/federated-oss
38cfcb05702ff7297db76d3ccb5f5afef53ca09b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
47.248276
87
0.728945
2bcf1ca1dd80c97589d82f7f98dbe0f54e5fed39
1,758
py
Python
package/awesome_panel/application/models/theme.py
Jhsmit/awesome-panel
53f7754f7c505a2666f6724df26c851ae942ec40
[ "Apache-2.0" ]
null
null
null
package/awesome_panel/application/models/theme.py
Jhsmit/awesome-panel
53f7754f7c505a2666f6724df26c851ae942ec40
[ "Apache-2.0" ]
null
null
null
package/awesome_panel/application/models/theme.py
Jhsmit/awesome-panel
53f7754f7c505a2666f6724df26c851ae942ec40
[ "Apache-2.0" ]
null
null
null
"""In this module we implement the Theme Model Use the Theme model to - Provide theming to your Template and Application - implements a custom subclass Theme """ import holoviews as hv import param from bokeh.themes.theme import Theme as BokehTheme from holoviews import Cycle from awesome_panel.applica...
29.79661
99
0.680887
7a768f762c57490b01c8ae32d7ce418b5cb8bb7b
8,174
py
Python
python/GafferUI/ScriptWindow.py
Tuftux/gaffer
5acaf7cbfadbae841dc06854121ca85dcc5c338c
[ "BSD-3-Clause" ]
31
2017-07-10T10:02:07.000Z
2022-02-08T13:54:14.000Z
python/GafferUI/ScriptWindow.py
Tuftux/gaffer
5acaf7cbfadbae841dc06854121ca85dcc5c338c
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/ScriptWindow.py
Tuftux/gaffer
5acaf7cbfadbae841dc06854121ca85dcc5c338c
[ "BSD-3-Clause" ]
3
2017-11-04T15:30:11.000Z
2018-09-25T18:36:11.000Z
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2011-2012, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
34.489451
132
0.729019
7cd8a19e5931c2c6ec4697f9e35b8b07916322f9
9,362
py
Python
python-examples/gui/line-balancing/backend/engine/interface/custom_class_view.py
ggsdc/cornflow-examples
05b4a87eb4dc2389f00f8a9d7f766aef942b9da8
[ "MIT" ]
null
null
null
python-examples/gui/line-balancing/backend/engine/interface/custom_class_view.py
ggsdc/cornflow-examples
05b4a87eb4dc2389f00f8a9d7f766aef942b9da8
[ "MIT" ]
2
2020-10-05T15:08:09.000Z
2021-03-19T23:03:36.000Z
python-examples/gui/line-balancing/backend/engine/interface/custom_class_view.py
ggsdc/cornflow-examples
05b4a87eb4dc2389f00f8a9d7f766aef942b9da8
[ "MIT" ]
1
2020-10-03T20:08:14.000Z
2020-10-03T20:08:14.000Z
from typing import List from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage from rest_framework import status from rest_framework.parsers import JSONParser from rest_framework.response import Response from rest_framework.views import APIView class CustomApiView(APIView): """ Class to han...
44.794258
116
0.657872
dadafacd275a9258feac5beee573c0ce70c0c278
2,066
py
Python
vaccine.py
erik06/CVS-covid-vaccine-checker
d13deabbf47bfc690d530e6d7d14026ca473c6b0
[ "Apache-2.0" ]
null
null
null
vaccine.py
erik06/CVS-covid-vaccine-checker
d13deabbf47bfc690d530e6d7d14026ca473c6b0
[ "Apache-2.0" ]
null
null
null
vaccine.py
erik06/CVS-covid-vaccine-checker
d13deabbf47bfc690d530e6d7d14026ca473c6b0
[ "Apache-2.0" ]
null
null
null
""" This is a python script that requires you have python installed, or in a cloud environment. This script scrapes the CVS website looking for vaccine appointments in the cities you list. To update for your area, update the locations marked with ### below. If you receive an error that says something is not install, ...
30.835821
112
0.626331
4dd923657434f5419bf8f2722f0dc5f5fb100c42
21,885
py
Python
demo.py
kevincao91/kevin.ai.vehicle_detection
fccf0ebb778ff408bc5990ab29b90ee7cb9d97ad
[ "MIT" ]
2
2019-04-24T18:47:45.000Z
2020-07-16T08:08:57.000Z
demo.py
kevincao91/kevin.ai.vehicle_detection
fccf0ebb778ff408bc5990ab29b90ee7cb9d97ad
[ "MIT" ]
null
null
null
demo.py
kevincao91/kevin.ai.vehicle_detection
fccf0ebb778ff408bc5990ab29b90ee7cb9d97ad
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # PyTorch Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Kevin Cao, based on code from Jianwei Yang # -------------------------------------------------------- import _init_paths import os import sys import numpy as np impo...
39.150268
134
0.588714
93282111364942e2989191edf942adc0379d49a4
5,200
py
Python
libp2p/crypto/pb/crypto_pb2.py
g-r-a-n-t/py-libp2p
36a4a9150dcc53b42315b5c6868fccde5083963b
[ "Apache-2.0", "MIT" ]
315
2019-02-13T01:29:09.000Z
2022-03-28T13:44:07.000Z
libp2p/crypto/pb/crypto_pb2.py
pipermerriam/py-libp2p
379a157d6b67e86a616b2458af519bbe5fb26a51
[ "Apache-2.0", "MIT" ]
249
2019-02-22T05:00:07.000Z
2022-03-29T16:30:46.000Z
libp2p/crypto/pb/crypto_pb2.py
ralexstokes/py-libp2p
5144ab82894623969cb17baf0d4c64bd0a274068
[ "Apache-2.0", "MIT" ]
77
2019-02-24T19:45:17.000Z
2022-03-30T03:20:09.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: libp2p/crypto/pb/crypto.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor f...
31.90184
466
0.736538
a20721822c56f15892aa3418261f0c2a69b1e0f5
7,880
py
Python
formal_solver.py
Goobley/Lightspinner
6214e9a3027f8a5aea01038a1524ebff13563258
[ "MIT" ]
6
2020-02-13T11:20:38.000Z
2022-03-01T08:23:44.000Z
formal_solver.py
Goobley/Lightspinner
6214e9a3027f8a5aea01038a1524ebff13563258
[ "MIT" ]
null
null
null
formal_solver.py
Goobley/Lightspinner
6214e9a3027f8a5aea01038a1524ebff13563258
[ "MIT" ]
2
2020-04-10T02:09:59.000Z
2021-11-23T06:52:33.000Z
import numpy as np from numba import njit from dataclasses import dataclass from utils import planck @dataclass class IPsi: """Holder for the I and PsiStar arrays in a single object. """ I: np.ndarray PsiStar: np.ndarray @njit def w2(dtau): """Compute the analytic integration factors w0, w1 for t...
37.169811
118
0.637056
5b0eb627151373b21a3cf00c4a576ddc7f7f7ea0
702
py
Python
parkings/tests/test_models.py
mingfeng/parkkihubi
c817f8e852c1caee969c4ad59f686bf7c1e94526
[ "MIT" ]
1
2021-05-20T13:07:29.000Z
2021-05-20T13:07:29.000Z
parkings/tests/test_models.py
mingfeng/parkkihubi
c817f8e852c1caee969c4ad59f686bf7c1e94526
[ "MIT" ]
null
null
null
parkings/tests/test_models.py
mingfeng/parkkihubi
c817f8e852c1caee969c4ad59f686bf7c1e94526
[ "MIT" ]
null
null
null
import datetime from django.contrib.gis.geos import Point from django.utils.timezone import now from parkings.models import Address, Operator, Parking def test_address_instance_creation(): Address(city="city", postal_code="12345", street="street") def test_operator_instance_creation(): Operator(name="name...
24.206897
62
0.690883
f35e7d39d5995d100fb80b1aea5e5ce012a854a6
799
py
Python
account/migrations/0009_auto_20211023_1816.py
codingwithahmad/tw-clone
9cf4197f40855216a59fbe9d974d5ee9a4863f7f
[ "MIT" ]
null
null
null
account/migrations/0009_auto_20211023_1816.py
codingwithahmad/tw-clone
9cf4197f40855216a59fbe9d974d5ee9a4863f7f
[ "MIT" ]
null
null
null
account/migrations/0009_auto_20211023_1816.py
codingwithahmad/tw-clone
9cf4197f40855216a59fbe9d974d5ee9a4863f7f
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-23 14:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('account', '0008_alter_user_bio'), ] operations = [ migrations.AlterField( ...
30.730769
136
0.667084
50260a5de0aed1764a9e13c9f514a08e0e8e5193
9,193
py
Python
medexbot/spiders/med_spider.py
ahmedshahriar/bd-medicine-scraper
ea97d929fc9cdcbdde2602827cdc3d12709e2ca9
[ "Apache-2.0" ]
1
2022-03-17T03:02:49.000Z
2022-03-17T03:02:49.000Z
medexbot/spiders/med_spider.py
ahmedshahriar/bd-medicine-scraper
ea97d929fc9cdcbdde2602827cdc3d12709e2ca9
[ "Apache-2.0" ]
null
null
null
medexbot/spiders/med_spider.py
ahmedshahriar/bd-medicine-scraper
ea97d929fc9cdcbdde2602827cdc3d12709e2ca9
[ "Apache-2.0" ]
null
null
null
import logging import re import time import scrapy from django.db import IntegrityError from django.utils.text import slugify from crawler.models import Generic, Manufacturer from medexbot.items import MedItem, GenericItem class MedSpider(scrapy.Spider): name = "med" allowed_domains = ['medex.com.bd'] s...
46.903061
113
0.602306
33f4e44f2ba5f4498348527cfad8e0562526616d
401
py
Python
work/Aufgabe10_moc/run_all.py
hobler/miniTopSim
6ead4c5ed9cc1459f019af4bfa899c46c0d2fb22
[ "MIT" ]
16
2016-11-21T13:24:52.000Z
2022-03-24T11:54:50.000Z
work/Aufgabe10_moc/run_all.py
hobler/miniTopSim
6ead4c5ed9cc1459f019af4bfa899c46c0d2fb22
[ "MIT" ]
1
2016-11-29T14:08:33.000Z
2016-11-29T19:12:35.000Z
work/Aufgabe10_moc/run_all.py
hobler/miniTopSim
6ead4c5ed9cc1459f019af4bfa899c46c0d2fb22
[ "MIT" ]
11
2015-11-19T14:29:34.000Z
2021-01-02T14:24:04.000Z
""" Script to run all necessary simulations consecutively """ from mini_topsim.main import mini_topsim mini_topsim('cosine_norm_noredep.cfg') mini_topsim('cosine_moc_noredep.cfg') mini_topsim('cosine_norm_redep.cfg') mini_topsim('cosine_moc_redep.cfg') mini_topsim('gauss_norm_noredep.cfg') mini_topsim('gauss_moc_nor...
26.733333
53
0.825436
403eafc96194607b48d78cb014f0430ccdc13743
4,584
py
Python
mcts.py
polySML/multiobj-rationale
64da1e55120f6224b2b9e9f466c8b2953494446f
[ "MIT" ]
80
2020-07-03T04:30:00.000Z
2022-03-14T10:50:35.000Z
mcts.py
polySML/multiobj-rationale
64da1e55120f6224b2b9e9f466c8b2953494446f
[ "MIT" ]
9
2020-07-08T16:39:56.000Z
2021-11-29T03:40:59.000Z
mcts.py
wengong-jin/multiobj-rationale
7d32f3f7edff69c877fc29d2e469b341aa026005
[ "MIT" ]
24
2020-07-11T17:29:25.000Z
2022-02-03T22:54:06.000Z
import sys import argparse import math from rdkit import Chem from functools import partial from multiprocessing import Pool from fuseprop import find_clusters, extract_subgraph from properties import get_scoring_function MIN_ATOMS = 15 C_PUCT = 10 class MCTSNode(): def __init__(self, smiles, atoms, W=0, N=0, P=...
36.672
112
0.624782
ff6482511d76456e602c08136ad0fadac26bd2e3
440
py
Python
metaci/plan/migrations/0016_plan_test_dashboard.py
abhishekalgo/metaci
cd62473b3fb85fb0f39623f9fb2850993ff708a5
[ "BSD-3-Clause" ]
48
2018-10-24T14:52:06.000Z
2022-03-25T21:14:50.000Z
metaci/plan/migrations/0016_plan_test_dashboard.py
abhishekalgo/metaci
cd62473b3fb85fb0f39623f9fb2850993ff708a5
[ "BSD-3-Clause" ]
2,034
2018-10-31T20:59:16.000Z
2022-03-22T21:38:03.000Z
metaci/plan/migrations/0016_plan_test_dashboard.py
abhishekalgo/metaci
cd62473b3fb85fb0f39623f9fb2850993ff708a5
[ "BSD-3-Clause" ]
27
2018-12-24T18:16:23.000Z
2021-12-15T17:57:27.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-07-23 22:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("plan", "0015_auto_20180314_2252")] operations = [ migrations.AddField( mode...
23.157895
56
0.643182
531d961fe2ba1b320a7ab251bf77e7e5c81f7fc8
1,999
py
Python
pylint/plugins/hass_logger.py
elahd/ha-nyc311
c7555a8af316fc7e44f9a5d794a0872eb534bbe1
[ "MIT" ]
1
2022-02-03T02:12:27.000Z
2022-02-03T02:12:27.000Z
pylint/plugins/hass_logger.py
elahd/ha-nyc311
c7555a8af316fc7e44f9a5d794a0872eb534bbe1
[ "MIT" ]
3
2022-02-04T04:29:34.000Z
2022-02-24T22:23:06.000Z
pylint/plugins/hass_logger.py
elahd/ha-nyc311
c7555a8af316fc7e44f9a5d794a0872eb534bbe1
[ "MIT" ]
null
null
null
"""Plugin for logger invocations.""" import astroid from pylint.checkers import BaseChecker from pylint.interfaces import IAstroidChecker from pylint.lint import PyLinter LOGGER_NAMES = ("LOGGER", "log") LOG_LEVEL_ALLOWED_LOWER_START = ("debug",) class HassLoggerFormatChecker(BaseChecker): # type: ignore[misc] ...
28.971014
98
0.614307
f5ee537fbbf5d97712abe290f36d2d13dd360b6d
3,983
py
Python
tests/func/params/test_diff.py
nickdelgrosso/dvc
8d9435e8ee99b9899cd8d3277ea8cae8cc281154
[ "Apache-2.0" ]
null
null
null
tests/func/params/test_diff.py
nickdelgrosso/dvc
8d9435e8ee99b9899cd8d3277ea8cae8cc281154
[ "Apache-2.0" ]
null
null
null
tests/func/params/test_diff.py
nickdelgrosso/dvc
8d9435e8ee99b9899cd8d3277ea8cae8cc281154
[ "Apache-2.0" ]
null
null
null
def test_diff_no_params(tmp_dir, scm, dvc): assert dvc.params.diff() == {} def test_diff_no_changes(tmp_dir, scm, dvc): tmp_dir.gen("params.yaml", "foo: bar") dvc.run(cmd="echo params.yaml", params=["foo"], single_stage=True) scm.add(["params.yaml", "Dvcfile"]) scm.commit("bar") assert dvc.par...
29.947368
76
0.589254
8f8aff94a598a52320679c7051f303b58a09a785
4,033
py
Python
redash/query_runner/impala_ds.py
louis-xy/redash
36c93ce2120e15d63aff4047bb464cdc41052e19
[ "BSD-2-Clause" ]
6
2017-04-14T14:06:37.000Z
2018-09-07T06:29:27.000Z
redash/query_runner/impala_ds.py
louis-xy/redash
36c93ce2120e15d63aff4047bb464cdc41052e19
[ "BSD-2-Clause" ]
1
2021-02-24T04:38:42.000Z
2021-02-24T04:38:42.000Z
redash/query_runner/impala_ds.py
louis-xy/redash
36c93ce2120e15d63aff4047bb464cdc41052e19
[ "BSD-2-Clause" ]
2
2017-04-02T08:28:53.000Z
2021-01-26T09:50:03.000Z
import json import logging import sys from redash.query_runner import * from redash.utils import JSONEncoder logger = logging.getLogger(__name__) try: from impala.dbapi import connect from impala.error import DatabaseError, RPCError enabled = True except ImportError, e: enabled = False COLUMN_NAME =...
28.006944
130
0.517233