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
7f4811a43f6d277731bb9a49dfb836bcc31014b7
21,298
py
Python
bot/exts/info/information.py
mathstrains21/bot
a345a912a88a53123bdd5d0806530c62d5166a9a
[ "MIT", "BSD-3-Clause" ]
1
2021-11-11T05:03:57.000Z
2021-11-11T05:03:57.000Z
bot/exts/info/information.py
doublevcodes/bot
778903fea8799e4c8f6817c25b1d2326d08481b3
[ "MIT", "BSD-3-Clause" ]
1
2021-11-09T15:49:56.000Z
2021-11-09T15:49:56.000Z
bot/exts/info/information.py
doublevcodes/bot
778903fea8799e4c8f6817c25b1d2326d08481b3
[ "MIT", "BSD-3-Clause" ]
null
null
null
import colorsys import pprint import textwrap from collections import defaultdict from typing import Any, DefaultDict, Mapping, Optional, Tuple, Union import rapidfuzz from discord import AllowedMentions, Colour, Embed, Guild, Message, Role from discord.ext.commands import BucketType, Cog, Context, Paginator, command,...
40.800766
120
0.620293
c4b108ac0cada6b7ef8ffb15a0e86dac5e1f6ac8
238
py
Python
src/chunks/views.py
FGlazov/il2_stats
fb91754e8319c645c875ef3c98c8ec5a3aa01fc2
[ "MIT" ]
11
2016-12-15T21:12:55.000Z
2021-05-02T03:56:41.000Z
src/chunks/views.py
FGlazov/il2_stats
fb91754e8319c645c875ef3c98c8ec5a3aa01fc2
[ "MIT" ]
16
2019-10-05T21:22:22.000Z
2022-03-11T23:18:01.000Z
src/chunks/views.py
FGlazov/il2_stats
fb91754e8319c645c875ef3c98c8ec5a3aa01fc2
[ "MIT" ]
4
2020-07-10T01:09:39.000Z
2021-11-24T10:45:30.000Z
from django.http import Http404 from django.shortcuts import render from .models import Chunk def page(request, key, template): chunk = Chunk.objects.get_or_create(key=key)[0] return render(request, template, {'chunk': chunk})
23.8
54
0.747899
795d18bca1b120bb9375e7b66416804ed0f1802e
4,907
py
Python
prediction_models/NN.py
MrHuff/general_ds_pipeline
c11440d7e54329931d3b1a4cb5b7f1c855a208cb
[ "MIT" ]
null
null
null
prediction_models/NN.py
MrHuff/general_ds_pipeline
c11440d7e54329931d3b1a4cb5b7f1c855a208cb
[ "MIT" ]
null
null
null
prediction_models/NN.py
MrHuff/general_ds_pipeline
c11440d7e54329931d3b1a4cb5b7f1c855a208cb
[ "MIT" ]
null
null
null
import copy import numpy as np import torch from utils.other import * import tqdm class multi_input_Sequential(torch.nn.Sequential): def forward(self, inputs): for module in self._modules.values(): if type(inputs) == tuple: inputs = module(*inputs) else: ...
35.817518
128
0.587936
a8b44273b750c735c9ce1e2b04172f085600e89c
2,547
py
Python
my_inventory.py
LSeriot/ansible-dynamic-inventory
1d2561e94188407386ec22a9b6463bd271b8a469
[ "MIT" ]
null
null
null
my_inventory.py
LSeriot/ansible-dynamic-inventory
1d2561e94188407386ec22a9b6463bd271b8a469
[ "MIT" ]
null
null
null
my_inventory.py
LSeriot/ansible-dynamic-inventory
1d2561e94188407386ec22a9b6463bd271b8a469
[ "MIT" ]
5
2019-05-29T11:45:56.000Z
2019-06-02T08:53:43.000Z
#!/usr/bin/env python ''' Example custom dynamic inventory script for Ansible, in Python. ''' import os import sys import argparse try: import json except ImportError: import simplejson as json class ExampleInventory(object): def __init__(self): self.inventory = {} self.read_cli_args() ...
29.964706
78
0.473106
ace66cd02f5b0ee6f8dcff95d996afd33738d8ed
930
py
Python
numba/ocl/tests/oclpy/test_py2_div_issue.py
SPIRV/NUMBA
6b93f44c923e7bf8cd9f95cc5188bba3aea4e75d
[ "BSD-2-Clause", "MIT" ]
4
2017-06-30T14:22:30.000Z
2021-01-11T16:47:23.000Z
numba/ocl/tests/oclpy/test_py2_div_issue.py
SPIRV/NUMBA
6b93f44c923e7bf8cd9f95cc5188bba3aea4e75d
[ "BSD-2-Clause", "MIT" ]
1
2017-12-21T23:31:59.000Z
2017-12-29T16:56:05.000Z
numba/ocl/tests/oclpy/test_py2_div_issue.py
SPIRV/NUMBA
6b93f44c923e7bf8cd9f95cc5188bba3aea4e75d
[ "BSD-2-Clause", "MIT" ]
null
null
null
from __future__ import print_function, absolute_import import numpy as np from numba import ocl, float32, int32 from numba.ocl.testing import unittest class TestOclPy2Div(unittest.TestCase): def test_py2_div_issue(self): @ocl.jit('(float32[:], float32[:], float32[:], int32)') def preCalc(y, yA, yB...
27.352941
63
0.590323
6f40d6924bb11297abf9cdd98ffb04446f041d12
8,731
py
Python
paddlers/models/ppseg/core/val.py
huilin16/PaddleRS
ca0d6223d8e56cd3bd3cbd3a033c89f1718ce26a
[ "Apache-2.0" ]
40
2022-02-28T02:07:28.000Z
2022-03-31T09:54:29.000Z
paddlers/models/ppseg/core/val.py
huilin16/PaddleRS
ca0d6223d8e56cd3bd3cbd3a033c89f1718ce26a
[ "Apache-2.0" ]
5
2022-03-15T12:13:33.000Z
2022-03-31T15:54:08.000Z
paddlers/models/ppseg/core/val.py
huilin16/PaddleRS
ca0d6223d8e56cd3bd3cbd3a033c89f1718ce26a
[ "Apache-2.0" ]
20
2022-02-28T02:07:31.000Z
2022-03-31T11:40:40.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
44.09596
135
0.605773
d0eca52b2f05af9378020148e1c2d58a1aa09a2d
1,545
py
Python
goodreads_api_client/resources/review.py
LoLei/goodreads-api-client-python
b77031cee9c1e6447243fd21e8aa057bbab7041b
[ "MIT" ]
1
2020-07-31T14:16:54.000Z
2020-07-31T14:16:54.000Z
goodreads_api_client/resources/review.py
LoLei/goodreads-api-client-python
b77031cee9c1e6447243fd21e8aa057bbab7041b
[ "MIT" ]
null
null
null
goodreads_api_client/resources/review.py
LoLei/goodreads-api-client-python
b77031cee9c1e6447243fd21e8aa057bbab7041b
[ "MIT" ]
1
2020-11-06T18:36:50.000Z
2020-11-06T18:36:50.000Z
# -*- coding: utf-8 -*- """Module containing review resource class.""" from goodreads_api_client.exceptions import OauthEndpointNotImplemented from goodreads_api_client.resources.base import Resource class Review(Resource): resource_name = 'review' def create(self): raise OauthEndpointNotImplemented...
30.9
75
0.618123
0c27fb541d23b462336a4add563433133f11fb9a
3,981
py
Python
src/oci/data_safe/models/column_sorting.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_safe/models/column_sorting.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/data_safe/models/column_sorting.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
29.932331
245
0.638533
fd4cdf61efa89492415b0be0b3acc45e008f1f47
8,563
py
Python
techflow/tech_flow/doctype/discipline/discipline.py
mcnigno/techflow
61df2bc3753ed7190640e407a3dc01443a2622f4
[ "MIT" ]
null
null
null
techflow/tech_flow/doctype/discipline/discipline.py
mcnigno/techflow
61df2bc3753ed7190640e407a3dc01443a2622f4
[ "MIT" ]
null
null
null
techflow/tech_flow/doctype/discipline/discipline.py
mcnigno/techflow
61df2bc3753ed7190640e407a3dc01443a2622f4
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, json from frappe.utils import getdate, date_diff, add_days, cstr from frappe import _, throw from frappe.utils.nestedset import NestedSe...
33.84585
119
0.713301
cc844d12f7a005636ba0bcf699b3619b9cbba4cd
23,869
py
Python
workers/message_insights_worker/message_insights_worker.py
Joshinn-io/augur
6759204dbae2ebb992dcd8c1f05408b9206c4ba3
[ "MIT" ]
443
2018-09-19T00:30:36.000Z
2022-03-31T11:39:13.000Z
workers/message_insights_worker/message_insights_worker.py
Romelo-S/augur
e9410887f58af2b26c350edf08e3f70ff783bdc5
[ "MIT" ]
613
2018-09-19T18:31:13.000Z
2022-03-31T05:41:16.000Z
workers/message_insights_worker/message_insights_worker.py
Romelo-S/augur
e9410887f58af2b26c350edf08e3f70ff783bdc5
[ "MIT" ]
764
2018-10-17T01:08:10.000Z
2022-03-31T05:25:01.000Z
import datetime import json import logging import os import sys import warnings from multiprocessing import Process, Queue from workers.worker_git_integration import WorkerGitInterfaceable import numpy as np import pandas as pd import requests import sqlalchemy as s from skimage.filters import threshold_o...
55.638695
215
0.607315
125f42d63ee81d891cd33803f71a96e7d8d2e0a1
1,700
py
Python
pando/__main__.py
AspenWeb/pando.py
87c70837ae66caf2705b2dfceb36d87e87cfaf1f
[ "MIT" ]
28
2016-09-07T04:39:29.000Z
2021-11-08T12:11:14.000Z
pando/__main__.py
gratipay/aspen-python
87c70837ae66caf2705b2dfceb36d87e87cfaf1f
[ "MIT" ]
106
2015-01-02T19:48:15.000Z
2015-09-03T15:03:27.000Z
pando/__main__.py
gratipay/aspen.py
87c70837ae66caf2705b2dfceb36d87e87cfaf1f
[ "MIT" ]
9
2016-07-21T11:17:48.000Z
2021-08-31T12:35:17.000Z
""" python -m pando =============== Pando ships with a server (wsgiref.simple_server) that is suitable for development and testing. It can be invoked via: python -m pando though even for development you'll likely want to specify a project root, so a more likely incantation is: ASPEN_PROJECT_ROOT=/path/to/w...
27.419355
94
0.629412
c13cd0d5ec8f9a468dc32a39a92b2f72deebdf78
6,917
py
Python
activitysim/estimation/larch/stop_frequency.py
mxndrwgrdnr/activitysim
722d6e36b2210d5d24dfa2ac4a3504c1e8f75336
[ "BSD-3-Clause" ]
85
2018-02-16T15:08:13.000Z
2022-03-23T15:08:08.000Z
activitysim/estimation/larch/stop_frequency.py
mxndrwgrdnr/activitysim
722d6e36b2210d5d24dfa2ac4a3504c1e8f75336
[ "BSD-3-Clause" ]
311
2018-01-16T01:59:47.000Z
2022-03-29T00:46:40.000Z
activitysim/estimation/larch/stop_frequency.py
mxndrwgrdnr/activitysim
722d6e36b2210d5d24dfa2ac4a3504c1e8f75336
[ "BSD-3-Clause" ]
63
2018-02-05T15:27:51.000Z
2022-03-04T20:36:33.000Z
import os from pathlib import Path import numpy as np import pandas as pd import yaml from larch.util import Dict from larch import Model, DataFrames from .general import ( remove_apostrophes, dict_of_linear_utility_from_spec, apply_coefficients, construct_nesting_tree, ) def stop_frequency_data( ...
33.906863
111
0.627295
56f4d1532336a74e115aea43e9069ee7560a3456
12,513
py
Python
Packs/GoogleDocs/Integrations/GoogleDocs/GoogleDocs.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GoogleDocs/Integrations/GoogleDocs/GoogleDocs.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GoogleDocs/Integrations/GoogleDocs/GoogleDocs.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * ''' IMPORTS ''' import requests import httplib2 import urllib.parse from oauth2client import service_account from googleapiclient import discovery import typing from collections import defaultdict # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' GLOBALS/...
31.518892
120
0.650843
0d76f143c76f69e83909d8659e252855459791a2
1,459
py
Python
response prediction/response prediction/resampling.py
xingjunm/Finding-Influentials-in-Twitter
a363b02516605ed6d68b6f4c406ab4520dcfa2e0
[ "MIT" ]
5
2022-03-23T09:00:15.000Z
2022-03-23T22:48:39.000Z
response prediction/response prediction/resampling.py
xingjunm/Finding-Influentials-in-Twitter
a363b02516605ed6d68b6f4c406ab4520dcfa2e0
[ "MIT" ]
null
null
null
response prediction/response prediction/resampling.py
xingjunm/Finding-Influentials-in-Twitter
a363b02516605ed6d68b6f4c406ab4520dcfa2e0
[ "MIT" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- import os, csv def resample(ratio): file_list = os.listdir('./dataset') w_csvfile = file('./dataset-resample/resample-' + str(ratio) + '.csv', 'wb') writer = csv.writer(w_csvfile) title = True for file_name in file_list: r_csvfile = file('./dataset/' + file_name, 'rb...
21.455882
77
0.620973
71274dafcc2a3faa02011f9ec38ff5bad7b10d4c
167
py
Python
ger/TTP/SV2/2709.py
aLagoG/kygerand
0991cf5d5c3d49f4602b6992d4e3bdec8e27898e
[ "MIT" ]
1
2017-09-16T04:05:31.000Z
2017-09-16T04:05:31.000Z
ger/TTP/SV2/2709.py
aLagoG/kygerand
0991cf5d5c3d49f4602b6992d4e3bdec8e27898e
[ "MIT" ]
9
2017-01-25T19:34:38.000Z
2020-07-27T17:02:09.000Z
ger/TTP/SV2/2709.py
aLagoG/kygerand
0991cf5d5c3d49f4602b6992d4e3bdec8e27898e
[ "MIT" ]
null
null
null
chapters = range(1,input()+1) fillers = [int(i) for i in raw_input().split()] del fillers[0] for i in fillers: try:chapters.remove(i) except:pass print len(chapters)
23.857143
47
0.712575
2d796395b7fa04781b22e17166c25b1de21d65c3
7,658
py
Python
scipy/signal/_upfirdn.py
jeremiedbb/scipy
2bea64c334b18fd445a7945b350d7ace2dc22913
[ "BSD-3-Clause" ]
1
2020-06-03T14:26:28.000Z
2020-06-03T14:26:28.000Z
scipy/signal/_upfirdn.py
jeremiedbb/scipy
2bea64c334b18fd445a7945b350d7ace2dc22913
[ "BSD-3-Clause" ]
null
null
null
scipy/signal/_upfirdn.py
jeremiedbb/scipy
2bea64c334b18fd445a7945b350d7ace2dc22913
[ "BSD-3-Clause" ]
null
null
null
# Code adapted from "upfirdn" python library with permission: # # Copyright (c) 2009, Motorola, Inc # # All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must re...
36.293839
79
0.601593
e8e5221f99472113df56898e4c1565ba4566352c
123
py
Python
pdfminer/__init__.py
jjbiggins/pdfminer.six
617e4c8388fa61ed68b8ff450c48f79e41102be6
[ "MIT" ]
null
null
null
pdfminer/__init__.py
jjbiggins/pdfminer.six
617e4c8388fa61ed68b8ff450c48f79e41102be6
[ "MIT" ]
1
2022-03-27T15:17:37.000Z
2022-03-27T15:17:37.000Z
pdfminer/__init__.py
jjbiggins/pdfminer.six
617e4c8388fa61ed68b8ff450c48f79e41102be6
[ "MIT" ]
null
null
null
__version__ = "__VERSION__" # auto replaced with tag in github actions if __name__ == "__main__": print(__version__)
24.6
71
0.731707
2e3c9b16298b633477d4b9ff58a53be13e4caa06
315
py
Python
docs/Youtube/generate_data.py
znicolaou/pysindy
f77e85f895da1d3ed98f9a6d84327d984f5d957c
[ "MIT" ]
613
2020-01-22T17:41:47.000Z
2022-03-29T08:35:48.000Z
docs/Youtube/generate_data.py
znicolaou/pysindy
f77e85f895da1d3ed98f9a6d84327d984f5d957c
[ "MIT" ]
128
2020-01-14T16:30:08.000Z
2022-03-17T13:00:29.000Z
docs/Youtube/generate_data.py
znicolaou/pysindy
f77e85f895da1d3ed98f9a6d84327d984f5d957c
[ "MIT" ]
161
2020-01-23T09:26:53.000Z
2022-03-31T18:17:59.000Z
# Generate dynamical system data import numpy as np from scipy.integrate import odeint def f(x, t): return [np.sin(2 * x[1]), 1 - np.cos(x[0])] dt = 0.01 t_train = np.arange(0, 10, dt) x0_train = [1, 2] x_train = odeint(f, x0_train, t_train) with open("data.npy", "wb") as file: np.save(file, x_train)
18.529412
47
0.647619
564815dbe96bae0f0afd3fc70ad2e105a1d35b5e
71,084
py
Python
tests/unit/test_config.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
tests/unit/test_config.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
tests/unit/test_config.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Unit tests for salt.config """ # Import Python libs from __future__ import absolute_import, print_function, unicode_literals import logging import os import textwrap # Import Salt Testing libs from tests.support.helpers import with_tempdir, with_tempfile, patched_environ from tests.suppor...
41.642648
105
0.557917
a2a651df9b784aa87e5eca5ca36f269e72049412
250
py
Python
torchsr/datasets/__init__.py
mgm52/torchSR
7d9fb3f2f95b58fa3bb0e9ab00dec4c1a2265ac2
[ "MIT" ]
73
2021-04-24T20:50:47.000Z
2022-03-30T09:36:35.000Z
torchsr/datasets/__init__.py
DefTruth/torchSR
115c9177cfbe170524e281fc1c2f82af3349bb6a
[ "MIT" ]
7
2021-05-18T09:57:43.000Z
2022-03-21T09:02:09.000Z
torchsr/datasets/__init__.py
DefTruth/torchSR
115c9177cfbe170524e281fc1c2f82af3349bb6a
[ "MIT" ]
7
2021-04-26T23:12:42.000Z
2022-03-04T22:50:50.000Z
from .div2k import Div2K from .flickr2k import Flickr2K from .realsr import RealSRv3 from .reds import REDS from .benchmarks import Set5, Set14, B100, Urban100 __all__ = ('Div2K', 'Flickr2K', 'RealSRv3', 'REDS', 'Set5', 'Set14', 'B100', 'Urban100')
31.25
88
0.728
3c58e10c99717acdba04468a50fe11fce3755324
4,864
py
Python
kombu/tests/transport/virtual/test_exchange.py
chartbeat/kombu
e73033b38899f2300f50100ade1d5a8d652a6864
[ "BSD-3-Clause" ]
1
2016-04-26T10:09:35.000Z
2016-04-26T10:09:35.000Z
kombu/tests/transport/virtual/test_exchange.py
serverdensity/kombu
a48dc5b55141f021a47912c73d2c20498c593795
[ "BSD-3-Clause" ]
null
null
null
kombu/tests/transport/virtual/test_exchange.py
serverdensity/kombu
a48dc5b55141f021a47912c73d2c20498c593795
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from kombu import Connection from kombu.transport.virtual import exchange from kombu.tests.mocks import Transport from kombu.tests.utils import TestCase from kombu.tests.utils import Mock class ExchangeCase(TestCase): type = None def setUp(self): if self.type:...
30.21118
74
0.53639
6191e3c45403ee5b0692a4662629c7749908e70e
287
py
Python
oop_decorators.py
rshaurya/udemy_flask_bootcamp
949a2c25d796efe2467ba460ddc0bb667ea00f29
[ "MIT" ]
null
null
null
oop_decorators.py
rshaurya/udemy_flask_bootcamp
949a2c25d796efe2467ba460ddc0bb667ea00f29
[ "MIT" ]
null
null
null
oop_decorators.py
rshaurya/udemy_flask_bootcamp
949a2c25d796efe2467ba460ddc0bb667ea00f29
[ "MIT" ]
null
null
null
def new_decorator(func): def wrap_func(): print("some code before executing func!") func() print('Code here, after executing func()') return wrap_func @new_decorator def func_needs_decorator(): print('Pls decorate me') func_needs_decorator()
17.9375
50
0.655052
0b2d6bc2617c539c9f6a1755c448a5fa962afa38
26,237
py
Python
tests/test_networks.py
ricosjp/siml
8fc07d798cdedd77622c16221ee44a575d36bad0
[ "Apache-2.0" ]
11
2020-12-28T16:22:33.000Z
2021-11-14T17:09:27.000Z
tests/test_networks.py
ricosjp/siml
8fc07d798cdedd77622c16221ee44a575d36bad0
[ "Apache-2.0" ]
null
null
null
tests/test_networks.py
ricosjp/siml
8fc07d798cdedd77622c16221ee44a575d36bad0
[ "Apache-2.0" ]
2
2021-04-28T09:41:47.000Z
2021-07-01T21:18:51.000Z
from pathlib import Path import shutil import unittest import numpy as np import matplotlib.pyplot as plt import scipy.sparse as sp import torch import siml.inferer as inferer import siml.networks.activations as activations import siml.networks.array2diagmat as array2diagmat import siml.networks.array2symmat as array...
42.800979
79
0.63521
302012a0bc3641584c91918e5899d042db6a273e
1,487
py
Python
lib/googlecloudsdk/third_party/apis/clouddebugger/v2/resources.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/third_party/apis/clouddebugger/v2/resources.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/clouddebugger/v2/resources.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2015 Google LLC. 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 requir...
30.346939
74
0.704775
85ccaf250a9324bed4fd4628106fa419e7480250
9,251
py
Python
services/web/server/src/simcore_service_webserver/users_api.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
25
2018-04-13T12:44:12.000Z
2022-03-12T15:01:17.000Z
services/web/server/src/simcore_service_webserver/users_api.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
2,553
2018-01-18T17:11:55.000Z
2022-03-31T16:26:40.000Z
services/web/server/src/simcore_service_webserver/users_api.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
20
2018-01-18T19:45:33.000Z
2022-03-29T07:08:47.000Z
""" This should be the interface other modules should use to get information from user module """ import logging from collections import deque from typing import Any, Dict, List, Tuple import sqlalchemy as sa from aiohttp import web from aiopg.sa.engine import Engine from aiopg.sa.result import RowProxy from...
34.518657
89
0.601557
b2d2e92969118ab3117933d3317565fdc205e28e
16,289
py
Python
sympy/core/operations.py
toolforger/sympy
adc391f00e1e35d27925efb0314ec8abde9d255d
[ "BSD-3-Clause" ]
1
2020-08-12T23:09:42.000Z
2020-08-12T23:09:42.000Z
sympy/core/operations.py
toolforger/sympy
adc391f00e1e35d27925efb0314ec8abde9d255d
[ "BSD-3-Clause" ]
null
null
null
sympy/core/operations.py
toolforger/sympy
adc391f00e1e35d27925efb0314ec8abde9d255d
[ "BSD-3-Clause" ]
1
2020-09-09T15:20:27.000Z
2020-09-09T15:20:27.000Z
from __future__ import print_function, division from sympy.core.sympify import _sympify, sympify from sympy.core.basic import Basic, _aresame from sympy.core.cache import cacheit from sympy.core.compatibility import ordered, range from sympy.core.logic import fuzzy_and from sympy.core.evaluate import global_evaluate ...
35.030108
99
0.532998
9380f56db3dc9460414574cd2d5f6530d3d2dd28
189
py
Python
authentication/socialaccount/providers/linkedin_oauth2/urls.py
vo0doO/pydj-persweb
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
[ "CC0-1.0" ]
null
null
null
authentication/socialaccount/providers/linkedin_oauth2/urls.py
vo0doO/pydj-persweb
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
[ "CC0-1.0" ]
4
2020-05-06T17:22:00.000Z
2021-12-13T20:43:30.000Z
authentication/socialaccount/providers/linkedin_oauth2/urls.py
vo0doO/pydj-persweb
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
[ "CC0-1.0" ]
null
null
null
from authentication.socialaccount.providers.oauth2.urls import default_urlpatterns from .provider import LinkedInOAuth2Provider urlpatterns = default_urlpatterns(LinkedInOAuth2Provider)
27
82
0.883598
529859e5adaa2c9bf470fe19c797a1c503b20759
298
py
Python
CactusOutlineTypes.py
karstenw/Cactus-opml-Outliner
ac30993900dd154468f32a7dde13972b1521ae8d
[ "BSD-2-Clause" ]
4
2017-01-14T16:51:36.000Z
2021-03-18T06:27:45.000Z
CactusOutlineTypes.py
karstenw/Cactus-opml-Outliner
ac30993900dd154468f32a7dde13972b1521ae8d
[ "BSD-2-Clause" ]
null
null
null
CactusOutlineTypes.py
karstenw/Cactus-opml-Outliner
ac30993900dd154468f32a7dde13972b1521ae8d
[ "BSD-2-Clause" ]
null
null
null
# the outline. what else? typeOutline = 1 # the still used tableview. to be merged with outline typeTable = 2 # an alternate view. exists only as an idea typeBrowser = 3 # are these still used? editorTypes = (typeOutline, typeTable, typeBrowser) hierarchicalTypes = (typeOutline, typeBrowser)
19.866667
53
0.755034
265203aa94662c226df08f98c5a8a407ac1c3dc7
62
py
Python
main/admin.py
FXKevinK/psuweb-log
dc35c209bc4836f8c3fb07688da87fc98687f0c5
[ "MIT" ]
null
null
null
main/admin.py
FXKevinK/psuweb-log
dc35c209bc4836f8c3fb07688da87fc98687f0c5
[ "MIT" ]
null
null
null
main/admin.py
FXKevinK/psuweb-log
dc35c209bc4836f8c3fb07688da87fc98687f0c5
[ "MIT" ]
null
null
null
from django.contrib import admin from django.db import models
20.666667
32
0.83871
a04afa1b8bc59166f47ceaef696719ae160f55d0
1,772
py
Python
wepppy/climates/holden_wrf_atlas.py
hwbeeson/wepppy
6358552df99853c75be8911e7ef943108ae6923e
[ "BSD-3-Clause" ]
null
null
null
wepppy/climates/holden_wrf_atlas.py
hwbeeson/wepppy
6358552df99853c75be8911e7ef943108ae6923e
[ "BSD-3-Clause" ]
null
null
null
wepppy/climates/holden_wrf_atlas.py
hwbeeson/wepppy
6358552df99853c75be8911e7ef943108ae6923e
[ "BSD-3-Clause" ]
null
null
null
from os.path import join as _join from os.path import exists as _exists from wepppy.all_your_base.geo import RasterDatasetInterpolator, RDIOutOfBoundsException _wd = '/geodata/Holden_WRF_atlas/' _nc = _join(_wd, 'WRF_prcp_freq_atlas.nc') def fetch_pf(lat, lng): rec_intervals = [2, 5, 25] durations = ['1-ho...
26.447761
95
0.574492
ed7c1eea59b07e654edae4c538058773b60095ea
1,106
py
Python
creacion_de_aplicaciones/pywebio_app/app/insertar.py
soytupadrrre/Master_Python_Eip
c4774209d7dd15584233fe5d4cc01b1434c9316b
[ "MIT" ]
null
null
null
creacion_de_aplicaciones/pywebio_app/app/insertar.py
soytupadrrre/Master_Python_Eip
c4774209d7dd15584233fe5d4cc01b1434c9316b
[ "MIT" ]
null
null
null
creacion_de_aplicaciones/pywebio_app/app/insertar.py
soytupadrrre/Master_Python_Eip
c4774209d7dd15584233fe5d4cc01b1434c9316b
[ "MIT" ]
null
null
null
from pywebio import input from pywebio import output from rest_iris import RestIris from pywebio import config from app import helper def insertar(data): data = RestIris().post_data(data) output.put_success(f"Se ha añadido los datos en el Iris Dataset con id {data['id']}") @config(title="Insertar Datos", desc...
40.962963
102
0.694394
3df73e247ce500766815d1597245d6086bdc2105
1,565
py
Python
tests/python/gaia-ui-tests/gaiatest/tests/functional/videoplayer/test_play_mp4_video.py
wilsonpage/gaia
d0beeca2401ff90564dfcbe45ee5237d46605ab8
[ "Apache-2.0" ]
1
2015-12-07T19:23:38.000Z
2015-12-07T19:23:38.000Z
tests/python/gaia-ui-tests/gaiatest/tests/functional/videoplayer/test_play_mp4_video.py
wilsonpage/gaia
d0beeca2401ff90564dfcbe45ee5237d46605ab8
[ "Apache-2.0" ]
3
2016-09-10T15:41:48.000Z
2016-09-10T15:42:41.000Z
tests/python/gaia-ui-tests/gaiatest/tests/functional/videoplayer/test_play_mp4_video.py
wilsonpage/gaia
d0beeca2401ff90564dfcbe45ee5237d46605ab8
[ "Apache-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import time from gaiatest import GaiaTestCase from gaiatest.apps.videoplayer.app import VideoPlayer class TestPlayMP4V...
34.021739
76
0.696486
b6f97d55f536b03670d0c3230f8a583dbb0f9dc9
446
py
Python
toponym_api/api/api_v1/endpoints/languages.py
iwpnd/toponym-api
5810837dc11fd9b50cd45e4abe2b673fd3cd5cf6
[ "MIT" ]
1
2020-01-25T22:53:08.000Z
2020-01-25T22:53:08.000Z
toponym_api/api/api_v1/endpoints/languages.py
iwpnd/toponym-api
5810837dc11fd9b50cd45e4abe2b673fd3cd5cf6
[ "MIT" ]
null
null
null
toponym_api/api/api_v1/endpoints/languages.py
iwpnd/toponym-api
5810837dc11fd9b50cd45e4abe2b673fd3cd5cf6
[ "MIT" ]
null
null
null
from fastapi import APIRouter from toponym import settings router = APIRouter() @router.get("/languages", tags=["supported languages"]) def topodic_supported_languages(): """ Show supported languages. This will show the user which languages are currently supported. And this path operation will: ...
23.473684
85
0.742152
86a89c0a14186bdd2d04f7dbc59017c82902b315
43,588
py
Python
myems-api/reports/shopfloorsaving.py
lijinchang3/myems
ede74ec2982e610d218095904817268951d3bc06
[ "MIT" ]
2
2021-02-19T10:22:36.000Z
2021-02-19T10:23:22.000Z
myems-api/reports/shopfloorsaving.py
tianlinzhong/myems
07dd1eb8060f4145be66c8d1a20b5e064a68281b
[ "MIT" ]
null
null
null
myems-api/reports/shopfloorsaving.py
tianlinzhong/myems
07dd1eb8060f4145be66c8d1a20b5e064a68281b
[ "MIT" ]
1
2022-01-29T14:18:47.000Z
2022-01-29T14:18:47.000Z
import falcon import simplejson as json import mysql.connector import config from datetime import datetime, timedelta, timezone from core import utilities from decimal import Decimal import excelexporters.shopfloorsaving class Reporting: @staticmethod def __init__(): pass @staticmethod def on...
62.446991
120
0.523653
f9fe95d9ebc6f39c93170c28bcc3194bd153d2f4
69,687
py
Python
drizzlepac/imgclasses.py
drdavella/drizzlepac
036364e3c2f554eabccea5f2942172cee6da4458
[ "BSD-3-Clause" ]
null
null
null
drizzlepac/imgclasses.py
drdavella/drizzlepac
036364e3c2f554eabccea5f2942172cee6da4458
[ "BSD-3-Clause" ]
null
null
null
drizzlepac/imgclasses.py
drdavella/drizzlepac
036364e3c2f554eabccea5f2942172cee6da4458
[ "BSD-3-Clause" ]
null
null
null
""" Classes to keep track of all WCS and catalog information. Used by `TweakReg`\ . :Authors: Warren Hack, Mihai Cara :License: :doc:`LICENSE` """ from __future__ import absolute_import, division, print_function import os import sys import copy import numpy as np from astropy import wcs as pywcs import stwcs from a...
43.418692
171
0.526382
d8fb4ec500e285d784288de504280b68e68cecdb
1,062
py
Python
kubernetes_asyncio/test/test_v1beta1_token_review_status.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
1
2020-03-25T01:24:27.000Z
2020-03-25T01:24:27.000Z
kubernetes_asyncio/test/test_v1beta1_token_review_status.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v1beta1_token_review_status.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.10.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import u...
25.902439
119
0.741055
cf6c338c3a0c4dc5dc6c13be458d8f7a4237cba0
44,971
py
Python
exporter.py
Nap0l30N/SDFusion
d70f869e4fdd3ed84dbf28af8cd37f6f00b0698c
[ "BSD-3-Clause" ]
null
null
null
exporter.py
Nap0l30N/SDFusion
d70f869e4fdd3ed84dbf28af8cd37f6f00b0698c
[ "BSD-3-Clause" ]
null
null
null
exporter.py
Nap0l30N/SDFusion
d70f869e4fdd3ed84dbf28af8cd37f6f00b0698c
[ "BSD-3-Clause" ]
null
null
null
import adsk.core import adsk.fusion import traceback import xml.etree.ElementTree as ET import math import xml.dom.minidom as DOM import os, errno from collections import defaultdict from .helpers import * class SDFExporter(): ui = None app = None product = None design = None exportMgr = None r...
44.262795
291
0.569767
8ab2a6da4db1620b36cb1b462573e673cfac64b0
577
py
Python
menga_cmdline/sensors_launch.py
Dunateo/Menga
724057051091b93c342cd3c51705e04e298a43da
[ "Apache-2.0" ]
1
2022-03-17T18:27:11.000Z
2022-03-17T18:27:11.000Z
menga_cmdline/sensors_launch.py
Dunateo/Menga
724057051091b93c342cd3c51705e04e298a43da
[ "Apache-2.0" ]
null
null
null
menga_cmdline/sensors_launch.py
Dunateo/Menga
724057051091b93c342cd3c51705e04e298a43da
[ "Apache-2.0" ]
null
null
null
from network_sensor import Network_sensor net = Network_sensor() #start all the sensors def start_sensors(pid, output, csvflag): fonctions = ["Network_sensor"] #normal output net.output = output #csv flas if csvflag: net.flagcsv = True net.start() #stop all the sensors def st...
19.233333
122
0.691508
da03599aeb5e99deb0340fd0a081afa7da8dfa4b
5,153
py
Python
sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/__init__.py
16pierre/azure-sdk-for-python
1505d348c6660c1d5a39630522a059a2e3e38839
[ "MIT" ]
1
2020-05-12T23:29:15.000Z
2020-05-12T23:29:15.000Z
sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/__init__.py
16pierre/azure-sdk-for-python
1505d348c6660c1d5a39630522a059a2e3e38839
[ "MIT" ]
null
null
null
sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/__init__.py
16pierre/azure-sdk-for-python
1505d348c6660c1d5a39630522a059a2e3e38839
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
37.34058
76
0.758199
1d7387232566338e4cec63a68dd7fe7802d4ccf1
1,575
py
Python
Data-wrangling-with-pandas/code.py
Ruchita102/ga-learner-dsmp-repo
741b96019b2aaf730efd3b7d1b17965b4da5e743
[ "MIT" ]
null
null
null
Data-wrangling-with-pandas/code.py
Ruchita102/ga-learner-dsmp-repo
741b96019b2aaf730efd3b7d1b17965b4da5e743
[ "MIT" ]
null
null
null
Data-wrangling-with-pandas/code.py
Ruchita102/ga-learner-dsmp-repo
741b96019b2aaf730efd3b7d1b17965b4da5e743
[ "MIT" ]
null
null
null
# -------------- import numpy as numpy import pandas as pd from scipy.stats import mode bank=pd.read_csv(path) print(bank.head()) categorical_var=bank.select_dtypes(include = 'object') print(categorical_var) numerical_var=bank.select_dtypes(include = 'number') print(numerical_var) # -------------- # code st...
19.6875
120
0.71873
62a5cebb98f3d8d76b1bbed397c1cb98a29894df
642
py
Python
django_rest_stripe/manage.py
nmrkic/django-rest-stripe
d8a642a554cdbe3db6646fe19c9eccd3c7eb3e0e
[ "Apache-2.0" ]
null
null
null
django_rest_stripe/manage.py
nmrkic/django-rest-stripe
d8a642a554cdbe3db6646fe19c9eccd3c7eb3e0e
[ "Apache-2.0" ]
9
2019-12-04T23:47:56.000Z
2022-02-10T09:52:45.000Z
django_rest_stripe/manage.py
nmrkic/django-rest-stripe
d8a642a554cdbe3db6646fe19c9eccd3c7eb3e0e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_rest_stripe.settings.dev') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
29.181818
86
0.688474
9f51c7d807648e08c76a1e3df9c5a9afc5c2b781
27,785
py
Python
tests/test_matrix.py
eriknw/pygraphblas
e32a2c7fa25f0ab3380c30e094ea1cdd405bbec6
[ "Apache-2.0" ]
null
null
null
tests/test_matrix.py
eriknw/pygraphblas
e32a2c7fa25f0ab3380c30e094ea1cdd405bbec6
[ "Apache-2.0" ]
null
null
null
tests/test_matrix.py
eriknw/pygraphblas
e32a2c7fa25f0ab3380c30e094ea1cdd405bbec6
[ "Apache-2.0" ]
null
null
null
import sys from operator import mod from itertools import product, repeat import re import pytest from pygraphblas import * from pygraphblas.base import ffi, lib, _check def test_iseq(): l = Matrix.sparse(INT8, 10, 10) l[0, 0] = 1 m = Matrix.sparse(INT8, 10, 10) m[0, 0] = 1 n = Matrix.sparse(INT...
25.894688
88
0.504769
56334a4972a19c66b3998c2e366c41de2e23b260
58,923
py
Python
venv/lib/python3.8/site-packages/azureml/core/webservice/aci.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/core/webservice/aci.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/core/webservice/aci.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- """Contains functionality for deploying machine learning models as web service endpoints on Azure Container Instances. Azure Container...
53.036004
148
0.654396
b95781e29384a02d3eab61e8caff2d8936acb87d
12,553
py
Python
deserialize.py
paulmadore/woodcoin-py
d3d4f64e9f2494c89d199a1931095fb49a4d1211
[ "MIT" ]
1
2019-04-03T00:19:31.000Z
2019-04-03T00:19:31.000Z
deserialize.py
jtobey/bitcointools
23bf4ccbf8a3b88989816beafe22bc2112593bfd
[ "MIT" ]
null
null
null
deserialize.py
jtobey/bitcointools
23bf4ccbf8a3b88989816beafe22bc2112593bfd
[ "MIT" ]
null
null
null
# # # from BCDataStream import * from enumeration import Enumeration from base58 import public_key_to_bc_address, hash_160_to_bc_address import logging import socket import time from util import short_hex, long_hex import struct def parse_CAddress(vds): d = {} d['nVersion'] = vds.read_int32() d['nTime'] = vds.r...
36.280347
121
0.661993
c1c45a83728a5ad297331d47ecb2dd99a5723ae6
674
py
Python
gbpservice/contrib/nfp/configurator/drivers/loadbalancer/v2/haproxy/haproxy_driver_constants.py
baodongli/group-based-policy
f3b892ecdc1051b204376e18679f73bf457ce7dc
[ "Apache-2.0" ]
null
null
null
gbpservice/contrib/nfp/configurator/drivers/loadbalancer/v2/haproxy/haproxy_driver_constants.py
baodongli/group-based-policy
f3b892ecdc1051b204376e18679f73bf457ce7dc
[ "Apache-2.0" ]
null
null
null
gbpservice/contrib/nfp/configurator/drivers/loadbalancer/v2/haproxy/haproxy_driver_constants.py
baodongli/group-based-policy
f3b892ecdc1051b204376e18679f73bf457ce7dc
[ "Apache-2.0" ]
null
null
null
# 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, software # d...
42.125
78
0.740356
d66ef69ef0e0c1ddb3822aa5319a3d5d97845d33
2,387
py
Python
katdal/test/test_categorical.py
kernsuite-debian/katdal
62c5732f0bf1a2b6fa8d275e7405bcb1648534b0
[ "BSD-3-Clause" ]
null
null
null
katdal/test/test_categorical.py
kernsuite-debian/katdal
62c5732f0bf1a2b6fa8d275e7405bcb1648534b0
[ "BSD-3-Clause" ]
null
null
null
katdal/test/test_categorical.py
kernsuite-debian/katdal
62c5732f0bf1a2b6fa8d275e7405bcb1648534b0
[ "BSD-3-Clause" ]
null
null
null
################################################################################ # Copyright (c) 2011-2019, National Research Foundation (Square Kilometre Array) # # Licensed under the BSD 3-Clause License (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy # of the...
45.903846
80
0.627147
e4cfcb0215c14d02e992b6484f19e94c4a6c6d1f
58
py
Python
control_block_diagram/components/connections/__init__.py
upb-lea/control-block-diagram
d1d8377d6ff8a60900580b654c975cc06ff2e564
[ "MIT" ]
4
2022-01-14T07:42:59.000Z
2022-01-24T15:05:59.000Z
control_block_diagram/components/connections/__init__.py
upb-lea/control-block-diagram
d1d8377d6ff8a60900580b654c975cc06ff2e564
[ "MIT" ]
null
null
null
control_block_diagram/components/connections/__init__.py
upb-lea/control-block-diagram
d1d8377d6ff8a60900580b654c975cc06ff2e564
[ "MIT" ]
null
null
null
from .connection import Connection from .path import Path
19.333333
34
0.827586
386570e2a6328c146903b5e94f59b0100f0c6623
7,154
py
Python
ALeFra/helper.py
limchr/ALeFra
f781fa9d9f66832493dad601217dbe0db791b070
[ "BSD-3-Clause" ]
2
2018-06-20T18:29:28.000Z
2019-10-08T13:48:34.000Z
ALeFra/helper.py
limchr/ALeFra
f781fa9d9f66832493dad601217dbe0db791b070
[ "BSD-3-Clause" ]
null
null
null
ALeFra/helper.py
limchr/ALeFra
f781fa9d9f66832493dad601217dbe0db791b070
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2018 # Christian Limberg # Centre of Excellence Cognitive Interaction Technology (CITEC) # Bielefeld University # # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistribu...
41.114943
120
0.626922
52a93bd2c233cb15f4f8c8900d6829332b649930
1,636
py
Python
utils/createDB.py
hamzy/Temp-MoltenIron-436647
836f1835219f4aef6aae2a7258fa945ad947d985
[ "Apache-2.0" ]
null
null
null
utils/createDB.py
hamzy/Temp-MoltenIron-436647
836f1835219f4aef6aae2a7258fa945ad947d985
[ "Apache-2.0" ]
null
null
null
utils/createDB.py
hamzy/Temp-MoltenIron-436647
836f1835219f4aef6aae2a7258fa945ad947d985
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Create the MoltenIron user in mysql and grant it access. """ # Copyright (c) 2016 IBM 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://ww...
25.5625
74
0.650367
a0ec80cd4507c7c03d29f1757ff3200d58a655f4
5,915
py
Python
sdk/confidentialledger/azure-mgmt-confidentialledger/azure/mgmt/confidentialledger/operations/_operations.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/confidentialledger/azure-mgmt-confidentialledger/azure/mgmt/confidentialledger/operations/_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/confidentialledger/azure-mgmt-confidentialledger/azure/mgmt/confidentialledger/operations/_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
39.697987
133
0.656298
3aa82950fa7b8a648d61d144dbf781fdb7291130
4,666
py
Python
homeassistant/components/mhz19/sensor.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
homeassistant/components/mhz19/sensor.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/mhz19/sensor.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
"""Support for CO2 sensor connected to a serial port.""" import logging from datetime import timedelta import voluptuous as vol from homeassistant.const import ( ATTR_TEMPERATURE, CONF_NAME, CONF_MONITORED_CONDITIONS, TEMP_FAHRENHEIT) from homeassistant.helpers.entity import Entity import homeassistant.helpers.co...
32.629371
78
0.666524
06202315f59ebff8bb559e3beb70b80a1f41e356
25,739
py
Python
project/encryption_verifier.py
rainbowhuanguw/electionguard-SDK
789def57a8aa6a43fa59af4e9e8bfb37ea6ebe1c
[ "MIT" ]
null
null
null
project/encryption_verifier.py
rainbowhuanguw/electionguard-SDK
789def57a8aa6a43fa59af4e9e8bfb37ea6ebe1c
[ "MIT" ]
null
null
null
project/encryption_verifier.py
rainbowhuanguw/electionguard-SDK
789def57a8aa6a43fa59af4e9e8bfb37ea6ebe1c
[ "MIT" ]
null
null
null
from typing import Tuple import json_parser, number from generator import ParameterGenerator, FilePathGenerator, VoteLimitCounter from interfaces import IBallotVerifier, IContestVerifier, ISelectionVerifier import glob """ This module is created for the encryption verification, which covers boxes 3, 4, 5 of the specif...
41.648867
121
0.635611
5c1f09e51293366477fda8ff2fd1ea5908a4a0c2
5,280
py
Python
examples/benchmark_quality/hetero_linear_regression/fate-linr.py
kakasu/FATE
cfc61ef268154e08a9e7125c047c318c5e5eb42a
[ "Apache-2.0" ]
2
2020-11-21T11:25:08.000Z
2020-11-21T11:25:11.000Z
examples/benchmark_quality/hetero_linear_regression/fate-linr.py
TroubleMaker1994/FATE
23ad848bcc7ae7f304a376d3f46f4af26872c8a2
[ "Apache-2.0" ]
null
null
null
examples/benchmark_quality/hetero_linear_regression/fate-linr.py
TroubleMaker1994/FATE
23ad848bcc7ae7f304a376d3f46f4af26872c8a2
[ "Apache-2.0" ]
1
2021-02-03T08:23:42.000Z
2021-02-03T08:23:42.000Z
# # Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
38.823529
107
0.684659
3138037c7fafa3e8dc5ff481eb6d74eaca3b89e6
17,450
py
Python
athgrammar.py
GiovanH/discord.-ATH
aa73ccd56736525a7f7018e4e11ab5b6ea706e88
[ "MIT" ]
1
2021-03-12T03:51:50.000Z
2021-03-12T03:51:50.000Z
athgrammar.py
GiovanH/discord.-ATH
aa73ccd56736525a7f7018e4e11ab5b6ea706e88
[ "MIT" ]
null
null
null
athgrammar.py
GiovanH/discord.-ATH
aa73ccd56736525a7f7018e4e11ab5b6ea706e88
[ "MIT" ]
null
null
null
"""The ~ATH interpreter grammar. This contains the token regex list used by the lexer and all the parser builders used to build the parser that creates the abstract syntax tree. """ import sys from functools import partial, reduce from lexer import Lexer from grafter import ( ItemParser, TagsParser, Graft, Se...
31.441441
85
0.542636
517b39f054780ac93c88f0d8e69db1c528bd7c87
283
py
Python
google-native-python/__main__.py
cobraz/templates
a5c7aa4348a43ec3075b64651cc607488e2c53e1
[ "Apache-2.0" ]
31
2018-06-19T21:13:01.000Z
2022-03-14T17:43:13.000Z
google-native-python/__main__.py
cobraz/templates
a5c7aa4348a43ec3075b64651cc607488e2c53e1
[ "Apache-2.0" ]
108
2018-08-10T04:12:06.000Z
2022-01-31T11:17:03.000Z
google-native-python/__main__.py
cobraz/templates
a5c7aa4348a43ec3075b64651cc607488e2c53e1
[ "Apache-2.0" ]
21
2018-09-02T18:59:10.000Z
2022-01-31T11:09:53.000Z
"""A Google Cloud Python Pulumi program""" import pulumi from pulumi_google_native.storage import v1 as storage # Create a Google Cloud resource (Storage Bucket) bucket = storage.Bucket('my-bucket') # Export the bucket self-link pulumi.export('bucketSelfLink', bucket.self_link)
23.583333
54
0.780919
680e6ed0828154814f0a7b6b95e407c192f02f39
23
py
Python
lineaug/libs/__init__.py
maxnth/LineAug
4e0928b483d0e558946ad343d615b223a63f9121
[ "MIT" ]
10
2020-04-15T09:36:22.000Z
2021-09-14T13:11:51.000Z
lineaug/libs/__init__.py
maxnth/LineAug
4e0928b483d0e558946ad343d615b223a63f9121
[ "MIT" ]
2
2020-04-23T14:58:40.000Z
2022-03-12T00:23:58.000Z
lineaug/libs/__init__.py
maxnth/LineAug
4e0928b483d0e558946ad343d615b223a63f9121
[ "MIT" ]
1
2020-04-23T15:00:50.000Z
2020-04-23T15:00:50.000Z
from .ocrodeg import *
11.5
22
0.73913
4255c5f29bd1e2ec46bab52ffa02ca80859e60c3
3,774
py
Python
pype/modules/standalonepublish/widgets/button_from_svgs.py
kalisp/pype
28bbffaf2d12ccee48313cd9985e8dfa05e81a5c
[ "MIT" ]
null
null
null
pype/modules/standalonepublish/widgets/button_from_svgs.py
kalisp/pype
28bbffaf2d12ccee48313cd9985e8dfa05e81a5c
[ "MIT" ]
null
null
null
pype/modules/standalonepublish/widgets/button_from_svgs.py
kalisp/pype
28bbffaf2d12ccee48313cd9985e8dfa05e81a5c
[ "MIT" ]
null
null
null
from xml.dom import minidom from . import QtGui, QtCore, QtWidgets from PyQt5 import QtSvg, QtXml class SvgResizable(QtSvg.QSvgWidget): clicked = QtCore.Signal() def __init__(self, filepath, width=None, height=None, fill=None): super().__init__() self.xmldoc = minidom.parse(filepath) ...
33.105263
78
0.602544
23f1fbdb5ab8f251435e534b7235ae117418fda4
6,278
py
Python
mne/viz/_brain/colormap.py
kazemakase/mne-python
9dbb10156a8faf6610f3a8d979ffe9b853dd20dd
[ "BSD-3-Clause" ]
2
2020-06-15T12:25:12.000Z
2020-09-13T11:49:51.000Z
mne/viz/_brain/colormap.py
kazemakase/mne-python
9dbb10156a8faf6610f3a8d979ffe9b853dd20dd
[ "BSD-3-Clause" ]
null
null
null
mne/viz/_brain/colormap.py
kazemakase/mne-python
9dbb10156a8faf6610f3a8d979ffe9b853dd20dd
[ "BSD-3-Clause" ]
null
null
null
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Eric Larson <larson.eric.d@gmail.com> # Oleh Kozynets <ok7mailbox@gmail.com> # Guillaume Favelier <guillaume.favelier@gmail.com> # # License: Simplified BSD import numpy as np def create_lut(cmap, n_colors=256, center=None): ...
36.08046
78
0.565626
a26840d432c04484a4c33c9a44d97851bbc866fb
1,752
py
Python
django_todopago/admin.py
fossabot/django-todopago
83a308d05bacf0b7f179812bb01ba30c32cc4653
[ "ISC" ]
3
2018-11-29T01:46:55.000Z
2019-10-23T02:37:17.000Z
django_todopago/admin.py
fossabot/django-todopago
83a308d05bacf0b7f179812bb01ba30c32cc4653
[ "ISC" ]
2
2020-02-07T12:08:03.000Z
2021-08-03T18:56:37.000Z
django_todopago/admin.py
fossabot/django-todopago
83a308d05bacf0b7f179812bb01ba30c32cc4653
[ "ISC" ]
3
2019-07-20T23:41:32.000Z
2021-12-01T21:26:55.000Z
from django.contrib import admin from django.db.models import F from django.utils.translation import ugettext_lazy as _ from django_todopago import models @admin.register(models.Merchant) class MerchantAdmin(admin.ModelAdmin): list_display = ( 'name', 'merchant_id', 'sandbox', ) cla...
22.177215
60
0.634132
fa40cf33525ce44ad97aaca6465ba5b81bb6dd6c
2,166
py
Python
Routes/BotBlueprint.py
sebampuero/dummy-discord-bot
030bc6483c501ad80b6a504e886b47b41da3f609
[ "MIT" ]
null
null
null
Routes/BotBlueprint.py
sebampuero/dummy-discord-bot
030bc6483c501ad80b6a504e886b47b41da3f609
[ "MIT" ]
1
2021-03-31T19:48:15.000Z
2021-03-31T19:48:15.000Z
Routes/BotBlueprint.py
sebampuero/dummy-discord-bot
030bc6483c501ad80b6a504e886b47b41da3f609
[ "MIT" ]
null
null
null
from flask import Blueprint, request, jsonify, render_template from Utils.NetworkUtils import NetworkUtils import Constants.StringConstants as Constants from BE.BotBE import BotBE from types import SimpleNamespace from Functionalities.Voice.VoiceState import Speak, Salute from Utils.TTS import TTS async def say(data, ...
42.470588
85
0.676362
6ccb8c83a7c0b2889793b0e6b61af17dc7ac6ee8
383
py
Python
OMS/OMS/wsgi.py
DevLemp/OMS
5fec7b4a1e80c83f118411405fbd8da7138a7c36
[ "MIT" ]
null
null
null
OMS/OMS/wsgi.py
DevLemp/OMS
5fec7b4a1e80c83f118411405fbd8da7138a7c36
[ "MIT" ]
null
null
null
OMS/OMS/wsgi.py
DevLemp/OMS
5fec7b4a1e80c83f118411405fbd8da7138a7c36
[ "MIT" ]
null
null
null
""" WSGI config for OMS project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_...
22.529412
78
0.780679
c5e5438b490766c5e28ad431351c38179abf6aa8
2,360
py
Python
Product/management/commands/create_db.py
Jinr0h404/projet10
8d344c6257a7f9436d2ead0a7c12a4da05991fc1
[ "OML" ]
null
null
null
Product/management/commands/create_db.py
Jinr0h404/projet10
8d344c6257a7f9436d2ead0a7c12a4da05991fc1
[ "OML" ]
null
null
null
Product/management/commands/create_db.py
Jinr0h404/projet10
8d344c6257a7f9436d2ead0a7c12a4da05991fc1
[ "OML" ]
null
null
null
from django.core.management.base import BaseCommand from Product.models import Product, Category, Store from .api_get import Api_get class Command(BaseCommand): help = "initialize database" def handle(self, *args, **kwargs): """retrieve a list of products in JSON format through Open Food Fact ...
44.528302
82
0.569492
8d592facbbaeecc5c30ed4c7458cb0c4257896b7
3,632
py
Python
projects/QQP/dataset/data_utils.py
Kitten97/libai
4ca0341628dc0b850acbc30d3766797cfc8a6c86
[ "Apache-2.0" ]
55
2021-12-10T08:47:06.000Z
2022-03-28T09:02:15.000Z
projects/QQP/dataset/data_utils.py
Kitten97/libai
4ca0341628dc0b850acbc30d3766797cfc8a6c86
[ "Apache-2.0" ]
106
2021-11-03T05:16:45.000Z
2022-03-31T06:16:23.000Z
projects/QQP/dataset/data_utils.py
Kitten97/libai
4ca0341628dc0b850acbc30d3766797cfc8a6c86
[ "Apache-2.0" ]
13
2021-12-29T08:12:08.000Z
2022-03-28T06:59:45.000Z
# coding=utf-8 # Copyright 2021 The OneFlow 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 require...
29.770492
98
0.673733
506264ff88d91cde6b40d9802bd55216d2f4eecb
7,353
py
Python
azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/virtual_machine_run_commands_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/virtual_machine_run_commands_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/virtual_machine_run_commands_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
43.767857
144
0.649939
65c574bab8aceb2703c6707f87a22b9a615ce1c1
2,530
py
Python
.venv/lib/python2.7/site-packages/kombu/utils/limits.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
null
null
null
.venv/lib/python2.7/site-packages/kombu/utils/limits.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
1
2017-07-21T05:54:11.000Z
2017-09-07T13:54:09.000Z
.venv/lib/python2.7/site-packages/kombu/utils/limits.py
MansoorHanif/FYP-web-app
918008d3b5eedaa904f3e720296afde9d73ac3f4
[ "BSD-3-Clause" ]
1
2019-03-07T04:30:36.000Z
2019-03-07T04:30:36.000Z
"""Token bucket implementation for rate limiting.""" from __future__ import absolute_import, unicode_literals from collections import deque from kombu.five import monotonic __all__ = ['TokenBucket'] class TokenBucket(object): """Token Bucket Algorithm. See Also: http://en.wikipedia.org/wiki/Token_...
30.119048
79
0.624111
17108784fb0e049b6413425e10bf61d1272d57a4
588,957
py
Python
src/resources.py
Patitotective/Password-Generator-GUI
3c3ffb3c8e5c454b982b7d6beb53d660b43a9835
[ "MIT" ]
3
2021-08-22T00:53:03.000Z
2021-11-19T01:08:16.000Z
src/resources.py
Patitotective/password_generator_gui
3c3ffb3c8e5c454b982b7d6beb53d660b43a9835
[ "MIT" ]
null
null
null
src/resources.py
Patitotective/password_generator_gui
3c3ffb3c8e5c454b982b7d6beb53d660b43a9835
[ "MIT" ]
1
2021-08-23T16:36:22.000Z
2021-08-23T16:36:22.000Z
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x02\x13\x8c\ \x00\ \x01\x00\x00\x00\x13\x01\x00\x00\x04\x00\x30\x44\x53\x49\x47\x25\ \x9e\x49\x5c\x...
65.695148
129
0.727255
1d559ba577f8efcc96dc79a1e36caf47afe374eb
2,618
py
Python
istiodemo/sa-jwt.py
joek/kubeless-istio
cd55324d3369d459b22242203639e221ed904c26
[ "MIT" ]
3
2018-03-02T06:47:25.000Z
2020-04-19T06:59:43.000Z
istiodemo/sa-jwt.py
joek/kubeless-istio
cd55324d3369d459b22242203639e221ed904c26
[ "MIT" ]
1
2018-04-24T07:41:24.000Z
2018-04-24T12:39:50.000Z
istiodemo/sa-jwt.py
joek/kubeless-istio
cd55324d3369d459b22242203639e221ed904c26
[ "MIT" ]
1
2018-04-19T13:13:26.000Z
2018-04-19T13:13:26.000Z
#!/usr/bin/python # Copyright 2018 Istio 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 a...
33.139241
120
0.642857
a10c70ff9a70ce262b5e4f7b339809b053e4ffac
38,520
py
Python
python/sbp/tracking.py
Patrick-Luo-THR/libsbp
d42e4a1e3cedf6a82b1d993b82e0da148401f80d
[ "MIT" ]
65
2015-03-25T10:28:10.000Z
2022-02-24T12:36:49.000Z
python/sbp/tracking.py
Patrick-Luo-THR/libsbp
d42e4a1e3cedf6a82b1d993b82e0da148401f80d
[ "MIT" ]
654
2015-03-24T17:43:55.000Z
2022-03-31T21:42:49.000Z
python/sbp/tracking.py
Patrick-Luo-THR/libsbp
d42e4a1e3cedf6a82b1d993b82e0da148401f80d
[ "MIT" ]
110
2015-03-24T17:38:35.000Z
2022-03-21T02:05:19.000Z
#!/usr/bin/env python # Copyright (C) 2015-2021 Swift Navigation Inc. # Contact: https://support.swiftnav.com # # This source is subject to the license found in the file 'LICENSE' which must # be be distributed together with this source. All other rights reserved. # # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHO...
29.071698
87
0.640862
cf827d08201cd2855193d306ac2202eda510ca48
2,578
py
Python
coordinator/EdgeOracles/random_sanitizer_oracle.py
cponcelets/savior-source
ac553cafba66663399eebccec58d16277bd1718e
[ "Apache-2.0" ]
122
2019-11-12T18:43:32.000Z
2022-01-30T15:11:43.000Z
coordinator/EdgeOracles/random_sanitizer_oracle.py
cponcelets/savior-source
ac553cafba66663399eebccec58d16277bd1718e
[ "Apache-2.0" ]
14
2020-04-02T07:31:46.000Z
2022-03-25T07:35:59.000Z
coordinator/EdgeOracles/random_sanitizer_oracle.py
cponcelets/savior-source
ac553cafba66663399eebccec58d16277bd1718e
[ "Apache-2.0" ]
34
2019-11-12T18:43:34.000Z
2021-12-22T07:46:03.000Z
#!/usr/bin/env python import random import sys import csv from utils import bcolors from operator import itemgetter import ConfigParser import utils import os from ConfigParser import NoOptionError def oracle_info(s): print bcolors.HEADER+"[Edge-Oracle-Info]"+bcolors.ENDC, "{0}".format(s) class RandomSanitizerOra...
34.373333
107
0.544608
5f824b4d21b04a27e1dc2124a1fbe53aedb50080
565
py
Python
src/django-nonrel/tests/modeltests/many_to_one_null/models.py
adamjmcgrath/glancydesign
826ede7c639879d5b79ee730eb5e91422768cb02
[ "BSD-3-Clause" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
tests/modeltests/many_to_one_null/models.py
mradziej/django
5d38965743a369981c9a738a298f467f854a2919
[ "BSD-3-Clause" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
tests/modeltests/many_to_one_null/models.py
mradziej/django
5d38965743a369981c9a738a298f467f854a2919
[ "BSD-3-Clause" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
""" 16. Many-to-one relationships that can be null To define a many-to-one relationship that can have a null foreign key, use ``ForeignKey()`` with ``null=True`` . """ from django.db import models class Reporter(models.Model): name = models.CharField(max_length=30) def __unicode__(self): return self...
22.6
74
0.688496
23625cd2d9c24a7121ff4bf8563be35d26bbb7b9
6,620
py
Python
libcity/data/dataset/trajectory_encoder/stan_encoder.py
moghadas76/test_bigcity
607b9602c5b1113b23e1830455e174b0901d7558
[ "Apache-2.0" ]
221
2021-09-06T03:33:31.000Z
2022-03-28T05:36:49.000Z
libcity/data/dataset/trajectory_encoder/stan_encoder.py
moghadas76/test_bigcity
607b9602c5b1113b23e1830455e174b0901d7558
[ "Apache-2.0" ]
43
2021-09-19T16:12:28.000Z
2022-03-31T16:29:03.000Z
libcity/data/dataset/trajectory_encoder/stan_encoder.py
moghadas76/test_bigcity
607b9602c5b1113b23e1830455e174b0901d7558
[ "Apache-2.0" ]
64
2021-09-06T07:56:10.000Z
2022-03-25T08:48:35.000Z
import os import numpy as np import pandas as pd from math import radians, cos, sin, asin, sqrt from libcity.data.dataset.trajectory_encoder.abstract_trajectory_encoder import AbstractTrajectoryEncoder from libcity.utils import parse_time, cal_timeoff from libcity.utils.dataset import parse_coordinate from tqdm import ...
41.63522
112
0.564653
815ba6cbc19183be6ea76878517b46e4455abff5
6,258
py
Python
data-truth/zoltar-truth-data.py
TaoSunVoyage/covid19-forecast-hub
e4421f09caf18c90b07a665fba4ecdd61391078f
[ "MIT" ]
1
2020-09-25T11:36:55.000Z
2020-09-25T11:36:55.000Z
data-truth/zoltar-truth-data.py
karschau/covid19-forecast-hub
d4180d30af94f3960579b960b12cbe77584d5ef4
[ "MIT" ]
null
null
null
data-truth/zoltar-truth-data.py
karschau/covid19-forecast-hub
d4180d30af94f3960579b960b12cbe77584d5ef4
[ "MIT" ]
null
null
null
import json from zoltpy import util import pandas as pd import pymmwr as pm import datetime import warnings import requests import io warnings.simplefilter(action='ignore') def get_epi_data(date): format_str = '%m/%d/%y' # The format dt = datetime.datetime.strptime(date, format_str).date() epi = pm.date_...
36.811765
151
0.629115
89e6c5a94715e4230f3d195a77ce4b6e9af91740
460
py
Python
python/UPlayerBackend/venv/Scripts/easy_install-script.py
zhclwr/demo
c6ddd2f3f3752e4badeab05eaeb1c0adf5e66201
[ "MIT" ]
null
null
null
python/UPlayerBackend/venv/Scripts/easy_install-script.py
zhclwr/demo
c6ddd2f3f3752e4badeab05eaeb1c0adf5e66201
[ "MIT" ]
2
2020-06-03T02:31:02.000Z
2021-07-15T01:59:10.000Z
python/UPlayerBackend/venv/Scripts/easy_install-script.py
zhclwr/demo
c6ddd2f3f3752e4badeab05eaeb1c0adf5e66201
[ "MIT" ]
null
null
null
#!C:\Users\Alex\Desktop\demo\python\UPlayerBackend\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-scrip...
35.384615
83
0.7
322be18d1e17c08e49c4456ebf43f80af70e5d78
665
py
Python
blog/blocks.py
frueringborgerforening/fruering
cb482268272698d34482dbb956b79f0d114e1834
[ "MIT" ]
1
2018-05-14T20:19:42.000Z
2018-05-14T20:19:42.000Z
blog/blocks.py
andreasbrakhagecarstensen/fruering
cb482268272698d34482dbb956b79f0d114e1834
[ "MIT" ]
78
2018-03-18T09:36:26.000Z
2019-12-16T21:06:09.000Z
blog/blocks.py
andreasbrakhagecarstensen/fruering
cb482268272698d34482dbb956b79f0d114e1834
[ "MIT" ]
null
null
null
from wagtail.core import blocks from wagtail.core.blocks import StructBlock from .models import BlogIndexPage class BlogIndexPageBlock(StructBlock): block_title = blocks.CharBlock(required=True, max_length=80) blog_page = blocks.PageChooserBlock(target_model=BlogIndexPage) def get_context(self, value, p...
33.25
92
0.730827
9a99528fccaf579e86d6c442df56d6edc655be34
1,383
py
Python
social_app/urls.py
hanahamberno/project-a-23
a136b70a142ad810f0c7cdafeafe6529edf52004
[ "OLDAP-2.5" ]
null
null
null
social_app/urls.py
hanahamberno/project-a-23
a136b70a142ad810f0c7cdafeafe6529edf52004
[ "OLDAP-2.5" ]
null
null
null
social_app/urls.py
hanahamberno/project-a-23
a136b70a142ad810f0c7cdafeafe6529edf52004
[ "OLDAP-2.5" ]
null
null
null
"""RoommateFinder URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
40.676471
104
0.725235
ba992dab78534daf6e076057b771c16e0f9f828c
2,978
py
Python
lib/reportlab/graphics/samples/simple_pie.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
5
2016-05-08T23:51:38.000Z
2021-05-02T10:09:29.000Z
src/lib/reportlab/graphics/samples/simple_pie.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
null
null
null
src/lib/reportlab/graphics/samples/simple_pie.py
tschalch/pyTray
ab26c7d4618c16f1ef6df45f7c8bae81f08f855b
[ "BSD-3-Clause" ]
1
2018-01-16T16:03:44.000Z
2018-01-16T16:03:44.000Z
#Autogenerated by ReportLab guiedit do not edit from reportlab.graphics.charts.piecharts import Pie from reportlab.graphics.widgets.grids import ShadedRect from reportlab.graphics.charts.legends import Legend from reportlab.graphics.shapes import Drawing, _DrawingEditorMixin, String from reportlab.graphics.charts....
48.819672
100
0.603425
30f37bfc94c30b30f6c7869c33d925a43dfb75b7
306
py
Python
Validation/EventGenerator/python/WValidation_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Validation/EventGenerator/python/WValidation_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Validation/EventGenerator/python/WValidation_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer wValidation = DQMEDAnalyzer('WValidation', hepmcCollection = cms.InputTag("generatorSmeared"), decaysTo = cms.int32(11), name = cms.string("Electrons"), UseWeightFromHepMC = cms.bool(True) )
30.6
56
0.75817
d2075ecab9e06d31bff9e4ee6a268fdeea6399a4
3,119
py
Python
Modules/Gekokujo_vanilla_enhanced/Code/Module_system/header_parties.py
roalyr/gekokujo_vanilla_enhanced
84d8cc1033be98357ac139fafbc1c10851274019
[ "MIT" ]
1
2021-01-17T06:21:36.000Z
2021-01-17T06:21:36.000Z
Modules/Gekokujo_vanilla_enhanced/Code/Module_system/header_parties.py
roalyr/gekokujo_vanilla_enhanced
84d8cc1033be98357ac139fafbc1c10851274019
[ "MIT" ]
2
2021-01-17T12:57:37.000Z
2021-02-08T02:16:45.000Z
Modules/Gekokujo_vanilla_enhanced/Code/Module_system/header_parties.py
roalyr/gekokujo_vanilla_enhanced
84d8cc1033be98357ac139fafbc1c10851274019
[ "MIT" ]
null
null
null
################################################### # header_parties.py # This file contains declarations for parties # DO NOT EDIT THIS FILE! ################################################### from header_common import * # #pf_min_strength(x) pf_icon_mask = 0x000000ff pf_disabled ...
28.099099
97
0.679384
52f9e42e65096132a3b49a54eaa4ea2004d3dcfd
5,023
py
Python
DEODR/examples/rgb_image_hand_fitting.py
Vozf/DEODR
e56cacffa4026170a6a0df01103de537e66e2111
[ "BSD-2-Clause" ]
1
2021-04-02T16:48:44.000Z
2021-04-02T16:48:44.000Z
DEODR/examples/rgb_image_hand_fitting.py
Vozf/DEODR
e56cacffa4026170a6a0df01103de537e66e2111
[ "BSD-2-Clause" ]
null
null
null
DEODR/examples/rgb_image_hand_fitting.py
Vozf/DEODR
e56cacffa4026170a6a0df01103de537e66e2111
[ "BSD-2-Clause" ]
null
null
null
from DEODR import readObj from scipy.misc import imread, imsave import numpy as np import matplotlib.pyplot as plt import copy import cv2 import time import datetime import glob import json import os def example_rgb_hand_fitting( dl_library="pytorch", plot_curves=True, save_images=True, display=True ): if dl_...
29.89881
134
0.564802
13a6a6b287d854fa70d4217521e3f0126c4e7d3c
6,755
py
Python
Codes/Python32/Lib/idlelib/SearchEngine.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
319
2016-09-22T15:54:48.000Z
2022-03-18T02:36:58.000Z
Codes/Python32/Lib/idlelib/SearchEngine.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
9
2016-11-03T21:56:41.000Z
2020-08-09T19:27:37.000Z
Codes/Python32/Lib/idlelib/SearchEngine.py
eyantra/FireBird_Swiss_Knife
cac322cf28e2d690b86ba28a75e87551e5e47988
[ "MIT" ]
27
2016-10-06T16:05:32.000Z
2022-03-18T02:37:00.000Z
import re from tkinter import * import tkinter.messagebox as tkMessageBox def get(root): if not hasattr(root, "_searchengine"): root._searchengine = SearchEngine(root) # XXX This will never garbage-collect -- who cares return root._searchengine class SearchEngine: def __init__(self, root)...
30.565611
71
0.521244
d75dd7394bf56ddb52d4fcad52108e4fd16eb58b
58
py
Python
hello.py
Anilkumar95/python-75-hackathon
0cc9304e46ceace826090614b46d8048a068d106
[ "MIT" ]
null
null
null
hello.py
Anilkumar95/python-75-hackathon
0cc9304e46ceace826090614b46d8048a068d106
[ "MIT" ]
null
null
null
hello.py
Anilkumar95/python-75-hackathon
0cc9304e46ceace826090614b46d8048a068d106
[ "MIT" ]
2
2019-01-27T16:59:48.000Z
2019-01-29T13:07:40.000Z
#print("Hello world") print("This line will be printed.")
19.333333
35
0.706897
01e10e2882f8c910e70ee1ac09f01b5d19179b01
8,190
py
Python
pool/singleton.py
Spare-Network/pool-reference
c4c9b10b28ffadefa330c6716b0c271f79431bad
[ "Apache-2.0" ]
null
null
null
pool/singleton.py
Spare-Network/pool-reference
c4c9b10b28ffadefa330c6716b0c271f79431bad
[ "Apache-2.0" ]
null
null
null
pool/singleton.py
Spare-Network/pool-reference
c4c9b10b28ffadefa330c6716b0c271f79431bad
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional, Tuple import logging from blspy import G2Element from spare.consensus.coinbase import pool_parent_id from spare.pools.pool_puzzles import ( create_absorb_spend, solution_to_extra_data, get_most_recent_singleton_coin_from_coin_solution, pool_state_to_inner_puzzle, ...
42.216495
120
0.707326
d947c53544d954bbcc67365f5295dcec809d43a2
47,270
py
Python
tests/ope/test_ipw_estimators_slate.py
st-tech/zr-obp
621720b87e1c2c95605226d53433d71e6038e595
[ "Apache-2.0" ]
387
2020-07-19T14:56:36.000Z
2022-03-29T15:25:21.000Z
tests/ope/test_ipw_estimators_slate.py
st-tech/zr-obp
621720b87e1c2c95605226d53433d71e6038e595
[ "Apache-2.0" ]
89
2020-10-04T17:04:42.000Z
2022-03-27T10:43:15.000Z
tests/ope/test_ipw_estimators_slate.py
st-tech/zr-obp
621720b87e1c2c95605226d53433d71e6038e595
[ "Apache-2.0" ]
53
2020-08-18T09:52:22.000Z
2022-03-30T23:16:13.000Z
import numpy as np import pytest from obp.dataset import linear_behavior_policy_logit from obp.dataset import logistic_reward_function from obp.dataset import SyntheticSlateBanditDataset from obp.ope import SelfNormalizedSlateIndependentIPS from obp.ope import SelfNormalizedSlateRewardInteractionIPS from obp.ope impor...
34.50365
184
0.65367
06d91fea9674836b4f63d9cca90226527fd55185
4,135
py
Python
test_python.py
jhoonb/lstr
6e1109dc244f1ec9b901be7121cb53f58a885bec
[ "MIT" ]
null
null
null
test_python.py
jhoonb/lstr
6e1109dc244f1ec9b901be7121cb53f58a885bec
[ "MIT" ]
null
null
null
test_python.py
jhoonb/lstr
6e1109dc244f1ec9b901be7121cb53f58a885bec
[ "MIT" ]
null
null
null
# # script apenas para teste de comparação com Lua. # Jhonathan Paulo Banczek. 2020 - jpbanczek@gmail.com - github.com/jhoonb # from timeit import default_timer as timer file_name = "test_EntireBible-CPDV.json" with open(file_name, "r") as f: bible = f.read() # words = ('lord', 'Lord', # 'angel', 'Angel', ...
26.50641
86
0.582588
d260a94d704d3ca843271f054aa061e7d921209e
5,269
py
Python
server/endpoints/details.py
mscherer/clc
51e31301e78fdafc0126e482d777be0db1b38f46
[ "Apache-2.0" ]
5
2021-05-25T15:56:26.000Z
2021-09-13T17:45:30.000Z
server/endpoints/details.py
mscherer/clc
51e31301e78fdafc0126e482d777be0db1b38f46
[ "Apache-2.0" ]
45
2021-06-04T03:02:46.000Z
2022-02-01T15:05:42.000Z
server/endpoints/details.py
mscherer/clc
51e31301e78fdafc0126e482d777be0db1b38f46
[ "Apache-2.0" ]
8
2021-05-21T11:35:58.000Z
2022-01-31T16:18:44.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, ...
42.152
114
0.555324
7dbf7b1f70ed17bf255bb593eaffe9ae45fdf5e9
3,245
py
Python
motion/probabilistic/comparison_rrt.py
takuya-ki/wrs
f6e1009b94332504042fbde9b39323410394ecde
[ "MIT" ]
23
2021-04-02T09:02:04.000Z
2022-03-22T05:31:03.000Z
motion/probabilistic/comparison_rrt.py
takuya-ki/wrs
f6e1009b94332504042fbde9b39323410394ecde
[ "MIT" ]
35
2021-04-12T09:41:05.000Z
2022-03-26T13:32:46.000Z
motion/probabilistic/comparison_rrt.py
takuya-ki/wrs
f6e1009b94332504042fbde9b39323410394ecde
[ "MIT" ]
16
2021-03-30T11:55:45.000Z
2022-03-30T07:10:59.000Z
import numpy as np import robot_sim._kinematics.jlchain as jl import robot_sim.robots.robot_interface as ri import rrt import rrt_star as rrts class XYBot(ri.RobotInterface): def __init__(self, pos=np.zeros(3), rotmat=np.eye(3), name='XYBot'): super().__init__(pos=pos, rotmat=rotmat, name=name) s...
31.813725
75
0.556549
ce9d6d117acb2ff17539848254ffedd26fd915c3
83,853
py
Python
python/pyarrow/tests/test_convert_pandas.py
dustmop/arrow
e34057c4b4be8c7abf3537dd4998b5b38919ba73
[ "Apache-2.0" ]
null
null
null
python/pyarrow/tests/test_convert_pandas.py
dustmop/arrow
e34057c4b4be8c7abf3537dd4998b5b38919ba73
[ "Apache-2.0" ]
null
null
null
python/pyarrow/tests/test_convert_pandas.py
dustmop/arrow
e34057c4b4be8c7abf3537dd4998b5b38919ba73
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "...
35.217556
79
0.564869
c3f47a2c00c8584fef3ffe256c49116c480ab634
68,975
py
Python
source/libs/dell_api.py
realworldtech/openstack_replays
1dc3ea69d983869ef06fa870505093d19a13f6a2
[ "MIT" ]
null
null
null
source/libs/dell_api.py
realworldtech/openstack_replays
1dc3ea69d983869ef06fa870505093d19a13f6a2
[ "MIT" ]
null
null
null
source/libs/dell_api.py
realworldtech/openstack_replays
1dc3ea69d983869ef06fa870505093d19a13f6a2
[ "MIT" ]
null
null
null
# Copyright 2015 Dell 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 agree...
42.761934
91
0.552084
64cf12c5002ab57e0024dc993167121b0c3b89a7
1,096
py
Python
Seeder/contracts/cron.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/contracts/cron.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/contracts/cron.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
from datetime import date from django.core.mail import send_mail from django.utils.html import strip_tags from . import constants from .models import Contract, EmailNegotiation def expire_contracts(): today = date.today() expired = Contract.objects.filter( valid_to__lte=today, state=constant...
24.355556
66
0.641423
1e18c135485ef06321924d6ebd23160d5808cc74
6,412
py
Python
main.py
cedricWassenaar/Robot-Simulation-PyQt5
88256050c8f2ed8b3e8c25d4be2305b427527866
[ "MIT" ]
6
2020-07-29T02:37:07.000Z
2022-03-12T21:30:50.000Z
main.py
cedricWassenaar/Robot-Simulation-PyQt5
88256050c8f2ed8b3e8c25d4be2305b427527866
[ "MIT" ]
null
null
null
main.py
cedricWassenaar/Robot-Simulation-PyQt5
88256050c8f2ed8b3e8c25d4be2305b427527866
[ "MIT" ]
3
2019-09-02T08:35:56.000Z
2020-03-28T11:44:36.000Z
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QSlider, QLabel from PyQt5 import QtGui from PyQt5.QtCore import QTimer import pyqtgraph.opengl as gl import sys import numpy as np # External files needed: from qtframeV3 import QtMain # PyQt framework from DOF3_Robot import Robot # OpenGL Robot object ...
34.28877
79
0.534934
72a4a12e2c6e29b125710835302ecaa140a14b54
5,785
py
Python
preprocessing/proc.py
xmannyh/WSD_NNLM
0c012358f6df1661a8f348bde16e10c2e4cce325
[ "MIT" ]
null
null
null
preprocessing/proc.py
xmannyh/WSD_NNLM
0c012358f6df1661a8f348bde16e10c2e4cce325
[ "MIT" ]
null
null
null
preprocessing/proc.py
xmannyh/WSD_NNLM
0c012358f6df1661a8f348bde16e10c2e4cce325
[ "MIT" ]
null
null
null
from nltk.stem import WordNetLemmatizer import time import sys import pickle import numpy as np import collections ################################################ # globals end_token = '#END#' start_token = '#START#' unk_token = '#UNK#' miss_token = '#MISS#' tokens = [end_token, start_token, unk_token] #max sen...
29.365482
101
0.490233
cfddd06bdaae7f81df672553d426dcee7a8efd1f
3,400
py
Python
run.py
XHJ-Keai/SDKGWebAPI
24d57fbe0769b5ba840798590748f5b5104fae3a
[ "MIT" ]
null
null
null
run.py
XHJ-Keai/SDKGWebAPI
24d57fbe0769b5ba840798590748f5b5104fae3a
[ "MIT" ]
null
null
null
run.py
XHJ-Keai/SDKGWebAPI
24d57fbe0769b5ba840798590748f5b5104fae3a
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request from flask_cors import CORS from sckg.graph import SoftwareKG from util.log_util import LogUtil from util.path_util import PathUtil app = Flask(__name__) cors = CORS(app, resources={r"/*": {"origins": "*"}}) graph_path = PathUtil.graph_data("KG", "V1.0.0") tree = PathUtil.tri...
31.481481
95
0.672059
f5740e166a61ccca512b1bb78f0189e3330235db
9,630
py
Python
main.py
Makuta11/AlertNess
a44c560d16980e0a9df121d9a2a4837257b83ae0
[ "MIT" ]
null
null
null
main.py
Makuta11/AlertNess
a44c560d16980e0a9df121d9a2a4837257b83ae0
[ "MIT" ]
null
null
null
main.py
Makuta11/AlertNess
a44c560d16980e0a9df121d9a2a4837257b83ae0
[ "MIT" ]
null
null
null
######################################################################################## ############### Imports ############### ######################################################################################## import tensorflow as tf print(tf.__version__) from t...
38.52
104
0.55649
ef9fff690b6de0045a4827bfb8d949a9549c87fc
4,155
py
Python
backend/api/app/database/JobModel.py
nai98x/SearchJobs
19a3ce0ba5048a07614a8b1ac569d2ecff7a6bd7
[ "MIT" ]
null
null
null
backend/api/app/database/JobModel.py
nai98x/SearchJobs
19a3ce0ba5048a07614a8b1ac569d2ecff7a6bd7
[ "MIT" ]
null
null
null
backend/api/app/database/JobModel.py
nai98x/SearchJobs
19a3ce0ba5048a07614a8b1ac569d2ecff7a6bd7
[ "MIT" ]
null
null
null
from app.database.db import db, BaseModelMixin from datetime import datetime from ..common.error_handling import ObjectNotFound from sqlalchemy import func class Job(db.Model, BaseModelMixin): id = db.Column(db.Integer, primary_key=True) url = db.Column(db.String, nullable=False) title = db.Column(db.Strin...
39.571429
130
0.624789
49eec9faae4bc89f60434278b329e3d430125380
3,579
py
Python
Blender/Hypercube_BlenderScript.py
Shapkofil/Tessaract
0d7efdd2ee239f6abebbc9ebfd0adaf387c9206c
[ "MIT" ]
2
2021-09-08T12:51:56.000Z
2022-01-02T01:24:19.000Z
Blender/Hypercube_BlenderScript.py
Shapkofil/Tessaract
0d7efdd2ee239f6abebbc9ebfd0adaf387c9206c
[ "MIT" ]
null
null
null
Blender/Hypercube_BlenderScript.py
Shapkofil/Tessaract
0d7efdd2ee239f6abebbc9ebfd0adaf387c9206c
[ "MIT" ]
1
2021-05-30T22:16:15.000Z
2021-05-30T22:16:15.000Z
import bpy import numpy as np class Tessaract: #constructor default case being a 2X2 tessaract def __init__(self,dimentions = [[-1,-1,-1,-1],[1,1,1,1]],faces = [(6, 4, 12, 14), (8, 10, 14, 12), (2, 6, 14, 10), (0, 4, 6, 2), (10, 8, 0, 2), (4, 0, 8, 12), (4, 5, 7, 6), (13, 12, 14, 15), (7, 5, 13, 15), (15, 14,...
38.074468
443
0.605756
84f0fbeb18147b2abff8a0e15937cad80496272f
344
py
Python
extra_apps/pagedown/settings.py
txqzzz/831net-backend
c73167124b6a10a774e873389900d31fb15a842c
[ "CC0-1.0" ]
null
null
null
extra_apps/pagedown/settings.py
txqzzz/831net-backend
c73167124b6a10a774e873389900d31fb15a842c
[ "CC0-1.0" ]
null
null
null
extra_apps/pagedown/settings.py
txqzzz/831net-backend
c73167124b6a10a774e873389900d31fb15a842c
[ "CC0-1.0" ]
null
null
null
from django.conf import settings SHOW_PREVIEW = getattr(settings, 'PAGEDOWN_SHOW_PREVIEW', True) WIDGET_TEMPLATE = getattr(settings, 'PAGEDOWN_WIDGET_TEMPLATE', 'pagedown/widgets/default.html') WIDGET_CSS = getattr(settings, 'PAGEDOWN_WIDGET_CSS', ('pagedown/demo/browser/demo.css',)) EXTENSIONS = getattr(settings, 'PA...
49.142857
96
0.796512
03ac665df42266f44900c1613d9af52e2b590be6
31,527
py
Python
eodag/utils/__init__.py
CS-SI/eodag
5400db484dc95b5e42e96ee05578a8fa261e86d0
[ "Apache-2.0" ]
149
2019-12-13T21:12:36.000Z
2022-03-26T09:56:31.000Z
eodag/utils/__init__.py
CS-SI/eodag
5400db484dc95b5e42e96ee05578a8fa261e86d0
[ "Apache-2.0" ]
200
2020-06-18T17:30:58.000Z
2022-03-30T09:54:59.000Z
eodag/utils/__init__.py
CS-SI/eodag
5400db484dc95b5e42e96ee05578a8fa261e86d0
[ "Apache-2.0" ]
23
2019-12-12T14:36:49.000Z
2022-03-29T07:11:28.000Z
# -*- coding: utf-8 -*- # Copyright 2021, CS GROUP - France, https://www.csgroup.eu/ # # This file is part of EODAG project # https://www.github.com/CS-SI/EODAG # # 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 c...
34.380589
117
0.593967
1dd8bfde36e4f9b94bbd0576aca495b56c884592
8,657
py
Python
kubernetes/client/models/v1_persistent_volume_claim_condition.py
fsduser/python
2b20069ebc05283352fbdc95bbdca2b6133a4175
[ "Apache-2.0" ]
1
2021-10-15T13:05:45.000Z
2021-10-15T13:05:45.000Z
kubernetes/client/models/v1_persistent_volume_claim_condition.py
belajarqywok/python
b15bea16a87ad03136a4627941ac437582ea4657
[ "Apache-2.0" ]
10
2020-10-01T03:15:01.000Z
2022-03-01T03:06:31.000Z
kubernetes/client/models/v1_persistent_volume_claim_condition.py
belajarqywok/python
b15bea16a87ad03136a4627941ac437582ea4657
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.19 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
33.168582
232
0.637634
edebf785873fa88553f407a0bd4437b03639caad
1,295
py
Python
ark/assemble/espull_statemachine.py
baidu/ARK
430f20904a01ee0ec9d579c87b02e874f5eaf6d0
[ "MIT" ]
57
2018-07-14T02:56:38.000Z
2022-01-27T12:24:58.000Z
ark/assemble/espull_statemachine.py
baidu/ARK
430f20904a01ee0ec9d579c87b02e874f5eaf6d0
[ "MIT" ]
1
2018-10-09T04:41:32.000Z
2018-10-11T05:44:35.000Z
ark/assemble/espull_statemachine.py
baidu/ARK
430f20904a01ee0ec9d579c87b02e874f5eaf6d0
[ "MIT" ]
18
2018-07-18T05:54:32.000Z
2022-03-18T11:01:50.000Z
# -*- coding: UTF-8 -*- ################################################################################ # # Copyright (c) 2018 Baidu.com, Inc. All Rights Reserved # ################################################################################ """ 使用elasticsearch进行感知的状态机Guardian """ import ark.are.decision ...
34.078947
81
0.572973
cffcf7c26cd82226995466257bf183940b5d2bbc
199
py
Python
tests/test_show_execution.py
mmaher22/fgrequests
614d3a271a9758a8db5253c3806d04c5f6dbae6d
[ "BSD-2-Clause" ]
13
2020-06-07T22:09:44.000Z
2022-03-16T13:20:54.000Z
tests/test_show_execution.py
mmaher22/fgrequests
614d3a271a9758a8db5253c3806d04c5f6dbae6d
[ "BSD-2-Clause" ]
2
2020-06-22T15:56:23.000Z
2022-01-03T22:28:27.000Z
tests/test_show_execution.py
mmaher22/fgrequests
614d3a271a9758a8db5253c3806d04c5f6dbae6d
[ "BSD-2-Clause" ]
1
2021-02-09T22:53:05.000Z
2021-02-09T22:53:05.000Z
import fgrequests arr = ['https://google.com'] response = fgrequests.build(arr, method='POST', show_execution_time=True) assert type(response) == dict assert type(response['response_list']) == list
28.428571
73
0.748744