hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
9074de3f83ee966f855beab49a5bcaa9e931a4c8
163
py
Python
data-detective-airflow/dags/dags/dummy_elt_etl/code/code.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
5
2021-12-01T09:55:23.000Z
2021-12-21T16:23:33.000Z
data-detective-airflow/dags/dags/dummy_elt_etl/code/code.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
1
2021-11-16T15:55:34.000Z
2021-11-16T15:55:34.000Z
data-detective-airflow/dags/dags/dummy_elt_etl/code/code.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
2
2021-11-03T09:43:09.000Z
2021-11-17T10:16:29.000Z
from pandas import DataFrame def etl(_context, elt: DataFrame) -> DataFrame: out_df = elt.copy() out_df['test1'] = out_df['test1'] * 3 return out_df
20.375
47
0.662577
8d719753d12a2ae64c4a8d5b4c52b2aaab1e4193
1,162
py
Python
speech/cloud-client/transcribe_async_test.py
alaquitara/pythonDocs
705a386a51b35983ed0955b81b63ecae74b1e5c9
[ "Apache-2.0" ]
null
null
null
speech/cloud-client/transcribe_async_test.py
alaquitara/pythonDocs
705a386a51b35983ed0955b81b63ecae74b1e5c9
[ "Apache-2.0" ]
null
null
null
speech/cloud-client/transcribe_async_test.py
alaquitara/pythonDocs
705a386a51b35983ed0955b81b63ecae74b1e5c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2016, Google, Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.277778
78
0.7358
b2037a31be6279ff5a60e9349c1de13148ee2a18
170
py
Python
Curso_Coursera/Ex4_FizzBuzzParcial_Parte3.py
shirleyguimaraes/Linguagem_Python
cb8b871ee4fe85f803c35bfe55ce533cab8150fb
[ "MIT" ]
null
null
null
Curso_Coursera/Ex4_FizzBuzzParcial_Parte3.py
shirleyguimaraes/Linguagem_Python
cb8b871ee4fe85f803c35bfe55ce533cab8150fb
[ "MIT" ]
null
null
null
Curso_Coursera/Ex4_FizzBuzzParcial_Parte3.py
shirleyguimaraes/Linguagem_Python
cb8b871ee4fe85f803c35bfe55ce533cab8150fb
[ "MIT" ]
null
null
null
def main(): n = int(input("Digite um número inteiro: ")) if n % 3 == 0 and n % 5 == 0: print("FizzBuzz") else: print(n) main()
14.166667
49
0.441176
7bdbbc159874b69df5ec03e519d730d12945cbb2
2,198
py
Python
app/tests/jqfileupload_tests/utils.py
Tommos0/grand-challenge.org
187cd857f6a7c9651b7bda8c42c54801f071dd7c
[ "Apache-2.0" ]
null
null
null
app/tests/jqfileupload_tests/utils.py
Tommos0/grand-challenge.org
187cd857f6a7c9651b7bda8c42c54801f071dd7c
[ "Apache-2.0" ]
null
null
null
app/tests/jqfileupload_tests/utils.py
Tommos0/grand-challenge.org
187cd857f6a7c9651b7bda8c42c54801f071dd7c
[ "Apache-2.0" ]
null
null
null
import os import time import random from django.test import RequestFactory def load_test_data(): with open( os.path.join(os.path.dirname(__file__), "testdata", "rnddata"), "rb" ) as f: return f.read() def generate_new_upload_id(sender, content): return f"{id(sender)}_{hash(content)}_{ti...
25.55814
76
0.622384
8ac8d59facc83449d47c278d4ffdd930e83e44c2
222
py
Python
sptm/__init__.py
Rochan-A/sptm
cd8f2ac6936403c43079987308a9cc12a16e51c0
[ "MIT" ]
8
2018-07-18T09:54:52.000Z
2020-06-22T14:20:31.000Z
sptm/__init__.py
Rochan-A/sptm
cd8f2ac6936403c43079987308a9cc12a16e51c0
[ "MIT" ]
1
2019-11-21T10:00:45.000Z
2021-12-23T21:31:03.000Z
sptm/__init__.py
Rochan-A/sptm
cd8f2ac6936403c43079987308a9cc12a16e51c0
[ "MIT" ]
4
2020-04-21T12:53:20.000Z
2021-06-21T23:55:25.000Z
from .model import Model, ModelVanilla from .postprocess import TopicDistanceMap from .preprocess import Corpus from .utils import force_unicode from .conditional import ConditionalMatrix from .inference import Inferencer
31.714286
42
0.855856
2437e7bdfca1e23bca43755a5eea0c036a691d20
3,523
py
Python
smoke/utils/model_serialization.py
dashidhy/SMOKE
724876443db90bbdca8f942515e881993b3f47b2
[ "MIT" ]
5
2020-08-28T23:38:39.000Z
2020-08-31T17:00:56.000Z
smoke/utils/model_serialization.py
Jike-u/SMOKE
724876443db90bbdca8f942515e881993b3f47b2
[ "MIT" ]
null
null
null
smoke/utils/model_serialization.py
Jike-u/SMOKE
724876443db90bbdca8f942515e881993b3f47b2
[ "MIT" ]
3
2020-08-28T23:51:34.000Z
2021-04-18T03:32:39.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from collections import OrderedDict import logging import torch def align_and_update_state_dicts(model_state_dict, loaded_state_dict): """ Strategy: suppose that the models that we will create will have prefixes appended to each of i...
42.963415
91
0.697417
fb1c248c7a2be877b0ee6752ccb6f1e32d3f1f5d
4,156
py
Python
VTdyn/libs/pd_lib_neutral.py
jessiesrr/evo-epithelium
c3d7409d7889187abfda8c3e708b778afee6461a
[ "MIT" ]
1
2020-06-02T06:37:50.000Z
2020-06-02T06:37:50.000Z
VTdyn/libs/pd_lib_neutral.py
jessiesrr/evo-epithelium
c3d7409d7889187abfda8c3e708b778afee6461a
[ "MIT" ]
null
null
null
VTdyn/libs/pd_lib_neutral.py
jessiesrr/evo-epithelium
c3d7409d7889187abfda8c3e708b778afee6461a
[ "MIT" ]
null
null
null
import os import sys import numpy as np import itertools import structure from structure.global_constants import T_D,dt from structure.cell import Tissue, BasicSpringForceNoGrowth import structure.initialisation as init def run(tissue_original,simulation,N_step,skip): """run a given simulation for N_step ...
55.413333
274
0.625361
bdfe8115fa271931f662101fcaa4047f5164b887
198
py
Python
data.py
bremersj/error-coding
be49f1c305231ca3aedecb4c06b6f222f73252c4
[ "Apache-2.0" ]
null
null
null
data.py
bremersj/error-coding
be49f1c305231ca3aedecb4c06b6f222f73252c4
[ "Apache-2.0" ]
null
null
null
data.py
bremersj/error-coding
be49f1c305231ca3aedecb4c06b6f222f73252c4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Nov 11 22:24:29 2017 @author: steve """ def get_data(file_name): with open (file_name, 'r') as f: data = f.read().splitlines() return data
18
36
0.59596
0f4e03db23ba51e08b136051191fdfa63c68c0ab
3,637
py
Python
pymusicterm/__init__.py
EGAMAGZ/Terminal-Music-Player
fc5ce7d9cef6ee98f2dde1784d363a8002584d96
[ "MIT" ]
2
2020-07-12T20:43:06.000Z
2020-08-07T06:16:12.000Z
pymusicterm/__init__.py
EGAMAGZ/Terminal-Music-Player
fc5ce7d9cef6ee98f2dde1784d363a8002584d96
[ "MIT" ]
null
null
null
pymusicterm/__init__.py
EGAMAGZ/Terminal-Music-Player
fc5ce7d9cef6ee98f2dde1784d363a8002584d96
[ "MIT" ]
null
null
null
import curses from pymusicterm.ui.widget_set import CustomWidgetSet import py_cui import platform import argparse import pymusicterm.ui as ui from pymusicterm.ui.progressbar import LoadingBarWidget from pymusicterm.ui.windows import LocalPlayerWindow from pymusicterm.util.system import on_wsl __version__='0.0.4' cla...
33.675926
135
0.622491
d762aa2033162ec6f2948e62f988af6ea09635d0
342
py
Python
xldlib/objects/chemical/__init__.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
xldlib/objects/chemical/__init__.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
xldlib/objects/chemical/__init__.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
''' Objects/Chemical ________________ Chemical definitions and objects, for modifications and chemical formula parsers. :copyright: (c) 2015 The Regents of the University of California. :license: GNU GPL, see licenses/GNU GPLv3.txt for more details. ''' from .isobaric import Isobaric __all__...
20.117647
69
0.707602
4057a4acfcd8841432d0d400b134fdd543342bb4
2,482
py
Python
timemachines/skatertools/visualization/priorplot.py
wx-b/timemachines
5ab914adf265928eda26ca637881d6ccd5e794a9
[ "MIT" ]
null
null
null
timemachines/skatertools/visualization/priorplot.py
wx-b/timemachines
5ab914adf265928eda26ca637881d6ccd5e794a9
[ "MIT" ]
null
null
null
timemachines/skatertools/visualization/priorplot.py
wx-b/timemachines
5ab914adf265928eda26ca637881d6ccd5e794a9
[ "MIT" ]
null
null
null
import numpy as np from timemachines.skatertools.data.synthetic import brownian_with_exogenous, brownian_with_noise from timemachines.skating import prior from timemachines.skatertools.utilities.conventions import wrap # Quick ways to inspect skaters try: import matplotlib.pyplot as plt using_matplotlib = Tr...
28.204545
105
0.616035
cd4e23572ca6a33bee23824edf65d1a45d3934c3
1,429
py
Python
neighbour/models.py
Eccie-K/neighbour-hood
f874f9468160aa34dee294d685374e4c5e2eec4d
[ "MIT" ]
null
null
null
neighbour/models.py
Eccie-K/neighbour-hood
f874f9468160aa34dee294d685374e4c5e2eec4d
[ "MIT" ]
4
2020-06-05T23:21:40.000Z
2021-06-10T21:57:32.000Z
neighbour/models.py
Eccie-K/neighbour-hood
f874f9468160aa34dee294d685374e4c5e2eec4d
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from smartfields import fields from django.utils import timezone from django.conf import settings # Create your models here. class Hood(models.Model): name = models.CharField(max_length=40, null...
30.404255
73
0.709587
e1b7a0517a4666f8ce618750426984d9f5fba40d
4,502
py
Python
pymoo/problems/multi/zdt.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
762
2018-06-05T20:56:09.000Z
2021-09-14T09:09:42.000Z
pymoo/problems/multi/zdt.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
176
2018-09-05T18:37:05.000Z
2021-09-14T01:18:43.000Z
pymoo/problems/multi/zdt.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
160
2018-08-05T05:31:20.000Z
2021-09-14T09:09:45.000Z
import autograd.numpy as anp from pymoo.core.problem import Problem from pymoo.util.normalization import normalize class ZDT(Problem): def __init__(self, n_var=30, **kwargs): super().__init__(n_var=n_var, n_obj=2, n_constr=0, xl=0, xu=1, type_var=anp.double, **kwargs) class ZDT1(ZDT): def _calc_p...
30.013333
101
0.507774
a338655fb4008c08c08494f5ad77c2348509b309
3,738
py
Python
tensorflow_graphics/rendering/interpolate.py
Liang813/graphics
71ab1775228a0a292427551350cbb62bfa8bd01a
[ "Apache-2.0" ]
2,759
2019-01-08T10:40:34.000Z
2022-03-28T13:49:37.000Z
tensorflow_graphics/rendering/interpolate.py
Liang813/graphics
71ab1775228a0a292427551350cbb62bfa8bd01a
[ "Apache-2.0" ]
262
2019-04-28T12:25:49.000Z
2022-03-24T19:35:15.000Z
tensorflow_graphics/rendering/interpolate.py
Liang813/graphics
71ab1775228a0a292427551350cbb62bfa8bd01a
[ "Apache-2.0" ]
380
2019-05-09T00:14:45.000Z
2022-03-31T12:48:25.000Z
# Copyright 2020 The TensorFlow 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
42.965517
80
0.742911
27553b7ccddb82c382eb5b82e7a2bec918fef80a
1,474
py
Python
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/check_name_availability_parameters.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/check_name_availability_parameters.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/check_name_availability_parameters.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# 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 ...
33.5
76
0.612619
49508feeb8c74e8999ebf793576342b8391aba8d
1,293
py
Python
run_tests.py
rackerlabs/Tempo
60c2adaf5b592ae171987b999e0b9cc46b80c54e
[ "Apache-2.0" ]
4
2015-04-26T01:46:51.000Z
2020-11-10T13:07:59.000Z
run_tests.py
rackerlabs/Tempo
60c2adaf5b592ae171987b999e0b9cc46b80c54e
[ "Apache-2.0" ]
null
null
null
run_tests.py
rackerlabs/Tempo
60c2adaf5b592ae171987b999e0b9cc46b80c54e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2011 Rackspace # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
33.153846
77
0.651972
53af42c073f835a5edd7774c11685d22c219f9ff
8,145
py
Python
cmip6_preprocessing/recreate_grids.py
AndrewWilliams3142/cmip6_preprocessing
8cdd02de9fa35b373be5a66da9bc481ca3a6aaa8
[ "MIT" ]
null
null
null
cmip6_preprocessing/recreate_grids.py
AndrewWilliams3142/cmip6_preprocessing
8cdd02de9fa35b373be5a66da9bc481ca3a6aaa8
[ "MIT" ]
null
null
null
cmip6_preprocessing/recreate_grids.py
AndrewWilliams3142/cmip6_preprocessing
8cdd02de9fa35b373be5a66da9bc481ca3a6aaa8
[ "MIT" ]
1
2022-03-08T11:34:01.000Z
2022-03-08T11:34:01.000Z
from xgcm.autogenerate import generate_grid_ds import xarray as xr import numpy as np from xgcm import Grid import pyproj import matplotlib.pyplot as plt # now sort all other variables in accordingly def rename(da, da_tracer, da_u, da_v, grid_type, position, verbose=False): # check with which variable the lon and ...
32.975709
100
0.527072
fcba7dfdf4e941c73a9b355d71cfd362eed38c37
4,452
py
Python
statsmodels/tools/tests/test_eval_measures.py
peterprescott/statsmodels
7c4a71e8d16618315b7370c88212aa2a4f358270
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tools/tests/test_eval_measures.py
peterprescott/statsmodels
7c4a71e8d16618315b7370c88212aa2a4f358270
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tools/tests/test_eval_measures.py
peterprescott/statsmodels
7c4a71e8d16618315b7370c88212aa2a4f358270
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 08 22:28:48 2011 @author: josef """ import pytest import numpy as np from numpy.testing import assert_equal, assert_almost_equal from statsmodels.tools.eval_measures import ( maxabs, meanabs, medianabs, medianbias, mse, rmse, rmspe, vare, aic, aic_sigma, aicc, a...
33.984733
75
0.524933
62ad2838ac11a75391704106b03ffa66919bfa75
797
py
Python
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spynnaker_extra_pynn_models/neuron/plasticity/stdp/synapse_structure/synapse_structure_weight_accumulator.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
2
2020-11-01T13:22:11.000Z
2020-11-01T13:22:20.000Z
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spynnaker_extra_pynn_models/neuron/plasticity/stdp/synapse_structure/synapse_structure_weight_accumulator.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spynnaker_extra_pynn_models/neuron/plasticity/stdp/synapse_structure/synapse_structure_weight_accumulator.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
from spynnaker.pyNN.models.neuron.plasticity.stdp.synapse_structure.\ abstract_synapse_structure import AbstractSynapseStructure import numpy class SynapseStructureWeightAccumulator(AbstractSynapseStructure): def __init__(self): AbstractSynapseStructure.__init__(self) def get_n_bytes_per_connect...
33.208333
75
0.685069
2c071f7cf213964d99688c89254b543e06f418ce
692
py
Python
app/database/model.py
Dimas4/Web-Crawler-API-Flask
9b6a787be9abdb4391a2c1be81268ddec79a58dd
[ "MIT" ]
null
null
null
app/database/model.py
Dimas4/Web-Crawler-API-Flask
9b6a787be9abdb4391a2c1be81268ddec79a58dd
[ "MIT" ]
null
null
null
app/database/model.py
Dimas4/Web-Crawler-API-Flask
9b6a787be9abdb4391a2c1be81268ddec79a58dd
[ "MIT" ]
null
null
null
import pathlib from app.create_app.create import app from flask_sqlalchemy import SQLAlchemy path = pathlib.Path(__file__).parent.parent.parent app.config['SQLALCHEMY_DATABASE_URI'] = app.config['SQLALCHEMY_DATABASE_URI'].format(path=path) db = SQLAlchemy(app) class Emails(db.Model): token = db.Column(db.St...
21.625
95
0.708092
162745cb5cf8550092563a2fa900768c3ed97e8a
612
py
Python
app/event/migrations/0042_auto_20170819_0238.py
Sovol2018/sovolo
54250e42b4af3391d2f99690f45b93ab240563c2
[ "MIT" ]
2
2017-06-06T11:34:49.000Z
2017-10-24T13:09:50.000Z
app/event/migrations/0042_auto_20170819_0238.py
Sovol2018/sovolo
54250e42b4af3391d2f99690f45b93ab240563c2
[ "MIT" ]
346
2016-08-09T20:50:57.000Z
2018-08-28T06:52:17.000Z
app/event/migrations/0042_auto_20170819_0238.py
hejob/sovolo
8b73253d7bf0427c7ae0ebb6d8e3d70e118e8427
[ "MIT" ]
3
2017-11-27T14:07:57.000Z
2018-08-13T15:51:01.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-18 17:38 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('event', '0041_auto_20170819_0237'), ] operations = [ migrations.AlterField(...
23.538462
54
0.591503
997eb5b3fe15f9759c4a47c236f586961a6c0ec7
3,745
py
Python
mango/tokenlookup.py
neilfutureftr/mango-explorer
d8d5740cc53da90414323e8f62f5b6fbfc6ea5ed
[ "MIT" ]
1
2021-09-09T20:49:46.000Z
2021-09-09T20:49:46.000Z
mango/tokenlookup.py
neilfutureftr/mango-explorer
d8d5740cc53da90414323e8f62f5b6fbfc6ea5ed
[ "MIT" ]
null
null
null
mango/tokenlookup.py
neilfutureftr/mango-explorer
d8d5740cc53da90414323e8f62f5b6fbfc6ea5ed
[ "MIT" ]
2
2021-09-09T20:49:50.000Z
2021-11-05T21:41:41.000Z
# # ⚠ Warning # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT # LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIA...
32.284483
106
0.67717
4b54a84ad4cc920701e4721cda3fef80edbfd26f
13,959
py
Python
Verworfen/~mlb_easy_merge.py
timucini/MLB-DeepLearning-Project
2737e9cd32edefec8ec935f304d04206264ce349
[ "MIT" ]
null
null
null
Verworfen/~mlb_easy_merge.py
timucini/MLB-DeepLearning-Project
2737e9cd32edefec8ec935f304d04206264ce349
[ "MIT" ]
null
null
null
Verworfen/~mlb_easy_merge.py
timucini/MLB-DeepLearning-Project
2737e9cd32edefec8ec935f304d04206264ce349
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from pathlib import Path from datetime import datetime as dt def mergeManagers(managers, gameLogs): #Sum up doubled data managers = managers.groupby(['yearID','playerID'], as_index=False)['Games','Wins','Losses'].sum() #Get visiting managers visitingManagers ...
66.471429
165
0.633355
37f50f548d66585dc0603aec4b19fe8c95b75a8c
131
py
Python
src/ghhops-server-py/ghhops_server/logger.py
talebia/compute.rhino3d
f787db0f15d6557491094a3e9daa2d87bc4e5f6a
[ "MIT" ]
182
2018-05-15T16:26:55.000Z
2022-03-27T09:54:57.000Z
src/ghhops-server-py/ghhops_server/logger.py
harrywuhust2022/compute.rhino3d
56195809db655fe940dcdf5fae1f6c228eddcf60
[ "MIT" ]
202
2018-10-13T20:40:22.000Z
2022-03-26T16:35:28.000Z
src/ghhops-server-py/ghhops_server/logger.py
harrywuhust2022/compute.rhino3d
56195809db655fe940dcdf5fae1f6c228eddcf60
[ "MIT" ]
143
2018-06-06T15:40:53.000Z
2022-03-25T04:55:39.000Z
import logging logging.basicConfig(format="[%(levelname)s] %(message)s", level=logging.DEBUG) hlogger = logging.getLogger("Hops")
26.2
78
0.755725
f66bd2cc0434fdaf2a75d53d1a9ed4b57e6cd520
1,037
py
Python
kubernetes/test/test_authentication_v1_api.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_authentication_v1_api.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_authentication_v1_api.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
1
2019-01-10T11:13:52.000Z
2019-01-10T11:13:52.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
19.566038
105
0.683703
1f45f70d6461f489867d37151494677057e855c1
228
py
Python
python/Palindrome_Number_Or_Not.py
maneeshhm/helloAlgorithm
abd1553b25d2aaedac366fd318f3d3200ad173ae
[ "MIT" ]
4
2020-10-18T05:38:31.000Z
2021-10-21T04:52:09.000Z
python/Palindrome_Number_Or_Not.py
maneeshhm/helloAlgorithm
abd1553b25d2aaedac366fd318f3d3200ad173ae
[ "MIT" ]
52
2020-10-18T04:53:22.000Z
2021-10-30T14:19:03.000Z
python/Palindrome_Number_Or_Not.py
maneeshhm/helloAlgorithm
abd1553b25d2aaedac366fd318f3d3200ad173ae
[ "MIT" ]
43
2020-10-18T05:23:42.000Z
2021-10-30T23:54:43.000Z
num = int (input ("Enter number")) temp = num rev =0 while (num > 0): rem = num % 10 rev = (rev*10) + rem num = num//10 if (temp == rev): print ("It's a palindrome") else: print("It's not a palindrome")
17.538462
34
0.539474
c7fccca0fa0a6e2e31fa7c41a989a5c9ffe40005
4,127
py
Python
src/moca_modules/moca_share/MocaSharedMemory.py
el-ideal-ideas/MocaTwitterUtils
544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3
[ "MIT" ]
null
null
null
src/moca_modules/moca_share/MocaSharedMemory.py
el-ideal-ideas/MocaTwitterUtils
544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3
[ "MIT" ]
null
null
null
src/moca_modules/moca_share/MocaSharedMemory.py
el-ideal-ideas/MocaTwitterUtils
544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3
[ "MIT" ]
null
null
null
# -- Imports -------------------------------------------------------------------------- from typing import ( Optional, Any, Callable ) from copy import copy from multiprocessing import Manager from .MocaMultiProcessLock import MocaMultiProcessLock # ----------------------------------------------------------------...
36.201754
103
0.537194
efa0f2d504d6c8ca98b22f7e79649bf5bb8a5d91
2,994
py
Python
PyPoll/main.py
danielchenDA/python-challenge
7f956c54335afd01a5d83eea35c786557472a714
[ "ADSL" ]
null
null
null
PyPoll/main.py
danielchenDA/python-challenge
7f956c54335afd01a5d83eea35c786557472a714
[ "ADSL" ]
null
null
null
PyPoll/main.py
danielchenDA/python-challenge
7f956c54335afd01a5d83eea35c786557472a714
[ "ADSL" ]
null
null
null
# Import Dependencies import csv import os # assign variables win_votes = 0 election_data_dict = {} total_votes = 0 candidate_holder = "" winner = "" vote_holder = 0 # assign csv file path to a variable election_data_path = os.path.join('..','PyPoll','election_data.csv') # open csv file using csvreader with open(ele...
35.223529
92
0.573814
8ed9ae791922d15f23463649bdf05f43bb7bdd80
363
py
Python
List/ListSlicing.py
poojavaibhavsahu/Pooja_Python
58122bfa8586883145042b11fe1cc013c803ab4f
[ "bzip2-1.0.6" ]
null
null
null
List/ListSlicing.py
poojavaibhavsahu/Pooja_Python
58122bfa8586883145042b11fe1cc013c803ab4f
[ "bzip2-1.0.6" ]
null
null
null
List/ListSlicing.py
poojavaibhavsahu/Pooja_Python
58122bfa8586883145042b11fe1cc013c803ab4f
[ "bzip2-1.0.6" ]
null
null
null
list1=[1,2,4,5,6] print(list1[0:2]) print(list1[4]) list1[1]=9 print(list1) # adds data in a particular position #updating in list names=['Kiran','Ravi',1996,2001] print(names) print("Value at index 2",names[2]) names[2]=2013 print("New Value at index 2 now" , names[2]) print(names) print(names[:2]) print(names[1...
15.125
49
0.672176
52a0475ef115cd3222986b13693236bac97e410b
1,324
py
Python
validation_tests/py-libensemble/calling_script.py
brugger1/testsuite
9b504db668cdeaf7c561f15b76c95d05bfdd1517
[ "MIT" ]
12
2019-02-12T18:20:29.000Z
2021-12-09T19:46:19.000Z
validation_tests/py-libensemble/calling_script.py
brugger1/testsuite
9b504db668cdeaf7c561f15b76c95d05bfdd1517
[ "MIT" ]
24
2020-08-31T22:05:07.000Z
2022-02-21T18:30:03.000Z
validation_tests/py-libensemble/calling_script.py
brugger1/testsuite
9b504db668cdeaf7c561f15b76c95d05bfdd1517
[ "MIT" ]
19
2020-08-31T21:59:10.000Z
2022-02-23T22:06:46.000Z
import numpy as np from libensemble.libE import libE from generator import gen_random_sample from simulator import sim_find_sine from libensemble.tools import add_unique_random_streams nworkers = 4 libE_specs = {'nworkers': nworkers, 'comms': 'local'} gen_specs = {'gen_f': gen_random_sample, # Our generator fu...
34.842105
85
0.60574
78965ad8ae8f2ad03fc9bd5971a061c7a17c99c0
1,843
py
Python
StoryTellingGame/util/db.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
StoryTellingGame/util/db.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
2
2017-10-26T16:52:58.000Z
2017-11-01T16:58:52.000Z
StoryTellingGame/util/db.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
import sqlite3 import threading class Database(object): """Database wrapper.""" def __init__(self, path, debug=False): # type: (str) -> None self.path = path self.conn = sqlite3.connect(path, check_same_thread=False) # mulithreading is only safe when Database.lock()...
27.102941
95
0.53554
65553c83da8ad061ec5cf38c4333751563450665
2,853
py
Python
settings.py
tsuyukimakoto/djblackhole
ce298d81bccffc48e78e9694fbe1d19e8eedfe39
[ "BSD-3-Clause" ]
null
null
null
settings.py
tsuyukimakoto/djblackhole
ce298d81bccffc48e78e9694fbe1d19e8eedfe39
[ "BSD-3-Clause" ]
null
null
null
settings.py
tsuyukimakoto/djblackhole
ce298d81bccffc48e78e9694fbe1d19e8eedfe39
[ "BSD-3-Clause" ]
null
null
null
# Django settings for djblackhole project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_...
33.964286
99
0.704171
978554e9aaff5c755589b801f7fd97a1b04afe6e
54,573
py
Python
tensorflow/python/ops/array_ops.py
StryxZilla/tensor
ae5cc4cc3e6b2fb19e79ba61d1f761f919ed110c
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/array_ops.py
StryxZilla/tensor
ae5cc4cc3e6b2fb19e79ba61d1f761f919ed110c
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/array_ops.py
StryxZilla/tensor
ae5cc4cc3e6b2fb19e79ba61d1f761f919ed110c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.776577
86
0.661994
d959f1a259e55a813988bd408ee5f95fa9f178c1
3,928
py
Python
benchmark/startQiskit_noisy2592.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy2592.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy2592.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=28 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
33.862069
140
0.65224
af06319c57455ca58025ffee4c36a288d040ee4c
3,511
py
Python
mylib/keras_to_gluon.py
duducheng/deeplabv3p_gluon
fd8e3e8d834838a9a221785b825499c62cee578f
[ "Apache-2.0" ]
66
2018-07-20T04:01:41.000Z
2021-11-08T10:40:49.000Z
mylib/keras_to_gluon.py
duducheng/deeplabv3p_gluon
fd8e3e8d834838a9a221785b825499c62cee578f
[ "Apache-2.0" ]
6
2018-08-16T08:06:39.000Z
2020-11-28T13:07:21.000Z
mylib/keras_to_gluon.py
duducheng/deeplabv3p_gluon
fd8e3e8d834838a9a221785b825499c62cee578f
[ "Apache-2.0" ]
11
2018-07-20T18:00:29.000Z
2020-04-28T15:21:58.000Z
from tqdm import tqdm import keras.backend as K def get_gpu_session(ratio=None, interactive=False): config = K.tf.ConfigProto(allow_soft_placement=True) if ratio is None: config.gpu_options.allow_growth = True else: config.gpu_options.per_process_gpu_memory_fraction = ratio if interact...
36.957895
70
0.621191
701509c0957c8dd1898930338655574097e23647
61
py
Python
Python/Strings/capitalize.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Strings/capitalize.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Strings/capitalize.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
print(' '.join([i.capitalize() for i in input().split(' ')]))
61
61
0.590164
abffa95def0207a1e3a962574d790fc01bd5de6f
951
py
Python
flamingo/plugins/yaml.py
rohieb/flamingo
5212a1c201144715ff47c94e8e7724f5304be5c1
[ "Apache-2.0" ]
null
null
null
flamingo/plugins/yaml.py
rohieb/flamingo
5212a1c201144715ff47c94e8e7724f5304be5c1
[ "Apache-2.0" ]
null
null
null
flamingo/plugins/yaml.py
rohieb/flamingo
5212a1c201144715ff47c94e8e7724f5304be5c1
[ "Apache-2.0" ]
null
null
null
from flamingo.core.parser import ContentParser class YamlParser(ContentParser): FILE_EXTENSIONS = ['yaml'] """ This parser can be used to load files that do not contain a content part and only contain a metadata part. This can be useful if you want to generate pages just from some pice of str...
29.71875
76
0.685594
90c5792ea219bcbb6c3e778f8bf9fdb909bf6563
2,094
py
Python
Lambda/isValidBinarySearchTree_Recursive.py
JeffreyAsuncion/CodingProblems_Python
db71cb46b2579c1c65767a644a0ea989da4fa559
[ "MIT" ]
null
null
null
Lambda/isValidBinarySearchTree_Recursive.py
JeffreyAsuncion/CodingProblems_Python
db71cb46b2579c1c65767a644a0ea989da4fa559
[ "MIT" ]
null
null
null
Lambda/isValidBinarySearchTree_Recursive.py
JeffreyAsuncion/CodingProblems_Python
db71cb46b2579c1c65767a644a0ea989da4fa559
[ "MIT" ]
null
null
null
""" You are given a binary tree. You need to write a function that can determin if it is a valid binary search tree. The rules for a valid binary search tree are: - The node's left subtree only contains nodes with values less than the node's value. - The node's right subtree only contains nodes with values greater than...
25.228916
78
0.626074
bb809de72b0c637690e17510aa5c2d00ae01e7fc
2,463
py
Python
tests/conftest.py
Moeflon/DiCE
bb00f2c73495d80675d9d6e61d385ee8638c5be9
[ "MIT" ]
null
null
null
tests/conftest.py
Moeflon/DiCE
bb00f2c73495d80675d9d6e61d385ee8638c5be9
[ "MIT" ]
null
null
null
tests/conftest.py
Moeflon/DiCE
bb00f2c73495d80675d9d6e61d385ee8638c5be9
[ "MIT" ]
null
null
null
import pytest from collections import OrderedDict import pandas as pd import dice_ml from dice_ml.utils import helpers @pytest.fixture def public_data_object(): """ Returns a public data object for the adult income dataset """ dataset = helpers.load_adult_income_dataset() return dice_ml.Data(datafr...
37.318182
142
0.62566
89e65988599b94be2ad6b542a1dac333f4c1c413
10,319
py
Python
frappe/desk/form/load.py
Don-Leopardo/frappe
39097b05a7a9904776a435ee2c3d7a579d429389
[ "MIT" ]
3,755
2015-01-06T07:47:43.000Z
2022-03-31T20:54:23.000Z
frappe/desk/form/load.py
Don-Leopardo/frappe
39097b05a7a9904776a435ee2c3d7a579d429389
[ "MIT" ]
7,369
2015-01-01T19:59:41.000Z
2022-03-31T23:02:05.000Z
frappe/desk/form/load.py
Don-Leopardo/frappe
39097b05a7a9904776a435ee2c3d7a579d429389
[ "MIT" ]
2,685
2015-01-07T17:51:03.000Z
2022-03-31T23:16:24.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE from typing import Dict, List, Union import frappe, json import frappe.utils import frappe.share import frappe.defaults import frappe.desk.form.meta from frappe.model.utils.user_settings import get_user_settings from frapp...
32.046584
123
0.728268
476384ba2f1b0e54c3ba4d9d2019f947d8b99ab1
2,842
py
Python
Controllers/controller_lqr.py
SensorsINI/CartPoleSimulation
8f59c21796ed68d224e5f731957e68583f54a10a
[ "MIT" ]
5
2020-10-25T06:55:29.000Z
2021-11-12T08:42:48.000Z
Controllers/controller_lqr.py
SensorsINI/CartPoleSimulation
8f59c21796ed68d224e5f731957e68583f54a10a
[ "MIT" ]
4
2021-03-12T15:05:42.000Z
2021-07-02T16:27:41.000Z
Controllers/controller_lqr.py
SensorsINI/CartPoleSimulation
8f59c21796ed68d224e5f731957e68583f54a10a
[ "MIT" ]
4
2020-10-16T19:15:30.000Z
2022-02-25T15:09:51.000Z
""" This is a linear-quadratic regulator It assumes that the input relation is u = Q*u_max (no fancy motor model) ! """ import scipy import numpy as np from Controllers.template_controller import template_controller from CartPole.state_utilities import ANGLE_IDX, ANGLED_IDX, POSITION_IDX, POSITIOND_IDX from CartPole....
31.577778
103
0.608726
8c5d459246280f94b15cc71c770f2d7ca519368b
15,815
py
Python
tests/chainer_tests/serializers_tests/test_hdf5.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
2
2019-08-12T21:48:04.000Z
2020-08-27T18:04:20.000Z
tests/chainer_tests/serializers_tests/test_hdf5.py
nolfwin/chainer
8d776fcc1e848cb9d3800a6aab356eb91ae9d088
[ "MIT" ]
2
2019-05-14T15:45:01.000Z
2019-05-15T07:12:49.000Z
tests/chainer_tests/serializers_tests/test_hdf5.py
nolfwin/chainer
8d776fcc1e848cb9d3800a6aab356eb91ae9d088
[ "MIT" ]
2
2019-07-16T00:24:47.000Z
2021-02-26T10:27:27.000Z
import os import sys import tempfile import unittest import mock import numpy import chainer from chainer import backend from chainer.backends import cuda from chainer.backends import intel64 from chainer import link from chainer import links from chainer import optimizers from chainer.serializers import hdf5 from ch...
33.016701
78
0.62466
efaf3507b8f711a4ddb8a4328e2e2b83d88b6efc
1,462
py
Python
tixcraft/recaptcha.py
satan007417/tixcraft_request
c4383c7bcc05844f4c10cbfb2b36c7d4c7c55f79
[ "MIT" ]
1
2019-09-20T08:58:28.000Z
2019-09-20T08:58:28.000Z
tixcraft/recaptcha.py
satan007417/tixcraft_request
c4383c7bcc05844f4c10cbfb2b36c7d4c7c55f79
[ "MIT" ]
14
2019-07-21T17:22:46.000Z
2022-03-11T23:50:36.000Z
tixcraft/recaptcha.py
satan007417/tixcraft_request
c4383c7bcc05844f4c10cbfb2b36c7d4c7c55f79
[ "MIT" ]
1
2020-07-10T18:41:20.000Z
2020-07-10T18:41:20.000Z
from keras.models import load_model import tensorflow as tf from PIL import Image import numpy as np tf.logging.set_verbosity(tf.logging.ERROR) try: char_model = load_model("./models/Reenie_Beanie_model.h5") except OSError: char_model = None class Recaptcha: def __init__(self, session): self.ses...
28.666667
80
0.623119
ce0e1ec533af26443f6c86f45cfdaebafa01eb71
8,426
py
Python
python_scripts/ensemble_adaboost.py
odotreppe/scikit-learn-mooc
da97773fc9b860371e94e3c72791b0c92471b22d
[ "CC-BY-4.0" ]
634
2020-03-10T15:42:46.000Z
2022-03-28T15:19:00.000Z
python_scripts/ensemble_adaboost.py
Haydost/scikit-learn-mooc
b46dc840111b7bc6ca643e0f1cc79499c246ca8b
[ "CC-BY-4.0" ]
467
2020-03-10T15:42:31.000Z
2022-03-31T09:10:04.000Z
python_scripts/ensemble_adaboost.py
Haydost/scikit-learn-mooc
b46dc840111b7bc6ca643e0f1cc79499c246ca8b
[ "CC-BY-4.0" ]
314
2020-03-11T14:28:26.000Z
2022-03-31T12:01:02.000Z
# %% [markdown] # # Adaptive Boosting (AdaBoost) # # In this notebook, we present the Adaptive Boosting (AdaBoost) algorithm. The # aim is to get intuitions regarding the internal machinery of AdaBoost and # boosting in general. # # We will load the "penguin" dataset. We will predict penguin species from the # culmen l...
37.954955
79
0.73653
f8e916b195dc6b18c6391f1e25fd7c86a93b233e
685
py
Python
semana05_shocket/client2.py
maxjacomette/SEII-Max
0d8eeb4aa6fe106312d05e3ff18535a9c8b619f6
[ "MIT" ]
null
null
null
semana05_shocket/client2.py
maxjacomette/SEII-Max
0d8eeb4aa6fe106312d05e3ff18535a9c8b619f6
[ "MIT" ]
null
null
null
semana05_shocket/client2.py
maxjacomette/SEII-Max
0d8eeb4aa6fe106312d05e3ff18535a9c8b619f6
[ "MIT" ]
null
null
null
import socket HEADERSIZE = 10 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((socket.gethostname(), 1243)) while True: full_msg = '' new_msg = True while True: msg = s.recv(16) if new_msg: print("new msg len:",msg[:HEADERSIZE]) msglen...
23.62069
54
0.535766
7c7d70def80a3b250e6ab5928d29a43c61a6770b
406
py
Python
onadata/apps/fsforms/migrations/0056_deployevent_form_changed.py
awemulya/fieldsight-kobocat
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
38
2017-02-28T05:39:40.000Z
2019-01-16T04:39:04.000Z
onadata/apps/fsforms/migrations/0056_deployevent_form_changed.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
20
2017-04-27T09:14:27.000Z
2019-01-17T06:35:52.000Z
onadata/apps/fsforms/migrations/0056_deployevent_form_changed.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
5
2017-02-22T12:25:19.000Z
2019-01-15T11:16:40.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fsforms', '0055_deployevent'), ] operations = [ migrations.AddField( model_name='deployevent', name=...
20.3
52
0.608374
c5121161713c924a80f664c18a0e98c9c36c3409
1,579
py
Python
2021/day13/solution.py
MartinSeeler/Advent-of-Code
efc1972ba0a3e17177d61d163ac79ce7880fab55
[ "MIT" ]
5
2020-12-18T15:37:20.000Z
2021-12-18T20:01:21.000Z
2021/day13/solution.py
MartinSeeler/Advent-of-Code-2020
efc1972ba0a3e17177d61d163ac79ce7880fab55
[ "MIT" ]
null
null
null
2021/day13/solution.py
MartinSeeler/Advent-of-Code-2020
efc1972ba0a3e17177d61d163ac79ce7880fab55
[ "MIT" ]
1
2021-12-18T05:29:35.000Z
2021-12-18T05:29:35.000Z
import time def solve(top_section: str, bottom_section: str): dots = set() for line in top_section.splitlines(): x, y = list(map(int, line.split(","))) dots.add(complex(x, y)) for line in bottom_section.splitlines(): axis, x = line.split(" ")[2].split("=") x = int(x) ...
32.895833
85
0.559215
6fccf3acde358436eee322e508f358d0ee4e298d
1,280
py
Python
rllib/examples/env/env_with_subprocess.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
21,382
2016-09-26T23:12:52.000Z
2022-03-31T21:47:45.000Z
rllib/examples/env/env_with_subprocess.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
19,689
2016-09-17T08:21:25.000Z
2022-03-31T23:59:30.000Z
rllib/examples/env/env_with_subprocess.py
firebolt55439/ray
215300b070628c06f0106906fc6c03bd70ebf140
[ "Apache-2.0" ]
4,114
2016-09-23T18:54:01.000Z
2022-03-31T15:07:32.000Z
import atexit import gym from gym.spaces import Discrete import os import subprocess class EnvWithSubprocess(gym.Env): """An env that spawns a subprocess.""" # Dummy command to run as a subprocess with a unique name UNIQUE_CMD = "sleep 20" def __init__(self, config): self.UNIQUE_FILE_0 = con...
29.090909
66
0.63125
5cff698691a26d67efaffc176aa7b858522e2335
20,596
py
Python
cgmodsel/prox.py
franknu/cgmodsel
b008ed88e4f10205ee0ff5e9433d5426c1d5ff6a
[ "MIT" ]
1
2020-09-01T08:39:14.000Z
2020-09-01T08:39:14.000Z
cgmodsel/prox.py
franknu/cgmodsel
b008ed88e4f10205ee0ff5e9433d5426c1d5ff6a
[ "MIT" ]
null
null
null
cgmodsel/prox.py
franknu/cgmodsel
b008ed88e4f10205ee0ff5e9433d5426c1d5ff6a
[ "MIT" ]
1
2020-09-04T13:35:41.000Z
2020-09-04T13:35:41.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Frank Nussbaum (frank.nussbaum@uni-jena.de), 2019 """ import numpy as np #import scipy #import abc #import time from scipy.optimize import approx_fprime from scipy.linalg import eigh from scipy import optimize from cgmodsel.utils import _logsumexp_condprob...
38.140741
114
0.550544
31a52f28c6c00a1eb0f713b218c20b273b5663c3
2,786
py
Python
lldb/test/API/functionalities/scripted_process/dummy_scripted_process.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
653
2018-12-27T15:00:01.000Z
2022-03-30T11:52:23.000Z
lldb/test/API/functionalities/scripted_process/dummy_scripted_process.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
lldb/test/API/functionalities/scripted_process/dummy_scripted_process.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
import os,struct, signal from typing import Any, Dict import lldb from lldb.plugins.scripted_process import ScriptedProcess from lldb.plugins.scripted_process import ScriptedThread class DummyScriptedProcess(ScriptedProcess): def __init__(self, target: lldb.SBTarget, args : lldb.SBStructuredData): super(...
30.955556
97
0.613783
36785d6aa40c12df58d1d154ab26baf98aa6f0d9
7,730
py
Python
music21/analysis/correlate.py
cuthbertLab/music21
1be16c255460107c10d7b4bc8eb77f0d115b5eac
[ "MIT" ]
1,449
2015-01-09T15:53:56.000Z
2022-03-31T18:24:46.000Z
music21/analysis/correlate.py
cuthbertLab/music21
1be16c255460107c10d7b4bc8eb77f0d115b5eac
[ "MIT" ]
1,179
2015-01-07T17:07:54.000Z
2022-03-31T16:46:02.000Z
music21/analysis/correlate.py
cuthbertLab/music21
1be16c255460107c10d7b4bc8eb77f0d115b5eac
[ "MIT" ]
393
2015-01-03T20:38:16.000Z
2022-03-25T16:51:22.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # Name: correlate.py # Purpose: Stream analyzer designed to correlate and graph two properties # # Authors: Christopher Ariza # # Copyright: Copyright © 2009-2010 Michael Scott Cuthbert and the ...
33.175966
94
0.558085
c2e250735093a9eea951ae10e0c3290ea8ed2e4d
10,557
py
Python
tests/test_homework.py
MyCodeIsBadTrip/hw02_community
6927431039da530005c07e635e0aef28b45cf4d3
[ "BSD-3-Clause" ]
null
null
null
tests/test_homework.py
MyCodeIsBadTrip/hw02_community
6927431039da530005c07e635e0aef28b45cf4d3
[ "BSD-3-Clause" ]
5
2021-03-19T12:18:57.000Z
2021-06-10T20:32:22.000Z
tests/test_homework.py
MyCodeIsBadTrip/hw02_community
6927431039da530005c07e635e0aef28b45cf4d3
[ "BSD-3-Clause" ]
null
null
null
import re import pytest from django.contrib.admin.sites import site from django.contrib.auth import get_user_model from django.db.models import fields from django.utils import translation from django.template.loader import get_template try: from posts.models import Post except ImportError: assert False, 'Не н...
39.391791
117
0.617505
7f60b2ee59b744e3a9be359efed707c49191004a
263
py
Python
tkitDb/__init__.py
napoler/tkitDb
9042ac26ed3f966480eae2628754f21f99586650
[ "Apache-2.0" ]
null
null
null
tkitDb/__init__.py
napoler/tkitDb
9042ac26ed3f966480eae2628754f21f99586650
[ "Apache-2.0" ]
null
null
null
tkitDb/__init__.py
napoler/tkitDb
9042ac26ed3f966480eae2628754f21f99586650
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ 作者: terrychan Blog: https://terrychan.org # 说明: """ # from .db import LevelDb, UnQDb from .lv import lvDb from .db import UnQDb from .pkl import PkDb from .litDb import Lit3Db # from .search import * from sqlitedict import SqliteDict
17.533333
33
0.703422
0f8cb646d1ff0c247836e5e0913c2391a59236f5
1,533
py
Python
last_stone_weight.py
vyshuks/Leetcode-30-day-challenge
aee6050c14670468426b437353f1df99c408a5a9
[ "MIT" ]
null
null
null
last_stone_weight.py
vyshuks/Leetcode-30-day-challenge
aee6050c14670468426b437353f1df99c408a5a9
[ "MIT" ]
null
null
null
last_stone_weight.py
vyshuks/Leetcode-30-day-challenge
aee6050c14670468426b437353f1df99c408a5a9
[ "MIT" ]
null
null
null
We have a collection of stones, each stone has a positive integer weight. # Each turn, we choose the two heaviest stones and smash them together. Suppose the stones have weights x and y with x <= y. The result of this smash is: # If x == y, both stones are totally destroyed; # If x != y, the stone of weight x is to...
27.872727
155
0.60013
c1e5b8c7638d5280d1203ae2551c1301ed7cedb0
7,012
py
Python
kroonika/settings.py
kalevhark/kroonika
a2d7a80666e742e62a3d2bcf72a597bf103ab9c7
[ "MIT" ]
1
2020-05-12T05:39:03.000Z
2020-05-12T05:39:03.000Z
kroonika/settings.py
kalevhark/kroonika
a2d7a80666e742e62a3d2bcf72a597bf103ab9c7
[ "MIT" ]
8
2019-12-25T21:32:49.000Z
2022-02-11T19:28:33.000Z
kroonika/settings.py
kalevhark/kroonika
a2d7a80666e742e62a3d2bcf72a597bf103ab9c7
[ "MIT" ]
null
null
null
""" Django settings for kroonika project. """ import configparser import os from pathlib import Path # Starting with 3.2 new projects are generated with DEFAULT_AUTO_FIELD set to BigAutoField # To avoid unwanted migrations in the future, either explicitly set DEFAULT_AUTO_FIELD to AutoField DEFAULT_AUTO_FIELD = 'djan...
31.026549
102
0.696663
0515a04249880de37cdca32759382eaa37c50424
8,750
py
Python
tests/test_valid_csv.py
santiagobasulto/smartcsv
1c56d757cfe65623c4f0790bc1069c8eaa51af85
[ "MIT" ]
81
2015-02-05T01:10:06.000Z
2022-02-11T11:27:20.000Z
tests/test_valid_csv.py
santiagobasulto/smartcsv
1c56d757cfe65623c4f0790bc1069c8eaa51af85
[ "MIT" ]
1
2017-02-04T22:58:25.000Z
2017-02-04T22:58:25.000Z
tests/test_valid_csv.py
santiagobasulto/smartcsv
1c56d757cfe65623c4f0790bc1069c8eaa51af85
[ "MIT" ]
5
2016-03-07T03:13:50.000Z
2018-08-14T22:58:14.000Z
import csv import six from copy import deepcopy if six.PY3: from io import StringIO else: from StringIO import StringIO from .base import BaseSmartCSVTestCase from .config import COLUMNS_1, IPHONE_DATA, IPAD_DATA, VALID_TEMPLATE_STR import smartcsv class ValidCSVWithHeaderTestCase(BaseSmartCSVTestCase): ...
33.143939
85
0.652571
8dd97bcdabfe7a5107ed40488cd312bf6fa05adc
12,819
py
Python
vmware_nsx/shell/admin/plugins/nsxv/resources/dhcp_binding.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
null
null
null
vmware_nsx/shell/admin/plugins/nsxv/resources/dhcp_binding.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
null
null
null
vmware_nsx/shell/admin/plugins/nsxv/resources/dhcp_binding.py
huihongxiao/vmware-nsx
00530f9207958df66211e5dba008764106fc82c3
[ "Apache-2.0" ]
1
2019-06-21T18:07:53.000Z
2019-06-21T18:07:53.000Z
# Copyright 2015 VMware, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
40.438486
79
0.656291
f6d765b02f0e5e8844eb7d2df005071dc7824a1d
659
py
Python
ietf/person/migrations/0008_auto_20181014_1448.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
25
2022-03-05T08:26:52.000Z
2022-03-30T15:45:42.000Z
ietf/person/migrations/0008_auto_20181014_1448.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
219
2022-03-04T17:29:12.000Z
2022-03-31T21:16:14.000Z
ietf/person/migrations/0008_auto_20181014_1448.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
22
2022-03-04T15:34:34.000Z
2022-03-28T13:30:59.000Z
# Copyright The IETF Trust 2018-2020, All Rights Reserved # -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-10-14 14:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('person', '0007_auto_20180929_1303'), ] operations = [ m...
29.954545
229
0.637329
61347cae90bededb80dfbfc571a4f9b12c8e9e28
6,664
py
Python
unicycle.py
mrdmnd/unicycle
acd73f9c68c5c5b4630fd47b17c1233e9711ba35
[ "Apache-2.0" ]
null
null
null
unicycle.py
mrdmnd/unicycle
acd73f9c68c5c5b4630fd47b17c1233e9711ba35
[ "Apache-2.0" ]
null
null
null
unicycle.py
mrdmnd/unicycle
acd73f9c68c5c5b4630fd47b17c1233e9711ba35
[ "Apache-2.0" ]
null
null
null
""" Compare lyft bikeshare ridership against NTD data on a per-month basis since 2018-01. """ from collections import namedtuple from collections import defaultdict import pandas as pd import datetime import requests import os import io import sys import zipfile import multiprocessing # Some static metadata about th...
43.842105
156
0.701681
30f33a5a641636493647aae47bbc17c91f137452
221
py
Python
store/forms.py
gitRipan/greatkart
2ea1a60f7d87ba86716bd50666b7b3ed804254ce
[ "MIT" ]
null
null
null
store/forms.py
gitRipan/greatkart
2ea1a60f7d87ba86716bd50666b7b3ed804254ce
[ "MIT" ]
null
null
null
store/forms.py
gitRipan/greatkart
2ea1a60f7d87ba86716bd50666b7b3ed804254ce
[ "MIT" ]
null
null
null
from django import forms from django.forms import fields from .models import ReviewRating class ReviewForm(forms.ModelForm): class Meta: model = ReviewRating fields = ['subject', 'review', 'rating']
22.1
48
0.705882
2e03f5a11556ac9ed6f7cf78590d58ae5bf457b6
880
py
Python
setup.py
AliGhahraei/verarandom
a62eb93714c0caa47b2eafce5519c873f6ccf461
[ "MIT" ]
null
null
null
setup.py
AliGhahraei/verarandom
a62eb93714c0caa47b2eafce5519c873f6ccf461
[ "MIT" ]
4
2021-03-20T01:57:31.000Z
2021-06-01T22:44:01.000Z
setup.py
AliGhahraei/verarandom
a62eb93714c0caa47b2eafce5519c873f6ccf461
[ "MIT" ]
null
null
null
from re import search from setuptools import setup, find_packages name = 'verarandom' with open("README.md") as f: long_description = f.read() with open(f'{name}/__init__.py') as f: version = search(r"__version__ = '(.*)'", f.read()).group(1) setup( name=name, version=version, description='Tru...
25.142857
64
0.6625
68402c0b32cf287afd7a7dc1bbc8efa022723ae2
8,039
py
Python
ax/modelbridge/transforms/power_transform_y.py
j-wilson/Ax
555489d0fd743e5422ab3a1994f8e4d44275ae21
[ "MIT" ]
1
2022-02-10T10:51:40.000Z
2022-02-10T10:51:40.000Z
ax/modelbridge/transforms/power_transform_y.py
j-wilson/Ax
555489d0fd743e5422ab3a1994f8e4d44275ae21
[ "MIT" ]
null
null
null
ax/modelbridge/transforms/power_transform_y.py
j-wilson/Ax
555489d0fd743e5422ab3a1994f8e4d44275ae21
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from __future__ import annotations from collections import defaultdict from typing import TYPE_CHECKING, Dict, List,...
42.989305
88
0.630675
23397d76cc36211ba32407e990f1f81a14cfa2b0
5,046
py
Python
tensorflow/python/compiler/tensorrt/test/combined_nms_test.py
MatthiasHertel80/tensorflow
390cccbcda0f8dfc070ed7040f218827a0ced875
[ "Apache-2.0" ]
2
2019-10-29T14:56:17.000Z
2020-02-23T14:53:09.000Z
tensorflow/python/compiler/tensorrt/test/combined_nms_test.py
MatthiasHertel80/tensorflow
390cccbcda0f8dfc070ed7040f218827a0ced875
[ "Apache-2.0" ]
2
2021-11-10T20:00:02.000Z
2022-02-10T02:43:47.000Z
tensorflow/python/compiler/tensorrt/test/combined_nms_test.py
MatthiasHertel80/tensorflow
390cccbcda0f8dfc070ed7040f218827a0ced875
[ "Apache-2.0" ]
6
2019-10-28T19:15:44.000Z
2022-03-31T02:55:44.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.93985
93
0.706698
093933825ad7f6f48c46bb3a3bd13c304ed5d547
1,984
py
Python
tests/test_aata_modeling_series.py
probonas/pipeline
96f565f2d827498efd31a7e76b74e0394ef2abc1
[ "Apache-2.0" ]
5
2020-04-11T15:12:07.000Z
2021-09-13T04:15:47.000Z
tests/test_aata_modeling_series.py
probonas/pipeline
96f565f2d827498efd31a7e76b74e0394ef2abc1
[ "Apache-2.0" ]
46
2019-04-22T20:36:40.000Z
2022-01-12T18:03:32.000Z
tests/test_aata_modeling_series.py
probonas/pipeline
96f565f2d827498efd31a7e76b74e0394ef2abc1
[ "Apache-2.0" ]
2
2020-05-27T20:49:53.000Z
2021-03-17T04:21:38.000Z
#!/usr/bin/env python3 -B import unittest import os import os.path import hashlib import json import uuid import pprint import inspect from itertools import groupby from pathlib import Path import warnings from tests import TestAATAPipelineOutput from cromulent import vocab vocab.add_attribute_assignment_check() cla...
30.060606
95
0.754032
8bb793483b8de51fe37aa2da41bf3ae4564247d8
1,075
py
Python
statchecker.py
dustyweasel/silicatewastes
4bb17251969ef2fea5b96b261a7300c771ad5eda
[ "MIT" ]
null
null
null
statchecker.py
dustyweasel/silicatewastes
4bb17251969ef2fea5b96b261a7300c771ad5eda
[ "MIT" ]
null
null
null
statchecker.py
dustyweasel/silicatewastes
4bb17251969ef2fea5b96b261a7300c771ad5eda
[ "MIT" ]
null
null
null
#maybe kill dustyweasel in mariadb after you're done with this #make another script like this for updating folders, that weaselwork approute and its timouts suck. #no my password isn't "asdf", pop a pill import pymysql #import os #import sys db = pymysql.connect("localhost","dustyweasel","asdf","silicatewastes" ) cur...
27.564103
99
0.608372
2e648e836a8bba5c1ebdce2c59ab31fc904e22de
3,666
py
Python
data_loader.py
Jungjaewon/fashion_segmentation
a27c3764620aeb1d2bbbaecf08f26909b991d8e5
[ "Apache-2.0" ]
null
null
null
data_loader.py
Jungjaewon/fashion_segmentation
a27c3764620aeb1d2bbbaecf08f26909b991d8e5
[ "Apache-2.0" ]
null
null
null
data_loader.py
Jungjaewon/fashion_segmentation
a27c3764620aeb1d2bbbaecf08f26909b991d8e5
[ "Apache-2.0" ]
null
null
null
import os import os.path as osp import glob import pickle import torch import numpy as np import random import torchvision.transforms.functional as TF from torch.utils import data from torchvision import transforms as T from PIL import Image def load_pickle(path): with open(path, 'rb') as fp: data = pic...
33.327273
107
0.597381
cf8c600c2bedf1f5c5712bb96cc3cebf7d14613a
2,170
py
Python
holmium/core/conditions.py
alisaifee/holmium.core
026441584537b83e8a2743490be78a4c8f07a510
[ "MIT" ]
38
2015-03-12T05:23:26.000Z
2021-11-18T09:26:25.000Z
holmium/core/conditions.py
alisaifee/holmium.core
026441584537b83e8a2743490be78a4c8f07a510
[ "MIT" ]
16
2015-02-17T01:07:32.000Z
2021-07-10T15:47:26.000Z
holmium/core/conditions.py
alisaifee/holmium.core
026441584537b83e8a2743490be78a4c8f07a510
[ "MIT" ]
25
2015-03-24T21:45:50.000Z
2021-07-05T07:29:54.000Z
""" utility callables to be passed to holmium.core.Element(s) only_if parameter """ from abc import ABCMeta, abstractmethod import re import threading from six import add_metaclass @add_metaclass(ABCMeta) class BaseCondition(object): """ base class to implement conditions passed to the ``only_if`` paramet...
22.142857
75
0.660829
325efde522914971ca76062cb12046d754e93174
747
py
Python
misc/config_tools/board_inspector/extractors/30-memory.py
donsheng/acrn-hypervisor
79edf8ba08f3f6d11d1ccf464b208c80b5b0fd24
[ "BSD-3-Clause" ]
848
2018-03-06T01:20:35.000Z
2022-03-31T05:47:50.000Z
misc/config_tools/board_inspector/extractors/30-memory.py
donsheng/acrn-hypervisor
79edf8ba08f3f6d11d1ccf464b208c80b5b0fd24
[ "BSD-3-Clause" ]
6,483
2018-03-09T05:29:36.000Z
2022-03-31T20:39:35.000Z
misc/config_tools/board_inspector/extractors/30-memory.py
donsheng/acrn-hypervisor
79edf8ba08f3f6d11d1ccf464b208c80b5b0fd24
[ "BSD-3-Clause" ]
593
2018-03-06T07:04:42.000Z
2022-03-29T15:39:27.000Z
# Copyright (C) 2021 Intel Corporation. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # import logging import lxml.etree from memmapparser import parse_e820, e820 from extractors.helpers import get_node, add_child def extract_layout(memory_node): e820_table = parse_e820() for e820_entry in e...
31.125
81
0.700134
0e1adb7dd7418164e19eada6d0475a0f1d160713
1,089
py
Python
setup.py
mgrouchy/twython
1d724328383f4dc16aa957fb0089ac0057bb0d74
[ "MIT" ]
1
2015-06-03T21:18:40.000Z
2015-06-03T21:18:40.000Z
setup.py
mgrouchy/twython
1d724328383f4dc16aa957fb0089ac0057bb0d74
[ "MIT" ]
null
null
null
setup.py
mgrouchy/twython
1d724328383f4dc16aa957fb0089ac0057bb0d74
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup from setuptools import find_packages __author__ = 'Ryan McGrath <ryan@venodesigns.net>' __version__ = '2.4.0' setup( # Basic package information. name='twython', version=__version__, packages=find_packages(), # Packaging options. include_pac...
28.657895
83
0.662994
95919c0c3eaa186735f7536c05a6c66fbe16eb1c
1,622
py
Python
resources/news.py
PythonForChange/PythonForChange.github.io-
3176d85f56dcb1ece08f437ae72282d60386ae81
[ "MIT" ]
1
2021-06-02T17:08:26.000Z
2021-06-02T17:08:26.000Z
resources/news.py
PythonForChange/pythonforchange.github.io
3176d85f56dcb1ece08f437ae72282d60386ae81
[ "MIT" ]
null
null
null
resources/news.py
PythonForChange/pythonforchange.github.io
3176d85f56dcb1ece08f437ae72282d60386ae81
[ "MIT" ]
null
null
null
from resources.utils import clearConsole,sleep class New(): def __init__(self,title: str, day: int, month: int ,year: int = 2021, files = ["README.md"]): self.title=title if day<10: newday="0"+str(day) else: newday=str(day) if month<10: newmonth="0"+str(month) else: newmon...
22.219178
95
0.540074
cbff7aaeabe7ea4d5af3c2e4200520feccd50fff
8,807
py
Python
frappe/utils/oauth.py
badili/frappe
8177d7e745f511fcc4da50fed9e291a58172a613
[ "MIT" ]
null
null
null
frappe/utils/oauth.py
badili/frappe
8177d7e745f511fcc4da50fed9e291a58172a613
[ "MIT" ]
7
2016-05-30T04:03:38.000Z
2019-02-03T03:10:03.000Z
frappe/utils/oauth.py
badili/frappe
8177d7e745f511fcc4da50fed9e291a58172a613
[ "MIT" ]
5
2015-07-22T04:52:43.000Z
2016-10-07T01:51:21.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe import frappe.utils import json from frappe import _ class SignupDisabledError(frappe.PermissionError): pass def get_oauth2_providers(): return { "google": { ...
29.162252
112
0.70989
ea41df1ab78cb25188c3054d2337dd35308b6d2c
7,373
py
Python
tests/python/pants_test/pantsd/pantsd_integration_test_base.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
tests/python/pants_test/pantsd/pantsd_integration_test_base.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/pantsd/pantsd_integration_test_base.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import functools import os import time from contextlib import contextmanager import psutil from colors import bold, cyan, magenta from pants.pantsd.process_manager import ProcessManager ...
36.5
105
0.594331
47e88fdc459614984ca2f03831fe3464899b3d5c
7,253
py
Python
swarmsim-2d/run_env.py
grohith327/2D-Drone-SwarmSim
ddaaff57266e7092b44a843ca671a4dc405fd7b8
[ "MIT" ]
2
2021-10-12T19:28:14.000Z
2022-03-22T18:36:45.000Z
swarmsim-2d/run_env.py
grohith327/2D-Drone-SwarmSim
ddaaff57266e7092b44a843ca671a4dc405fd7b8
[ "MIT" ]
null
null
null
swarmsim-2d/run_env.py
grohith327/2D-Drone-SwarmSim
ddaaff57266e7092b44a843ca671a4dc405fd7b8
[ "MIT" ]
1
2020-07-20T02:37:17.000Z
2020-07-20T02:37:17.000Z
import arcade import random import numpy as np import argparse from functools import reduce import sys import time from goals import NormalGoal, AnomalousGoal from drone import Drone parser = argparse.ArgumentParser(description="Drone Swarm Simulation") parser.add_argument("--num_drones", type=int, default=3, help="To...
33.270642
87
0.5577
ec3d2a4dcb98b7d2e0a9d817cadf3a5e31bbd08b
63
py
Python
macrokit/ipython/__init__.py
hanjinliu/macro-kit
61ebc38ea1086337d5a7477c6e896af0220f8a71
[ "BSD-3-Clause" ]
2
2021-11-02T09:53:49.000Z
2021-11-10T10:33:05.000Z
macrokit/ipython/__init__.py
hanjinliu/macro-kit
61ebc38ea1086337d5a7477c6e896af0220f8a71
[ "BSD-3-Clause" ]
null
null
null
macrokit/ipython/__init__.py
hanjinliu/macro-kit
61ebc38ea1086337d5a7477c6e896af0220f8a71
[ "BSD-3-Clause" ]
null
null
null
from .magic import register_magic __all__ = ["register_magic"]
21
33
0.793651
f7afdd3a2f6df2f9d618341145e9e8e2378ed729
9,985
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_certificate_ca.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_certificate_ca.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_certificate_ca.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import absolute_import, division, print_function # Copyright 2019-2021 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the ...
31.900958
153
0.545719
bbeb4673aa37724067a3d05714d163cdd08a62b0
9,198
py
Python
qradiomics/util/organize_features.py
taznux/radiomics-tools
74d3b314ddc00427fd7f2a17f79fbde372dee2ce
[ "MIT" ]
18
2016-07-01T20:37:27.000Z
2021-12-29T07:16:29.000Z
Tools/PythonTools/organize_features.py
taznux/radiomics-tools
74d3b314ddc00427fd7f2a17f79fbde372dee2ce
[ "MIT" ]
13
2016-07-18T22:14:19.000Z
2019-08-29T15:33:07.000Z
qradiomics/util/organize_features.py
taznux/radiomics-tools
74d3b314ddc00427fd7f2a17f79fbde372dee2ce
[ "MIT" ]
13
2016-08-27T06:59:07.000Z
2021-01-04T07:41:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This is a script file for organizing features from each individual into a single csv file. """ import os import sys import glob parameter_list = ['No.', 'PID', 'Image', 'Tags'] shape_feature = ['PhysicalSize', 'BoundingBoxVolume', 'BoundingBoxSize1', 'BoundingBoxSize...
42.387097
163
0.616438
4362ff2bad6937e464d1bc5ede666851fbc3926a
2,769
py
Python
data/image_folder.py
jiye-ML/CoCosNet
c4b3f44393462c8353c6c6952d7b05496298df1c
[ "MIT" ]
319
2020-06-19T09:09:06.000Z
2022-03-30T15:40:25.000Z
data/image_folder.py
jiye-ML/CoCosNet
c4b3f44393462c8353c6c6952d7b05496298df1c
[ "MIT" ]
36
2020-06-19T18:04:52.000Z
2021-08-11T07:44:02.000Z
data/image_folder.py
jiye-ML/CoCosNet
c4b3f44393462c8353c6c6952d7b05496298df1c
[ "MIT" ]
45
2020-06-19T09:06:20.000Z
2022-03-17T05:04:20.000Z
""" Copyright (C) 2019 NVIDIA Corporation. All rights reserved. Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode). """ import torch.utils.data as data from PIL import Image import os IMG_EXTENSIONS = [ '.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG', '....
29.774194
105
0.585049
94c395cf965d840f550d680f4bdc5c137a9edd2d
675
py
Python
solutions/kickstart/2018/practice/gbus-count.py
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
4
2020-11-07T14:38:02.000Z
2022-01-03T19:02:36.000Z
solutions/kickstart/2018/practice/gbus-count.py
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
1
2019-04-17T06:55:14.000Z
2019-04-17T06:55:14.000Z
solutions/kickstart/2018/practice/gbus-count.py
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import functools T = int(input()) for t in range(T): N = input() if N == "": N = int(input()) else: N = int(N) cities = input().split(" ") cities = [int(s) for s in cities[: len(cities) - 1]] P = int(input()) counts = [0 for i in range(P)] for p i...
23.275862
78
0.434074
acf6f8bbcab7fee1bf0a208d4a4c468a9798720f
1,666
py
Python
scripts/demo_rot_2d.py
jejjohnson/rbig_jax
112e064d5b62631aa03b7563c9eb9f115ab23eb0
[ "MIT" ]
null
null
null
scripts/demo_rot_2d.py
jejjohnson/rbig_jax
112e064d5b62631aa03b7563c9eb9f115ab23eb0
[ "MIT" ]
null
null
null
scripts/demo_rot_2d.py
jejjohnson/rbig_jax
112e064d5b62631aa03b7563c9eb9f115ab23eb0
[ "MIT" ]
null
null
null
# JAX SETTINGS import jax import jax.numpy as np # Plot Functions import matplotlib.pyplot as plt import numpy as onp import seaborn as sns from scipy.stats import beta from rbig_jax.data import get_classic from rbig_jax.transforms.linear import init_pca_params sns.reset_defaults() sns.set_context(context="talk", fon...
23.138889
78
0.654862
50c02241690e637d845f1ff2e9d301a015b0c149
3,356
py
Python
tests/configure/test_cli.py
diraol/databricks-cli
5f1f44252e6573fde8b75ee4c630aa69dbe29cf5
[ "Apache-2.0" ]
null
null
null
tests/configure/test_cli.py
diraol/databricks-cli
5f1f44252e6573fde8b75ee4c630aa69dbe29cf5
[ "Apache-2.0" ]
null
null
null
tests/configure/test_cli.py
diraol/databricks-cli
5f1f44252e6573fde8b75ee4c630aa69dbe29cf5
[ "Apache-2.0" ]
null
null
null
# Databricks CLI # Copyright 2017 Databricks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"), except # that the use of services to which certain application programming # interfaces (each, an "API") connect requires that the user first obtain # a license for the use of the APIs from Databricks,...
41.95
85
0.718117
05e8f04bbec702444922fa34119bd56c15d8d589
2,025
py
Python
cirq/quantum_phase_estimation.py
milind-u/quantum-computing
d9b4fd120f9bcf05ec4556b066459ec341dc92d8
[ "MIT" ]
1
2021-09-05T16:33:03.000Z
2021-09-05T16:33:03.000Z
cirq/quantum_phase_estimation.py
milind-u/quantum-computing
d9b4fd120f9bcf05ec4556b066459ec341dc92d8
[ "MIT" ]
null
null
null
cirq/quantum_phase_estimation.py
milind-u/quantum-computing
d9b4fd120f9bcf05ec4556b066459ec341dc92d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math import cirq import numpy as np import quantum_fourier_transform def _eigenvalue(theta): return math.e**(((2 * math.pi) * theta) * 1j) _THETA = 1 / 3 _U = np.matrix([[1, 0], [0, _eigenvalue(_THETA)]]) class _UnknownGate(cirq.Gate): def __init__(self, u=_U, power=1): ...
24.39759
74
0.641481
c92b3d4fcf78c8f409e03f01a44a4b8abab39f11
390
py
Python
users/migrations/0004_review_imdb.py
JackShen1/movie-finder
4cfb4836a0183678ceec0dce2e4fb95df28832aa
[ "MIT" ]
1
2021-07-08T21:36:19.000Z
2021-07-08T21:36:19.000Z
users/migrations/0004_review_imdb.py
JackShen1/movie-finder
4cfb4836a0183678ceec0dce2e4fb95df28832aa
[ "MIT" ]
null
null
null
users/migrations/0004_review_imdb.py
JackShen1/movie-finder
4cfb4836a0183678ceec0dce2e4fb95df28832aa
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-07-19 18:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_auto_20210712_1523'), ] operations = [ migrations.AddField( model_name='review', name='imdb', ...
20.526316
62
0.597436
6980a6632e60d5dcddfd7d8a7e2034d06f69b42f
1,505
py
Python
setup.py
KeyvanJS/electrumx
d2d82472eacfc0516f97b9eac5b23d069fd2bd51
[ "MIT" ]
null
null
null
setup.py
KeyvanJS/electrumx
d2d82472eacfc0516f97b9eac5b23d069fd2bd51
[ "MIT" ]
null
null
null
setup.py
KeyvanJS/electrumx
d2d82472eacfc0516f97b9eac5b23d069fd2bd51
[ "MIT" ]
2
2019-07-12T19:33:49.000Z
2020-01-26T22:43:57.000Z
import setuptools version = '1.11.0' setuptools.setup( name='electrumX', version=version, scripts=['electrumx_server', 'electrumx_rpc', 'electrumx_compact_history'], python_requires='>=3.6', install_requires=['aiorpcX>=0.17.0,<0.18', 'attrs', 'plyvel', 'pylru', 'aiohttp>=3.3']...
36.707317
91
0.591362
cdea6bc17ebab1dda950c719fe98c1ebf1af7f7f
291
py
Python
Leetcoding-Actions/Explore-Learn/HashTable/intersectionOfTwoArrays.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
1
2020-11-14T18:28:13.000Z
2020-11-14T18:28:13.000Z
Leetcoding-Actions/Explore-Learn/HashTable/intersectionOfTwoArrays.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
Leetcoding-Actions/Explore-Learn/HashTable/intersectionOfTwoArrays.py
shoaibur/SWE
1e114a2750f2df5d6c50b48c8e439224894d65da
[ "MIT" ]
null
null
null
class Solution: def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]: nums1Set = set(nums1) nums2Set = set(nums2) result = set() for num in nums1Set: if num in nums2Set: result.add(num) return result
29.1
76
0.546392
c523362cef668e355a9c0dc4cce4db35ed020794
9,196
py
Python
code_python/1.2/sobel-filter.py
pinxau1000/Computer-Vision
c1d8da241dfe39467aaa65777c725fdebffe35cf
[ "MIT" ]
null
null
null
code_python/1.2/sobel-filter.py
pinxau1000/Computer-Vision
c1d8da241dfe39467aaa65777c725fdebffe35cf
[ "MIT" ]
null
null
null
code_python/1.2/sobel-filter.py
pinxau1000/Computer-Vision
c1d8da241dfe39467aaa65777c725fdebffe35cf
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # IMPORTS # ------------------------------------------------------------------------------ from sys import version_info from sys import path as syspath from os import path import json _CURRENT_DIRECTORY =...
37.382114
110
0.529143
48613239cf905e1cf48f14f3e0896adfb02a32d8
864
py
Python
pybpf/__init__.py
kovacsgb/pybpf
d88cdf6e60fad95d1a314a1df4575a834d0fa02e
[ "MIT" ]
null
null
null
pybpf/__init__.py
kovacsgb/pybpf
d88cdf6e60fad95d1a314a1df4575a834d0fa02e
[ "MIT" ]
null
null
null
pybpf/__init__.py
kovacsgb/pybpf
d88cdf6e60fad95d1a314a1df4575a834d0fa02e
[ "MIT" ]
null
null
null
""" PyBpf ===== This package is meant for a modern interface for dealing with the outputs of Budapest-Florida code (Yecko et al. 1996.). Current Features ---------------- - Full interface for fort.95,fort.18 and fort.19 files - OOP datastructure for easy acces all the data - Ionization fraction calculations for t...
22.736842
68
0.72338
e66e5dfaeba217611b55443421f760482ef16ac2
1,682
py
Python
tests/plugins/misc_notifications.py
brocoinofficial/lightning-master
9a24c1c12bdf1e150bd2e76d73dde4bb9f9fe77a
[ "MIT" ]
null
null
null
tests/plugins/misc_notifications.py
brocoinofficial/lightning-master
9a24c1c12bdf1e150bd2e76d73dde4bb9f9fe77a
[ "MIT" ]
null
null
null
tests/plugins/misc_notifications.py
brocoinofficial/lightning-master
9a24c1c12bdf1e150bd2e76d73dde4bb9f9fe77a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Plugin to be used to test miscellaneous notifications. """ from pyln.client import Plugin, RpcError import sys import pytest plugin = Plugin() @plugin.init() def init(plugin, options, configuration): plugin.log("misc_notifications initialized") @plugin.subscribe("channel_opened") def...
32.346154
95
0.665279
b85670dad9c908c6d1ff486e69d79d68f7954970
2,046
py
Python
objective_weights_mcda/additions.py
energyinpython/objective-weights-for-mcda
95f6e550628717dd40e15b0ae9d13f0b6c193a51
[ "MIT" ]
null
null
null
objective_weights_mcda/additions.py
energyinpython/objective-weights-for-mcda
95f6e550628717dd40e15b0ae9d13f0b6c193a51
[ "MIT" ]
null
null
null
objective_weights_mcda/additions.py
energyinpython/objective-weights-for-mcda
95f6e550628717dd40e15b0ae9d13f0b6c193a51
[ "MIT" ]
null
null
null
import numpy as np # reverse = True: descending order ( for example TOPSIS, CODAS), False: ascending order (for example VIKOR, SPOTIS) def rank_preferences(pref, reverse = True): """Rank alternatives according to MCDA preference function values. If more than one alternative have the same preference function va...
47.581395
117
0.676442
36d3cbd274b274990c809b9aa38bedabccdf862a
1,865
py
Python
so_arm_nav/scripts/get_arm_pose.py
mw46d/so_arm
b36237bae8a773b0069f8611c98a3cd469600c56
[ "MIT" ]
9
2017-08-22T13:07:13.000Z
2021-07-13T10:02:29.000Z
so_arm_nav/scripts/get_arm_pose.py
mw46d/so_arm
b36237bae8a773b0069f8611c98a3cd469600c56
[ "MIT" ]
1
2017-12-14T06:46:58.000Z
2017-12-14T06:46:58.000Z
so_arm_nav/scripts/get_arm_pose.py
mw46d/so_arm
b36237bae8a773b0069f8611c98a3cd469600c56
[ "MIT" ]
5
2018-02-07T14:09:28.000Z
2021-01-08T20:41:52.000Z
#!/usr/bin/env python """ Display the current joint positions of the arm in kinematic order of the links """ import rospy, sys import moveit_commander from moveit_commander import MoveGroupCommander class GetJointStates: def __init__(self): # Initialize the move_group API moveit_commander.roscp...
32.155172
78
0.613941
9433b9917a164027d4fff5250fb564054e4ec479
1,008
py
Python
utils/count_classes_train_test.py
abhatta1234/face_analysis_pytorch
2abe930c0ca02a1fd819d4710fd9bff392f32f58
[ "MIT" ]
27
2020-05-19T16:51:42.000Z
2022-02-28T05:00:16.000Z
utils/count_classes_train_test.py
abhatta1234/face_analysis_pytorch
2abe930c0ca02a1fd819d4710fd9bff392f32f58
[ "MIT" ]
3
2020-04-09T04:46:24.000Z
2020-10-21T18:57:05.000Z
utils/count_classes_train_test.py
abhatta1234/face_analysis_pytorch
2abe930c0ca02a1fd819d4710fd9bff392f32f58
[ "MIT" ]
10
2020-05-11T19:50:30.000Z
2022-03-16T11:49:52.000Z
import argparse import random import numpy as np ATTRIBUTES = {"race": 1, "gender": 2, "age": 3} def get_classes_count(array): array = np.sort(array.astype("int")) classes_dict = {} classes, classes_count = np.unique(array, return_counts=True) for i in range(len(classes)): classes_dict[clas...
24.585366
88
0.665675
23182307a4343d2cd471d2cfd4b80c31b5e7479c
2,978
py
Python
action/arbiter.py
J4CKVVH173/evolution2.0
8f36b010caf9f22b3d0fcb2d45b7a1020313266e
[ "MIT" ]
null
null
null
action/arbiter.py
J4CKVVH173/evolution2.0
8f36b010caf9f22b3d0fcb2d45b7a1020313266e
[ "MIT" ]
null
null
null
action/arbiter.py
J4CKVVH173/evolution2.0
8f36b010caf9f22b3d0fcb2d45b7a1020313266e
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Tuple from cells import BaseCell from action.arbiter_handler import StartMove, Move, EatHerbFood, Reproduction class ActionContext: """Контекст для стратегий взаимодействия с миром.""" _strategy: "Arbiter" = None def set_strategy(self, strategy: "...
30.387755
120
0.640027
23e6859a70daee77c94e14051537060fd5616817
76,575
py
Python
theano/sparse/opt.py
MarcoGorelli/Theano-PyMC
55ef0e6b7380e062bdd09fcd7f820643f8521fb0
[ "BSD-3-Clause" ]
null
null
null
theano/sparse/opt.py
MarcoGorelli/Theano-PyMC
55ef0e6b7380e062bdd09fcd7f820643f8521fb0
[ "BSD-3-Clause" ]
null
null
null
theano/sparse/opt.py
MarcoGorelli/Theano-PyMC
55ef0e6b7380e062bdd09fcd7f820643f8521fb0
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import scipy import theano from theano import gof, scalar, tensor from theano.sparse import basic as sparse from theano.sparse.basic import ( CSC, CSR, csm_data, csm_grad, csm_indices, csm_indptr, csm_properties, usmm, ) from theano.tensor import blas from theano.tens...
36.868079
149
0.566817
a11ad795996bd76d22d1b3b6cdf73500f1986aba
78,435
py
Python
selfdrive/car/toyota/values.py
Kadantte/openpilot
db7b49c71cfc420259d99d3a4a6f0972b4f887e8
[ "MIT" ]
1
2022-03-17T07:17:41.000Z
2022-03-17T07:17:41.000Z
selfdrive/car/toyota/values.py
meiling222/openpilot
db7b49c71cfc420259d99d3a4a6f0972b4f887e8
[ "MIT" ]
2
2022-01-25T22:23:41.000Z
2022-01-26T02:57:58.000Z
selfdrive/car/toyota/values.py
meiling222/openpilot
db7b49c71cfc420259d99d3a4a6f0972b4f887e8
[ "MIT" ]
null
null
null
from collections import defaultdict from dataclasses import dataclass from enum import Enum, IntFlag from typing import Dict, List, Union from cereal import car from common.conversions import Conversions as CV from selfdrive.car import dbc_dict from selfdrive.car.docs_definitions import CarFootnote, CarInfo, Column, S...
43.310326
260
0.657576
ea75bf35d4b03e020f16c611c9307825f1c02b25
9,636
py
Python
pentestui/pentest_api/attacks/kerberos/modules/dcerpc/v5/samr.py
mustgundogdu/PentestUI
92263ea73bd2eaa2081fb277c76aa229103a1d54
[ "Apache-2.0" ]
21
2021-07-26T05:19:45.000Z
2022-02-01T07:35:21.000Z
pentestui/pentest_api/attacks/kerberos/modules/dcerpc/v5/samr.py
mustgundogdu/PentestUI
92263ea73bd2eaa2081fb277c76aa229103a1d54
[ "Apache-2.0" ]
null
null
null
pentestui/pentest_api/attacks/kerberos/modules/dcerpc/v5/samr.py
mustgundogdu/PentestUI
92263ea73bd2eaa2081fb277c76aa229103a1d54
[ "Apache-2.0" ]
2
2021-09-21T06:52:10.000Z
2021-09-26T07:31:27.000Z
""" MS-SAMR Protocol - Edited by b3kc4t to using stated references on samr file. References = https://github.com/SecureAuthCorp/impacket, https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-samr/4df07fab-1bbc-452f-8e92-7853a3c7e380 """ from __future__ import division from __future__ import print_function ...
40.658228
162
0.694998
3d659db9802c339f10a071f9cafa5e7a7e7fe615
53
py
Python
src/simulations/_init__.py
MelleStarke/MAS_B06
fbedc7459006c0915428f0122d923dd41b57b51e
[ "MIT" ]
null
null
null
src/simulations/_init__.py
MelleStarke/MAS_B06
fbedc7459006c0915428f0122d923dd41b57b51e
[ "MIT" ]
null
null
null
src/simulations/_init__.py
MelleStarke/MAS_B06
fbedc7459006c0915428f0122d923dd41b57b51e
[ "MIT" ]
null
null
null
from . import test from . import cost_sus_experiment
17.666667
33
0.811321
f054e4e42563385765f6c3e2b6d98da5ad8a2852
266
py
Python
PythonTest/TensorflowTest.py
qianhk/FeiPython
c87578d3c04b7345a99fef7390c8ea12c6f2c716
[ "Apache-2.0" ]
null
null
null
PythonTest/TensorflowTest.py
qianhk/FeiPython
c87578d3c04b7345a99fef7390c8ea12c6f2c716
[ "Apache-2.0" ]
15
2019-11-18T06:09:50.000Z
2022-03-02T02:55:54.000Z
PythonTest/TensorflowTest.py
qianhk/FeiPython
c87578d3c04b7345a99fef7390c8ea12c6f2c716
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # coding=utf-8 import tensorflow as tf sess = tf.Session() hello = tf.constant('Hello, TensorFlow!') print(sess.run(hello)) a = tf.constant(10) b = tf.constant(32) print(sess.run(a + b)) c = tf.constant('haHa') print sess.run(c) sess.close()
14
41
0.672932
27e51b4e5021c8fc2016c4d7a5151d509b016f5a
1,210
py
Python
src/dms-preview/azext_dms/vendored_sdks/datamigration/models/service_operation_py3.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
1
2019-05-10T19:58:09.000Z
2019-05-10T19:58:09.000Z
src/dms-preview/azext_dms/vendored_sdks/datamigration/models/service_operation_py3.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
src/dms-preview/azext_dms/vendored_sdks/datamigration/models/service_operation_py3.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# 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 ...
35.588235
76
0.606612
993a73ccba42c508e6f2eb1ea198398bc31394ed
2,406
py
Python
marketlearn/portfolio/asset.py
mrajancsr/QuantEquityManagement
026aa038268295a7d5e32c3d24c491e3c559e22e
[ "Apache-2.0" ]
2
2020-07-22T09:28:31.000Z
2020-08-17T01:19:42.000Z
marketlearn/portfolio/asset.py
mrajancsr/QuantEquityManagement
026aa038268295a7d5e32c3d24c491e3c559e22e
[ "Apache-2.0" ]
null
null
null
marketlearn/portfolio/asset.py
mrajancsr/QuantEquityManagement
026aa038268295a7d5e32c3d24c491e3c559e22e
[ "Apache-2.0" ]
3
2020-08-04T02:48:32.000Z
2020-08-17T01:20:09.000Z
# pyre-strict """Implementation of Asset class""" from __future__ import annotations from dataclasses import dataclass, field from functools import lru_cache from typing import ClassVar, List, Tuple import numpy as np import pandas as pd from numpy import array, cov, isnan, log from numpy.typing import NDArray __TRA...
29.341463
77
0.652535
a08bb43a0c480342c7bed49108ea713d33ec87fe
4,278
py
Python
plenum/test/audit_ledger/test_future_primaries_unit.py
Toktar/indy-plenum
2f1f838332b0506f8dd8837ac341cba0cd3f7ff4
[ "Apache-2.0" ]
null
null
null
plenum/test/audit_ledger/test_future_primaries_unit.py
Toktar/indy-plenum
2f1f838332b0506f8dd8837ac341cba0cd3f7ff4
[ "Apache-2.0" ]
null
null
null
plenum/test/audit_ledger/test_future_primaries_unit.py
Toktar/indy-plenum
2f1f838332b0506f8dd8837ac341cba0cd3f7ff4
[ "Apache-2.0" ]
null
null
null
import pytest from plenum.common.constants import TARGET_NYM, DATA, ALIAS, SERVICES, TXN_TYPE, NODE from plenum.common.request import Request from plenum.server.batch_handlers.three_pc_batch import ThreePcBatch from plenum.server.future_primaries_batch_handler import FuturePrimariesBatchHandler from plenum.server.prop...
39.611111
109
0.669004
dccb4a09f87083708447819045ab33ba01caf609
2,870
py
Python
pyuavcan/__init__.py
wiboticalex/pyuavcan
fdada810f29db3f800bd6148a62b76a3e841346d
[ "MIT" ]
1
2020-08-14T17:55:49.000Z
2020-08-14T17:55:49.000Z
pyuavcan/__init__.py
wiboticalex/pyuavcan
fdada810f29db3f800bd6148a62b76a3e841346d
[ "MIT" ]
null
null
null
pyuavcan/__init__.py
wiboticalex/pyuavcan
fdada810f29db3f800bd6148a62b76a3e841346d
[ "MIT" ]
null
null
null
# Copyright (c) 2019 UAVCAN Consortium # This software is distributed under the terms of the MIT License. # Author: Pavel Kirienko <pavel@uavcan.org> r""" Submodule import policy +++++++++++++++++++++++ The following submodules are auto-imported when the root module ``pyuavcan`` is imported: - :mod:`pyuavcan.dsdl` ...
34.166667
116
0.741812