hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
5d83ad6cff3db1b6e4ae4b1be6ce413b57641a09
9,537
py
Python
ics/mergeGatingSets.py
victorfica/utils
b61935a860838a0e70afde7c9ecf2c68f51a2c4b
[ "MIT" ]
5
2015-12-16T01:23:07.000Z
2020-04-27T11:41:43.000Z
ics/mergeGatingSets.py
victorfica/utils
b61935a860838a0e70afde7c9ecf2c68f51a2c4b
[ "MIT" ]
1
2021-05-06T23:47:20.000Z
2021-05-06T23:48:33.000Z
ics/mergeGatingSets.py
victorfica/utils
b61935a860838a0e70afde7c9ecf2c68f51a2c4b
[ "MIT" ]
6
2016-04-29T14:04:22.000Z
2021-05-06T23:49:34.000Z
#!/usr/bin/env python """ Usage examples: python /home/agartlan/gitrepo/utils/ics/mergeGatingSets.py --function functions --ncpus 4 --out functions_extract.csv sbatch -n 1 -t 3-0 -c 4 -o functions_slurm.txt --wrap="python /home/agartlan/gitrepo/utils/ics/mergeGatingSets.py --function functions --ncpus 4 --out functio...
52.401099
284
0.554996
5d84d543ecd3e19e8c3f8af82dd1e6cc5ea16443
88
py
Python
meeting.py
zoni/ulauncher-meet
1b76627c69dfc539645acd27e30c9b8fd8fe08ae
[ "MIT" ]
4
2021-04-30T21:39:03.000Z
2021-08-30T11:38:21.000Z
meeting.py
zoni/ulauncher-meet
1b76627c69dfc539645acd27e30c9b8fd8fe08ae
[ "MIT" ]
1
2021-05-31T11:05:37.000Z
2021-05-31T11:05:37.000Z
meeting.py
zoni/ulauncher-meet
1b76627c69dfc539645acd27e30c9b8fd8fe08ae
[ "MIT" ]
2
2021-05-07T09:47:20.000Z
2021-08-25T16:27:24.000Z
from dataclasses import dataclass
11
33
0.715909
5d85c596f37801463f956fbf7ef5af170636decb
1,000
py
Python
setup.py
uuosio/uuosio.gscdk
a2e364d4499c1372567aa5933e2d8e02340a8385
[ "BSD-3-Clause" ]
6
2021-09-03T09:02:39.000Z
2022-01-12T06:31:09.000Z
setup.py
uuosio/uuosio.gscdk
a2e364d4499c1372567aa5933e2d8e02340a8385
[ "BSD-3-Clause" ]
1
2021-11-01T16:46:09.000Z
2021-11-04T12:51:45.000Z
setup.py
uuosio/uuosio.gscdk
a2e364d4499c1372567aa5933e2d8e02340a8385
[ "BSD-3-Clause" ]
2
2021-11-10T01:56:15.000Z
2022-01-13T14:27:31.000Z
import os import shutil import setuptools # from skbuild import setup from distutils.core import setup from distutils.sysconfig import get_python_lib import glob # if os.path.exists('pysrc/tinygo'): # shutil.rmtree('pysrc/tinygo') # shutil.copytree('tinygo/build/release/tinygo', 'pysrc/tinygo') release_files = ...
24.390244
77
0.658
5d861ae24ab41a343997586ea4f68f7cd661d4d3
301
py
Python
tests/data_creator_action.py
michalurbanski/bkgames
69b1d16ae27d3118dd78449ce7deecbd6e1b95e7
[ "MIT" ]
null
null
null
tests/data_creator_action.py
michalurbanski/bkgames
69b1d16ae27d3118dd78449ce7deecbd6e1b95e7
[ "MIT" ]
null
null
null
tests/data_creator_action.py
michalurbanski/bkgames
69b1d16ae27d3118dd78449ce7deecbd6e1b95e7
[ "MIT" ]
null
null
null
from typing import Callable
33.444444
104
0.750831
5d8772d2443bc37d077b4e1088b8652b560de433
387
py
Python
Python/Numpy/Min and Max/min_and_max.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
2
2020-05-28T07:15:00.000Z
2020-07-21T08:34:06.000Z
Python/Numpy/Min and Max/min_and_max.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
null
null
null
Python/Numpy/Min and Max/min_and_max.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
null
null
null
import numpy as np if __name__ == '__main__': h, w = map( int, input().split() ) row_list = [] for i in range(h): single_row = list( map(int, input().split() ) ) np_row = np.array( single_row ) row_list.append( np_row ) min_of_each_row = np.min( row_list, axis = 1) ...
15.48
56
0.573643
5d87b775f0d8dfc2c8f2bb9538693bb8aa0d1ec6
22,757
py
Python
allure/pytest_plugin.py
allure-framework/allure-pytest
d55180aaeb21233e7ca577ffc6f67a07837c63f2
[ "Apache-2.0" ]
112
2017-01-24T21:37:49.000Z
2022-03-25T22:32:12.000Z
venv/Lib/site-packages/allure/pytest_plugin.py
Arthii01052/conduit
3427d76d0fa364cb5d19bdd6da4aeb0a22fe9660
[ "MIT" ]
56
2017-01-21T20:01:41.000Z
2019-01-14T13:35:53.000Z
venv/Lib/site-packages/allure/pytest_plugin.py
Arthii01052/conduit
3427d76d0fa364cb5d19bdd6da4aeb0a22fe9660
[ "MIT" ]
52
2017-01-23T13:40:40.000Z
2022-03-30T00:02:31.000Z
import uuid import pickle import pytest import argparse from collections import namedtuple from six import text_type from allure.common import AllureImpl, StepContext from allure.constants import Status, AttachmentType, Severity, \ FAILED_STATUSES, Label, SKIPPED_STATUSES from allure.utils import parent_module, p...
39.168675
183
0.572483
5d88a4a57aa7fe412e25b74cc37254832f74121b
1,113
py
Python
treenode/debug.py
domlysi/django-treenode
86e7c76e2b2d60c071cfce6ad1493b2b51f2d304
[ "MIT" ]
null
null
null
treenode/debug.py
domlysi/django-treenode
86e7c76e2b2d60c071cfce6ad1493b2b51f2d304
[ "MIT" ]
null
null
null
treenode/debug.py
domlysi/django-treenode
86e7c76e2b2d60c071cfce6ad1493b2b51f2d304
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings from django.db import connection import logging import timeit logger = logging.getLogger(__name__)
26.5
74
0.637017
5d8a580c6383e0fa95c751c549eb6cc5184e491f
3,705
py
Python
String_tool.py
vibhorvk/BlendString
3bf62083716b3b1f4976abeb3528771eeb79e2cf
[ "MIT" ]
null
null
null
String_tool.py
vibhorvk/BlendString
3bf62083716b3b1f4976abeb3528771eeb79e2cf
[ "MIT" ]
null
null
null
String_tool.py
vibhorvk/BlendString
3bf62083716b3b1f4976abeb3528771eeb79e2cf
[ "MIT" ]
null
null
null
bl_info = { "name": "STRING", "blender": (2, 80, 0), "category": "Object", 'Author' : 'Vibhor Gupta' } import bpy import bmesh def register(): bpy.utils.register_class(STRING) def unregister(): bpy.utils.unregister_class(STRING) # This allows you to ...
29.879032
107
0.515789
5d8b272fb8d2699d2cf3ea1fd7de71c67f398d16
1,130
py
Python
Code/DataHandlers/__init__.py
aricsanders/pyMez3
13e2b9900af2287db0cc42a0190d31da165ce174
[ "Unlicense" ]
2
2017-01-29T00:46:01.000Z
2017-07-25T17:23:04.000Z
Code/DataHandlers/__init__.py
aricsanders/pyMez3
13e2b9900af2287db0cc42a0190d31da165ce174
[ "Unlicense" ]
1
2019-08-02T03:59:41.000Z
2019-08-02T03:59:41.000Z
Code/DataHandlers/__init__.py
aricsanders/pyMez3
13e2b9900af2287db0cc42a0190d31da165ce174
[ "Unlicense" ]
null
null
null
""" The DataHandlers subpackage is designed to manipulate data, by allowing different data types to be opened, created, saved and updated. The subpackage is further divided into modules grouped by a common theme. Classes for data that are already on disk normally follows the following pattern: `instance=ClassName(file_...
25.681818
118
0.70531
5d8ca67bf97053442519e2fbb8cf359ecbb33654
228
py
Python
djangomail/backends/dummy.py
somenzz/djangomail
7d4f833cd71289a51eb935757d8b628e9c9f8aa1
[ "MIT" ]
1
2021-06-01T07:51:18.000Z
2021-06-01T07:51:18.000Z
djangomail/backends/dummy.py
somenzz/djangomail
7d4f833cd71289a51eb935757d8b628e9c9f8aa1
[ "MIT" ]
null
null
null
djangomail/backends/dummy.py
somenzz/djangomail
7d4f833cd71289a51eb935757d8b628e9c9f8aa1
[ "MIT" ]
1
2022-01-24T13:38:14.000Z
2022-01-24T13:38:14.000Z
""" Dummy email backend that does nothing. """ from djangomail.backends.base import BaseEmailBackend
20.727273
53
0.763158
5d8ccdbb74a4a8ff8a56e579b885b0bbd0743a4f
7,666
py
Python
awx/plugins/library/scan_services.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
17
2021-04-03T01:40:17.000Z
2022-03-03T11:45:20.000Z
awx/plugins/library/scan_services.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
24
2021-05-18T21:13:35.000Z
2022-03-29T10:23:52.000Z
awx/plugins/library/scan_services.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
14
2021-04-06T20:05:41.000Z
2022-03-24T14:16:03.000Z
#!/usr/bin/env python import re from ansible.module_utils.basic import * # noqa DOCUMENTATION = ''' --- module: scan_services short_description: Return service state information as fact data description: - Return service state information as fact data for various service management utilities version_added: "1.9"...
40.136126
155
0.530655
5d8cdce66649554dda1ee6deb1afd812b2f3ebbf
2,146
py
Python
app.py
duckm8795/runscope-circleci
2fd42e64bddb4b8f34c437c2d834b92369c9a2bf
[ "Apache-2.0" ]
null
null
null
app.py
duckm8795/runscope-circleci
2fd42e64bddb4b8f34c437c2d834b92369c9a2bf
[ "Apache-2.0" ]
null
null
null
app.py
duckm8795/runscope-circleci
2fd42e64bddb4b8f34c437c2d834b92369c9a2bf
[ "Apache-2.0" ]
null
null
null
import requests import sys import time import os if __name__ == '__main__': main()
31.101449
154
0.605312
5d8dbbff6df38e6773044260538db7a759525964
16,585
py
Python
spyse/client.py
fabaff/spyse-python
f286514ac052ebe6fa98f877d251d8f3cd4db1c4
[ "MIT" ]
9
2021-07-28T11:59:07.000Z
2022-02-17T02:25:06.000Z
spyse/client.py
fabaff/spyse-python
f286514ac052ebe6fa98f877d251d8f3cd4db1c4
[ "MIT" ]
2
2021-11-27T02:03:03.000Z
2022-02-02T11:33:34.000Z
spyse/client.py
fabaff/spyse-python
f286514ac052ebe6fa98f877d251d8f3cd4db1c4
[ "MIT" ]
7
2021-08-05T04:02:09.000Z
2022-03-04T14:11:04.000Z
import requests from typing import List, Optional from .models import AS, Domain, IP, CVE, Account, Certificate, Email, DNSHistoricalRecord, WHOISHistoricalRecord from .response import Response from .search_query import SearchQuery from limiter import get_limiter, limit
42.308673
117
0.662466
5d8e72c2a2b92c4afc6d55b1c762592baf4c02a2
147
py
Python
talleres_inov_docente/figures/plot_helpers.py
jfcaballero/Tutorial-sobre-scikit-learn-abreviado
1e2aa1f9132c277162135a5463068801edab8d15
[ "CC0-1.0" ]
576
2016-03-20T10:05:58.000Z
2022-03-20T05:58:32.000Z
talleres_inov_docente/figures/plot_helpers.py
jfcaballero/Tutorial-sobre-scikit-learn-abreviado
1e2aa1f9132c277162135a5463068801edab8d15
[ "CC0-1.0" ]
64
2016-03-20T08:56:49.000Z
2019-03-13T15:37:55.000Z
talleres_inov_docente/figures/plot_helpers.py
jfcaballero/Tutorial-sobre-scikit-learn-abreviado
1e2aa1f9132c277162135a5463068801edab8d15
[ "CC0-1.0" ]
570
2016-03-20T19:23:07.000Z
2021-12-12T12:22:14.000Z
from matplotlib.colors import ListedColormap cm3 = ListedColormap(['#0000aa', '#ff2020', '#50ff50']) cm2 = ListedColormap(['#0000aa', '#ff2020'])
29.4
55
0.707483
5d8e73966f8c10521ed6c383e9307e6cc3d33a3d
612
py
Python
Applications/FlaskApp/errorpages.py
cemac-ccs/FlaskMWE
e8ce3cbca0d402bd9fdb1feb10290f2e7b11907b
[ "MIT" ]
null
null
null
Applications/FlaskApp/errorpages.py
cemac-ccs/FlaskMWE
e8ce3cbca0d402bd9fdb1feb10290f2e7b11907b
[ "MIT" ]
null
null
null
Applications/FlaskApp/errorpages.py
cemac-ccs/FlaskMWE
e8ce3cbca0d402bd9fdb1feb10290f2e7b11907b
[ "MIT" ]
null
null
null
from flask import render_template # Error Pages ----------------------------------------------------------------
27.818182
78
0.637255
5d8e9f525045331a16efdc9df5a7b8042480b89c
1,118
py
Python
cppgym/ToyText/BlackJack.py
anhydrous99/cppgym
0b1009a74faebfe5a31bcfd6a86c74cf13464d56
[ "MIT" ]
null
null
null
cppgym/ToyText/BlackJack.py
anhydrous99/cppgym
0b1009a74faebfe5a31bcfd6a86c74cf13464d56
[ "MIT" ]
1
2021-01-03T10:21:36.000Z
2021-01-26T03:59:07.000Z
cppgym/ToyText/BlackJack.py
anhydrous99/cppgym
0b1009a74faebfe5a31bcfd6a86c74cf13464d56
[ "MIT" ]
null
null
null
from .._BlackJack import BlackJackCPP import gym import ctypes import numpy as np from gym import spaces
26.619048
53
0.593918
5d8f21c23f88e0ce2aa150c385f666597b203749
5,827
py
Python
sdks/python/apache_beam/runners/direct/consumer_tracking_pipeline_visitor_test.py
ajothomas/beam
4774c1caf3dac3b6a7dd161f82559a26fa380920
[ "Apache-2.0", "BSD-3-Clause" ]
5
2019-07-27T11:54:33.000Z
2021-06-06T11:53:36.000Z
sdks/python/apache_beam/runners/direct/consumer_tracking_pipeline_visitor_test.py
ajothomas/beam
4774c1caf3dac3b6a7dd161f82559a26fa380920
[ "Apache-2.0", "BSD-3-Clause" ]
12
2019-04-15T15:27:23.000Z
2019-07-01T18:13:10.000Z
sdks/python/apache_beam/runners/direct/consumer_tracking_pipeline_visitor_test.py
ajothomas/beam
4774c1caf3dac3b6a7dd161f82559a26fa380920
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-06-03T19:54:48.000Z
2021-06-03T19:54:48.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
35.530488
105
0.727476
5d8fd5fa2bcd3f5669762aabbd18717b761f3d16
30,184
py
Python
gluon/main.py
scudette/rekall-agent-server
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
[ "BSD-3-Clause" ]
21
2018-02-16T17:43:59.000Z
2021-12-29T12:08:28.000Z
gluon/main.py
scudette/rekall-agent-server
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
[ "BSD-3-Clause" ]
12
2017-11-01T14:54:29.000Z
2018-02-01T22:02:12.000Z
gluon/main.py
scudette/rekall-agent-server
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
[ "BSD-3-Clause" ]
8
2018-10-08T03:48:00.000Z
2022-03-31T12:13:01.000Z
#!/bin/env python # -*- coding: utf-8 -*- """ | This file is part of the web2py Web Framework | Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> | License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) The gluon wsgi application --------------------------- """ from __future__ import print_function if Fals...
37.919598
117
0.52286
5d90667a56cb7c978d1072b2a27a14dbab5c4dfc
3,798
py
Python
agents/EWPublisherAgent.py
marc4gov/tokenspice2
1993383674f35b20e11e54606b3dac8e4c05c0f9
[ "Apache-2.0" ]
1
2021-01-12T08:06:21.000Z
2021-01-12T08:06:21.000Z
agents/EWPublisherAgent.py
marc4gov/tokenspice2
1993383674f35b20e11e54606b3dac8e4c05c0f9
[ "Apache-2.0" ]
null
null
null
agents/EWPublisherAgent.py
marc4gov/tokenspice2
1993383674f35b20e11e54606b3dac8e4c05c0f9
[ "Apache-2.0" ]
null
null
null
import logging log = logging.getLogger('marketagents') from enforce_typing import enforce_types # type: ignore[import] import random from agents.PublisherAgent import PublisherAgent from agents.PoolAgent import PoolAgent from util import constants from util.constants import POOL_WEIGHT_DT, POOL_WEIGHT_OCEAN from web3...
37.98
80
0.662191
5d922c20991f9207f7464898983a068c11cac2a8
1,625
py
Python
lcls_orbit/__init__.py
slaclab/lcls-orbit
e2b8738c4af2dfed40fce4b898bf9b2a820d5f56
[ "BSD-3-Clause-LBNL" ]
null
null
null
lcls_orbit/__init__.py
slaclab/lcls-orbit
e2b8738c4af2dfed40fce4b898bf9b2a820d5f56
[ "BSD-3-Clause-LBNL" ]
null
null
null
lcls_orbit/__init__.py
slaclab/lcls-orbit
e2b8738c4af2dfed40fce4b898bf9b2a820d5f56
[ "BSD-3-Clause-LBNL" ]
1
2021-11-16T01:03:53.000Z
2021-11-16T01:03:53.000Z
import numpy as np from . import _version __version__ = _version.get_versions()['version'] HXR_COLORS = ("#000000", "#02004a", "#030069", "#04008f", "#0500b3", "#0700ff") SXR_COLORS = ("#000000", "#330000", "#520000", "#850000", "#ad0000", "#ff0000") HXR_AREAS = { "GUN" : [2017.911, 2018.712], "L0" : [2018....
30.660377
79
0.563077
5d930df4a535163668fcaae7a75a25d2de903db1
13,123
py
Python
tests/test_optimizers_v2/test_optimizers_v2.py
OverLordGoldDragon/dummy
5192b91c57721f37b906f670ad954a46f98bf5b5
[ "MIT" ]
null
null
null
tests/test_optimizers_v2/test_optimizers_v2.py
OverLordGoldDragon/dummy
5192b91c57721f37b906f670ad954a46f98bf5b5
[ "MIT" ]
null
null
null
tests/test_optimizers_v2/test_optimizers_v2.py
OverLordGoldDragon/dummy
5192b91c57721f37b906f670ad954a46f98bf5b5
[ "MIT" ]
null
null
null
import os import tempfile import numpy as np import tensorflow as tf from time import time from termcolor import cprint from unittest import TestCase from .. import K from .. import Input, Dense, GRU, Bidirectional, Embedding from .. import Model, load_model from .. import l2 from .. import maxnorm from .. import Ada...
44.334459
83
0.586375
5d93683480faf496a5e564f3b162607a289a4f92
21,601
py
Python
koku/reporting/migrations/0099_ocp_performance.py
Vasyka/koku
b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614
[ "Apache-2.0" ]
2
2022-01-12T03:42:39.000Z
2022-01-12T03:42:40.000Z
koku/reporting/migrations/0099_ocp_performance.py
Vasyka/koku
b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614
[ "Apache-2.0" ]
null
null
null
koku/reporting/migrations/0099_ocp_performance.py
Vasyka/koku
b5aa9ec41c3b0821e74afe9ff3a5ffaedb910614
[ "Apache-2.0" ]
1
2021-07-21T09:33:59.000Z
2021-07-21T09:33:59.000Z
# Generated by Django 2.2.10 on 2020-02-18 12:51 import django.contrib.postgres.indexes from django.db import migrations from django.db import models
51.800959
173
0.734781
5d942ae26a14855b18361770889fe0b68867154b
1,433
py
Python
sympy/tensor/tests/test_functions.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
8,323
2015-01-02T15:51:43.000Z
2022-03-31T13:13:19.000Z
sympy/tensor/tests/test_functions.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
15,102
2015-01-01T01:33:17.000Z
2022-03-31T22:53:13.000Z
sympy/tensor/tests/test_functions.py
iamabhishek0/sympy
c461bd1ff9d178d1012b04fd0bf37ee3abb02cdd
[ "BSD-3-Clause" ]
4,490
2015-01-01T17:48:07.000Z
2022-03-31T17:24:05.000Z
from sympy.tensor.functions import TensorProduct from sympy import MatrixSymbol, Matrix, Array from sympy.abc import x, y, z from sympy.abc import i, j, k, l A = MatrixSymbol("A", 3, 3) B = MatrixSymbol("B", 3, 3) C = MatrixSymbol("C", 3, 3)
25.589286
74
0.567341
5d94582a86f1cb5da7910dcf3af0df5fef4be108
898
py
Python
app/views.py
Kgermando/sem
c76e97e1d526d4e92a925adb6bceee426f999655
[ "Apache-2.0" ]
null
null
null
app/views.py
Kgermando/sem
c76e97e1d526d4e92a925adb6bceee426f999655
[ "Apache-2.0" ]
null
null
null
app/views.py
Kgermando/sem
c76e97e1d526d4e92a925adb6bceee426f999655
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render # Create your views here.
26.411765
59
0.604677
5d9653a594b04879fa4c04919b21be2e555546ba
1,033
py
Python
webcrawler/crawler/spiders/baselensspider.py
HansZimmer5000/LensComparison
e4d9b68211604c4569c4ca9b1e1b4fce2a8c1ea8
[ "Apache-2.0" ]
null
null
null
webcrawler/crawler/spiders/baselensspider.py
HansZimmer5000/LensComparison
e4d9b68211604c4569c4ca9b1e1b4fce2a8c1ea8
[ "Apache-2.0" ]
null
null
null
webcrawler/crawler/spiders/baselensspider.py
HansZimmer5000/LensComparison
e4d9b68211604c4569c4ca9b1e1b4fce2a8c1ea8
[ "Apache-2.0" ]
null
null
null
# This module is about my webcrawler with the use of scrapy. # Its a generell web crawler, but the import and use of GhAdapter makes it usefull for geizhals.de sites. from abc import ABC, abstractmethod import scrapy
27.184211
105
0.804453
5d968294f2b19ad9cf4d5cc885fbe7be0f0e3330
15,289
py
Python
byol_train.py
fjbriones/deep-text-recognition-benchmark
c85d12aa56495fe221656bac4c8cb159a28456b1
[ "Apache-2.0" ]
null
null
null
byol_train.py
fjbriones/deep-text-recognition-benchmark
c85d12aa56495fe221656bac4c8cb159a28456b1
[ "Apache-2.0" ]
null
null
null
byol_train.py
fjbriones/deep-text-recognition-benchmark
c85d12aa56495fe221656bac4c8cb159a28456b1
[ "Apache-2.0" ]
null
null
null
import os import sys import time import random import string import argparse import torch import torch.backends.cudnn as cudnn import torch.nn.init as init import torch.optim as optim import torch.utils.data import numpy as np from utils import CTCLabelConverter, CTCLabelConverterForBaiduWarpctc, AttnLabelConverter, ...
45.502976
152
0.636013
5d96fee6a1d130e8653363f3a24275073276610b
1,496
py
Python
app/__init__.py
dulin/tornado-test
8ceeb9f2b50b4cd0f18baa9149140721feec1925
[ "MIT" ]
null
null
null
app/__init__.py
dulin/tornado-test
8ceeb9f2b50b4cd0f18baa9149140721feec1925
[ "MIT" ]
null
null
null
app/__init__.py
dulin/tornado-test
8ceeb9f2b50b4cd0f18baa9149140721feec1925
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- mode: python -*- import aiopg import psycopg2 import tornado.locks from tornado.options import define, options from tornado.web import Application from app.application import Application define('port', default=8080, help="listening port") define('bind_address', def...
32.521739
81
0.675802
5d9879f28b9c13e35ac740f4cb5632764b5c35dd
2,426
py
Python
pipescaler/core/stage.py
KarlTDebiec/PipeScaler
b990ece8f3dd2c3506c226ed871871997fc57beb
[ "BSD-3-Clause" ]
1
2022-02-07T03:47:53.000Z
2022-02-07T03:47:53.000Z
pipescaler/core/stage.py
KarlTDebiec/PipeScaler
b990ece8f3dd2c3506c226ed871871997fc57beb
[ "BSD-3-Clause" ]
49
2022-01-17T15:16:22.000Z
2022-03-28T03:00:39.000Z
pipescaler/core/stage.py
KarlTDebiec/PipeScaler
b990ece8f3dd2c3506c226ed871871997fc57beb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # pipescaler/core/stage.py # # Copyright (C) 2020-2021 Karl T Debiec # All rights reserved. # # This software may be modified and distributed under the terms of the # BSD license. from __future__ import annotations from abc import ABC, abstractmethod from importlib.util import module_fr...
27.568182
83
0.633965
5d99e63583440bf3da1b852644d47a0c0ec5d4a3
349
py
Python
src/project/api/rankings/urls.py
jSkrod/djangae-react-browser-games-app
28c5064f0a126021afb08b195839305aba6b35a2
[ "CC-BY-4.0", "MIT" ]
null
null
null
src/project/api/rankings/urls.py
jSkrod/djangae-react-browser-games-app
28c5064f0a126021afb08b195839305aba6b35a2
[ "CC-BY-4.0", "MIT" ]
null
null
null
src/project/api/rankings/urls.py
jSkrod/djangae-react-browser-games-app
28c5064f0a126021afb08b195839305aba6b35a2
[ "CC-BY-4.0", "MIT" ]
null
null
null
from django.conf.urls import url, include from project.api.rankings.api import AddRanking, AddScore, GetScoresUser, GetScoresGame urlpatterns = [ url(r'add_ranking$', AddRanking.as_view()), url(r'add_score$', AddScore.as_view()), url(r'get_scores_game$', GetScoresGame.as_view()), url(r'get_scores_user$...
38.777778
87
0.739255
5d9a08394431a2356f36800cd3badfa0bed3c07f
7,730
py
Python
qiskit_metal/qlibrary/lumped/cap_n_interdigital.py
wdczdj/qiskit-metal
c77805f66da60021ef8d10d668715c1dc2ebcd1d
[ "Apache-2.0" ]
null
null
null
qiskit_metal/qlibrary/lumped/cap_n_interdigital.py
wdczdj/qiskit-metal
c77805f66da60021ef8d10d668715c1dc2ebcd1d
[ "Apache-2.0" ]
null
null
null
qiskit_metal/qlibrary/lumped/cap_n_interdigital.py
wdczdj/qiskit-metal
c77805f66da60021ef8d10d668715c1dc2ebcd1d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
41.336898
100
0.51022
5d9a69d3f7389d018e9e0d4577b31c493762c8e2
4,895
py
Python
ThirdParty/protobuf-registry/python/protobufs/services/feature/actions/get_flags_pb2.py
getcircle/luno-ios
d18260abb537496d86cf607c170dd5e91c406f0f
[ "MIT" ]
null
null
null
ThirdParty/protobuf-registry/python/protobufs/services/feature/actions/get_flags_pb2.py
getcircle/luno-ios
d18260abb537496d86cf607c170dd5e91c406f0f
[ "MIT" ]
null
null
null
ThirdParty/protobuf-registry/python/protobufs/services/feature/actions/get_flags_pb2.py
getcircle/luno-ios
d18260abb537496d86cf607c170dd5e91c406f0f
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: protobufs/services/feature/actions/get_flags.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database...
32.852349
371
0.765475
5d9cfb201fcd48e23406da7a37202a4d1d0051f3
1,758
py
Python
Medium/102_2.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Medium/102_2.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Medium/102_2.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # Binary Tree Level Order Traversal # # Description: # Given a binary tree, return the level order traversal of its nodes' values. (ie, from # left to right, level by level). # # For example: # Given binary tree [3,9,20,null,null,15,7], # 3 # / \ # 9 20 # / \ # 15 ...
26.636364
108
0.527873
5d9e54e4e20b43e465756409507c8caedb39d5b5
7,969
py
Python
mturk/comparison_among_different_models/sample_from_models_for_comparison.py
qiaone/GIF
2c551e844748c72395fc91fb080c7a2f9c8d5285
[ "MIT" ]
322
2020-08-28T22:23:09.000Z
2022-03-25T09:42:12.000Z
mturk/comparison_among_different_models/sample_from_models_for_comparison.py
qiaone/GIF
2c551e844748c72395fc91fb080c7a2f9c8d5285
[ "MIT" ]
25
2020-11-03T02:03:51.000Z
2022-03-18T13:06:42.000Z
mturk/comparison_among_different_models/sample_from_models_for_comparison.py
qiaone/GIF
2c551e844748c72395fc91fb080c7a2f9c8d5285
[ "MIT" ]
59
2020-08-28T23:32:08.000Z
2022-03-30T03:29:35.000Z
import sys sys.path.append('../../') import constants as cnst import os os.environ['PYTHONHASHSEED'] = '2' import tqdm from model.stg2_generator import StyledGenerator import numpy as np from my_utils.visualize_flame_overlay import OverLayViz from my_utils.flm_dynamic_fit_overlay import camera_ringnetpp from my_utils.g...
47.718563
119
0.676371
5d9ff4014ab10b4aacbc6a629a0aa9ded18d3d4a
895
py
Python
setup.py
philippWassibauer/django-activity-stream
766a372aea4803ef5fe051a5de16dde5b5efcc72
[ "BSD-3-Clause" ]
4
2015-05-21T04:28:43.000Z
2019-04-27T15:12:32.000Z
setup.py
philippWassibauer/django-activity-stream
766a372aea4803ef5fe051a5de16dde5b5efcc72
[ "BSD-3-Clause" ]
null
null
null
setup.py
philippWassibauer/django-activity-stream
766a372aea4803ef5fe051a5de16dde5b5efcc72
[ "BSD-3-Clause" ]
2
2018-02-10T22:31:07.000Z
2021-02-14T07:43:35.000Z
from distutils.core import setup """ django-activity-stream instalation script """ setup( name = 'activity_stream', description = 'generic activity feed system for users', author = 'Philipp Wassibauer', author_email = 'phil@maptales.com', url='http://github.com/philippWassibauer/django-activity-st...
33.148148
93
0.660335
5da0ff4d3e7dbb3fe7c21095720798fb7df7ef6b
742
py
Python
02/selenium.02.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
2
2017-09-24T02:29:48.000Z
2017-10-05T11:15:22.000Z
02/selenium.02.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
null
null
null
02/selenium.02.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
null
null
null
from selenium import webdriver username = "henlix" password = "my_password" browser = webdriver.PhantomJS() browser.implicitly_wait(5) url_login = "https://nid.naver.com/nidlogin.login" browser.get(url_login) el = browser.find_element_by_id("id") el.clear() el.send_keys(username) el = browser.find_element_by_id("p...
22.484848
76
0.777628
5da246d54547ba7b297b610234129f3853586daf
343
py
Python
visualization/matplotlib/barwitherror.py
Licas/datascienceexamples
cbb1293dbae875cb3f166dbde00b2ab629a43ece
[ "MIT" ]
null
null
null
visualization/matplotlib/barwitherror.py
Licas/datascienceexamples
cbb1293dbae875cb3f166dbde00b2ab629a43ece
[ "MIT" ]
null
null
null
visualization/matplotlib/barwitherror.py
Licas/datascienceexamples
cbb1293dbae875cb3f166dbde00b2ab629a43ece
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt drinks = ["cappuccino", "latte", "chai", "americano", "mocha", "espresso"] ounces_of_milk = [6, 9, 4, 0, 9, 0] error = [0.6, 0.9, 0.4, 0, 0.9, 0] #Yerr -> element at i position represents +/- error[i] variance on bar[i] value plt.bar( range(len(drinks)),ounces_of_milk, yerr=error,...
38.111111
79
0.667638
5da2dcdc36e76038fe4e53bad3d9602bb03e2dea
38,961
py
Python
Packs/mnemonicMDR/Integrations/ArgusManagedDefence/ArgusManagedDefence.py
matan-xmcyber/content
7f02301c140b35956af3cd20cb8dfc64f34afb3e
[ "MIT" ]
null
null
null
Packs/mnemonicMDR/Integrations/ArgusManagedDefence/ArgusManagedDefence.py
matan-xmcyber/content
7f02301c140b35956af3cd20cb8dfc64f34afb3e
[ "MIT" ]
3
2019-12-13T13:27:20.000Z
2020-01-01T14:27:45.000Z
Packs/mnemonicMDR/Integrations/ArgusManagedDefence/ArgusManagedDefence.py
matan-xmcyber/content
7f02301c140b35956af3cd20cb8dfc64f34afb3e
[ "MIT" ]
null
null
null
import demistomock as demisto from CommonServerPython import * """ IMPORTS """ import json import urllib3 import dateparser import traceback from typing import Any, Dict, List, Union import logging from argus_api import session as argus_session from argus_api.api.currentuser.v1.user import get_current_user from ...
35.711274
117
0.65273
5da38d402c0b885654d90358b5f682eddb296488
672
py
Python
03.py
SnowWolf75/aoc-2020
1745a6cf46dac097869e5af99194b710e78bed28
[ "Unlicense" ]
null
null
null
03.py
SnowWolf75/aoc-2020
1745a6cf46dac097869e5af99194b710e78bed28
[ "Unlicense" ]
null
null
null
03.py
SnowWolf75/aoc-2020
1745a6cf46dac097869e5af99194b710e78bed28
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import sys, os import unittest from lib.common import * filename = "inputs/2020_12_03_input.txt"
16.8
40
0.638393
5da38e943cdd95f554ae0517d32417a9a5d31b05
699
py
Python
scripts/examples/tools/capturebat.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
21
2019-10-24T04:59:52.000Z
2021-05-11T12:47:17.000Z
scripts/examples/tools/capturebat.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
null
null
null
scripts/examples/tools/capturebat.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
9
2019-10-26T16:56:08.000Z
2021-03-15T14:10:21.000Z
# Tool Imports from bph.tools.windows.capturebat import BphCaptureBat as CaptureBat # Core Imports from bph.core.server.template import BphTemplateServer as TemplateServer from bph.core.sample import BphSample as Sample from bph.core.sample import BphLabFile as LabFile from bph.core.session import BphSession as...
24.964286
73
0.786838
5da47e4e4410b3e8309f308ed349c9a9599c9032
2,225
py
Python
dymos/utils/test/test_hermite.py
kaushikponnapalli/dymos
3fba91d0fc2c0e8460717b1bec80774676287739
[ "Apache-2.0" ]
104
2018-09-08T16:52:27.000Z
2022-03-10T23:35:30.000Z
dymos/utils/test/test_hermite.py
kaushikponnapalli/dymos
3fba91d0fc2c0e8460717b1bec80774676287739
[ "Apache-2.0" ]
628
2018-06-27T20:32:59.000Z
2022-03-31T19:24:32.000Z
dymos/utils/test/test_hermite.py
kaushikponnapalli/dymos
3fba91d0fc2c0e8460717b1bec80774676287739
[ "Apache-2.0" ]
46
2018-06-27T20:54:07.000Z
2021-12-19T07:23:32.000Z
import unittest import numpy as np from numpy.testing import assert_almost_equal from dymos.utils.hermite import hermite_matrices if __name__ == '__main__': # pragma: no cover unittest.main()
31.785714
79
0.613483
5da53bca28edc1a3193db977a15e4f5897d0d909
2,569
py
Python
xl_auth/settings.py
libris/xl_auth
33d705c287d2ecd81920d37c3751d947cd52588c
[ "Apache-2.0" ]
7
2017-09-04T10:24:02.000Z
2019-12-02T13:12:30.000Z
xl_auth/settings.py
libris/xl_auth
33d705c287d2ecd81920d37c3751d947cd52588c
[ "Apache-2.0" ]
140
2017-09-06T07:02:18.000Z
2022-02-26T01:26:25.000Z
xl_auth/settings.py
libris/xl_auth
33d705c287d2ecd81920d37c3751d947cd52588c
[ "Apache-2.0" ]
2
2017-09-13T16:42:57.000Z
2018-02-15T15:32:40.000Z
# -*- coding: utf-8 -*- """Application configuration.""" from __future__ import absolute_import, division, print_function, unicode_literals import os from . import __author__, __name__, __version__
34.716216
82
0.696769
5da5c1523876b5ad6f15a38ad4bcfea7774fd3c9
3,083
py
Python
tests/mrp/test_mrp_auth.py
evanreichard/pyatv
d41bd749bbf8f8a9365e7fd36c1164543e334565
[ "MIT" ]
null
null
null
tests/mrp/test_mrp_auth.py
evanreichard/pyatv
d41bd749bbf8f8a9365e7fd36c1164543e334565
[ "MIT" ]
1
2020-06-13T15:14:47.000Z
2020-06-13T15:14:47.000Z
tests/mrp/test_mrp_auth.py
evanreichard/pyatv
d41bd749bbf8f8a9365e7fd36c1164543e334565
[ "MIT" ]
null
null
null
"""Functional authentication tests with fake MRP Apple TV.""" import inspect from aiohttp.test_utils import AioHTTPTestCase, unittest_run_loop import pyatv from pyatv import exceptions from pyatv.const import Protocol from pyatv.conf import MrpService, AppleTV from pyatv.mrp.server_auth import PIN_CODE, CLIENT_IDENT...
32.114583
81
0.705157
5da69a858193b1623616f277374a6ced50dc8b34
352
py
Python
tests_app/tests/functional/key_constructor/bits/models.py
maryokhin/drf-extensions
8223db2bdddaf3cd99f951b2291210c5fd5b0e6f
[ "MIT" ]
1
2019-06-18T16:40:33.000Z
2019-06-18T16:40:33.000Z
tests_app/tests/functional/key_constructor/bits/models.py
maryokhin/drf-extensions
8223db2bdddaf3cd99f951b2291210c5fd5b0e6f
[ "MIT" ]
null
null
null
tests_app/tests/functional/key_constructor/bits/models.py
maryokhin/drf-extensions
8223db2bdddaf3cd99f951b2291210c5fd5b0e6f
[ "MIT" ]
1
2018-07-17T00:13:19.000Z
2018-07-17T00:13:19.000Z
# -*- coding: utf-8 -*- from django.db import models
22
60
0.713068
5da7c35c6f555424a35c54ce0dd94e20ac56d5b8
4,116
py
Python
ngraph_onnx/onnx_importer/utils/numeric_limits.py
cliveseldon/ngraph-onnx
a2d20afdc7acd5064e4717612ad372d864d03d3d
[ "Apache-2.0" ]
null
null
null
ngraph_onnx/onnx_importer/utils/numeric_limits.py
cliveseldon/ngraph-onnx
a2d20afdc7acd5064e4717612ad372d864d03d3d
[ "Apache-2.0" ]
null
null
null
ngraph_onnx/onnx_importer/utils/numeric_limits.py
cliveseldon/ngraph-onnx
a2d20afdc7acd5064e4717612ad372d864d03d3d
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # Copyright 2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
34.588235
94
0.640671
5da817172273224f419b42630ca0117dc06b1363
5,158
py
Python
curvpack/utils.py
AbhilashReddyM/curvpack
74351624ec9ec50ec4445c7be85a48a4eabb029a
[ "BSD-3-Clause" ]
8
2019-04-30T19:31:57.000Z
2022-02-25T14:50:56.000Z
curvpack/utils.py
AbhilashReddyM/curvpack
74351624ec9ec50ec4445c7be85a48a4eabb029a
[ "BSD-3-Clause" ]
1
2019-06-14T06:32:40.000Z
2019-06-14T18:26:01.000Z
curvpack/utils.py
AbhilashReddyM/curvpack
74351624ec9ec50ec4445c7be85a48a4eabb029a
[ "BSD-3-Clause" ]
3
2020-04-18T10:13:55.000Z
2022-02-02T03:53:04.000Z
import numpy as np # The first two functions are modified from MNE surface project. LIcense follows # This software is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative. # # Copyright (c) 2011-2019, authors of MNE-Python. All rights reserved. # # Redistribu...
44.852174
757
0.65917
5da84607f0ca3d7ead02486a100adef7e245823f
14,805
py
Python
tests/unit/core/streams/test_stream_zero.py
tethys-platform/tethys
c27daf5a832b05f9d771b04355001c331bc08766
[ "ECL-2.0", "Apache-2.0" ]
2
2020-05-20T19:03:14.000Z
2020-06-03T20:43:34.000Z
tests/unit/core/streams/test_stream_zero.py
tethys-platform/tethys
c27daf5a832b05f9d771b04355001c331bc08766
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/unit/core/streams/test_stream_zero.py
tethys-platform/tethys
c27daf5a832b05f9d771b04355001c331bc08766
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2020 Konstruktor, 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 la...
30.779626
88
0.640662
5da8c5b2385d6f73170c02cb6de27d3641c827fa
6,653
py
Python
amd64-linux/lib/ppc64_simple_components.py
qiyancos/Simics-3.0.31
9bd52d5abad023ee87a37306382a338abf7885f1
[ "BSD-4-Clause", "FSFAP" ]
1
2020-06-15T10:41:18.000Z
2020-06-15T10:41:18.000Z
amd64-linux/lib/ppc64_simple_components.py
qiyancos/Simics-3.0.31
9bd52d5abad023ee87a37306382a338abf7885f1
[ "BSD-4-Clause", "FSFAP" ]
null
null
null
amd64-linux/lib/ppc64_simple_components.py
qiyancos/Simics-3.0.31
9bd52d5abad023ee87a37306382a338abf7885f1
[ "BSD-4-Clause", "FSFAP" ]
3
2020-08-10T10:25:02.000Z
2021-09-12T01:12:09.000Z
## Copyright 2005-2007 Virtutech AB ## ## The contents herein are Source Code which are a subset of Licensed ## Software pursuant to the terms of the Virtutech Simics Software ## License Agreement (the "Agreement"), and are being distributed under ## the Agreement. You should have received a copy of the Agreeme...
37.587571
78
0.599579
5da9e73a716a3d83801c56b0312fd8f4d87f351c
385
py
Python
Front-end (Django)/course/migrations/0002_subject_number_of_questions.py
shadow0403bsr/AutomatedGradingSoftware
5031d22683a05f937615b3b8997152c285a2f930
[ "MIT" ]
null
null
null
Front-end (Django)/course/migrations/0002_subject_number_of_questions.py
shadow0403bsr/AutomatedGradingSoftware
5031d22683a05f937615b3b8997152c285a2f930
[ "MIT" ]
null
null
null
Front-end (Django)/course/migrations/0002_subject_number_of_questions.py
shadow0403bsr/AutomatedGradingSoftware
5031d22683a05f937615b3b8997152c285a2f930
[ "MIT" ]
null
null
null
# Generated by Django 3.0.1 on 2020-02-15 06:02 from django.db import migrations, models
20.263158
49
0.597403
5da9e91d7d69e5378260fe7c404a58e9aa312b9e
3,101
py
Python
cornflow/tests/unit/test_dags.py
pchtsp/corn
2811ad400f3f3681a159984eabf4fee1fc99b433
[ "MIT" ]
5
2021-11-24T02:43:22.000Z
2021-12-10T09:28:32.000Z
cornflow/tests/unit/test_dags.py
pchtsp/corn
2811ad400f3f3681a159984eabf4fee1fc99b433
[ "MIT" ]
125
2021-09-01T12:06:48.000Z
2022-03-30T11:32:57.000Z
cornflow/tests/unit/test_dags.py
pchtsp/corn
2811ad400f3f3681a159984eabf4fee1fc99b433
[ "MIT" ]
1
2022-03-23T17:57:59.000Z
2022-03-23T17:57:59.000Z
""" Unit test for the DAG endpoints """ # Import from libraries import json # Import from internal modules from cornflow.shared.const import EXEC_STATE_CORRECT, EXEC_STATE_MANUAL from cornflow.tests.const import ( DAG_URL, EXECUTION_URL_NORUN, CASE_PATH, INSTANCE_URL, ) from cornflow.tests.unit.test_e...
27.936937
80
0.563689
5daa62bfbc58bf60d68725712bf46468f85577d3
10,673
py
Python
nets/resnet.py
xwshi/faster-rcnn-keras
bfd99e3d0e786ada75a212c007111364b2c86312
[ "MIT" ]
null
null
null
nets/resnet.py
xwshi/faster-rcnn-keras
bfd99e3d0e786ada75a212c007111364b2c86312
[ "MIT" ]
null
null
null
nets/resnet.py
xwshi/faster-rcnn-keras
bfd99e3d0e786ada75a212c007111364b2c86312
[ "MIT" ]
null
null
null
#-------------------------------------------------------------# # ResNet50 #-------------------------------------------------------------# import keras.backend as K from keras import backend as K from keras import initializers, layers, regularizers from keras.engine import InputSpec, Layer from keras.initializ...
45.417021
148
0.599082
5daa836b2adc23c7d1169d134b820b47732f82c0
1,309
py
Python
app/api/deps.py
congdh/fastapi-realworld
42c8630aedf594b69bc96a327b04dfe636a785fe
[ "MIT" ]
null
null
null
app/api/deps.py
congdh/fastapi-realworld
42c8630aedf594b69bc96a327b04dfe636a785fe
[ "MIT" ]
null
null
null
app/api/deps.py
congdh/fastapi-realworld
42c8630aedf594b69bc96a327b04dfe636a785fe
[ "MIT" ]
null
null
null
from typing import Generator from fastapi import Depends, HTTPException from fastapi.security import APIKeyHeader from sqlalchemy.orm import Session from starlette import status from app import crud, models from app.core import security from app.db.session import SessionLocal JWT_TOKEN_PREFIX = "Token" # noqa: S105...
26.714286
81
0.694423
5daaea4f5cbe880e71d3bbf0f6ec12e332c717ab
2,343
py
Python
src/raiden_libs/contract_info.py
netcriptus/raiden-services
3955d91852c616f6ba0a3a979757edbd852b2c6d
[ "MIT" ]
13
2019-02-07T23:23:33.000Z
2021-07-03T16:00:53.000Z
src/raiden_libs/contract_info.py
netcriptus/raiden-services
3955d91852c616f6ba0a3a979757edbd852b2c6d
[ "MIT" ]
1,095
2019-01-21T09:30:57.000Z
2022-03-25T05:13:30.000Z
src/raiden_libs/contract_info.py
netcriptus/raiden-services
3955d91852c616f6ba0a3a979757edbd852b2c6d
[ "MIT" ]
18
2019-01-21T09:17:19.000Z
2022-02-23T15:53:17.000Z
import sys from typing import Dict, List, Tuple import structlog from eth_utils import to_canonical_address from raiden.utils.typing import Address, BlockNumber, ChainID, Optional from raiden_contracts.contract_manager import ( ContractDevEnvironment, ContractManager, contracts_precompiled_path, get_c...
33.956522
96
0.714042
5dab624f1bba960c93bdbcfc0dd2115a637b7aae
8,749
py
Python
meta_dataset/models/functional_classifiers.py
letyrodridc/meta-dataset
d868ea1c767cce46fa6723f6f77c29552754fcc9
[ "Apache-2.0" ]
null
null
null
meta_dataset/models/functional_classifiers.py
letyrodridc/meta-dataset
d868ea1c767cce46fa6723f6f77c29552754fcc9
[ "Apache-2.0" ]
null
null
null
meta_dataset/models/functional_classifiers.py
letyrodridc/meta-dataset
d868ea1c767cce46fa6723f6f77c29552754fcc9
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Meta-Dataset 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 ...
41.861244
80
0.686821
5dacac5c524e8494c9a0a1e27e5a00cc81bbbd7d
13,499
py
Python
app.py
Shrinidhi-C/Context-Based-Question-Answering
f2e0bbc03003aae65f4cabddecd5cd9fcdbfb333
[ "Apache-2.0" ]
16
2021-03-09T17:00:27.000Z
2022-01-07T15:49:46.000Z
app.py
Shrinidhi-C/Context-Based-Question-Answering
f2e0bbc03003aae65f4cabddecd5cd9fcdbfb333
[ "Apache-2.0" ]
1
2021-06-03T13:01:41.000Z
2021-06-03T13:01:41.000Z
app.py
Karthik-Bhaskar/Context-Based-Question-Answering
f2e0bbc03003aae65f4cabddecd5cd9fcdbfb333
[ "Apache-2.0" ]
7
2021-03-10T11:33:18.000Z
2022-01-07T17:48:17.000Z
import os import threading import shutil from datetime import timedelta, datetime from flask import Flask, render_template, request, session, jsonify, url_for, redirect from haystack.document_store.elasticsearch import * from haystack.preprocessor.utils import convert_files_to_dicts from haystack.preprocessor.cleaning ...
38.132768
120
0.588414
5dad62563785343452980a6c164a9cfda04650c2
7,486
py
Python
timevortex/utils/filestorage.py
timevortexproject/timevortex
2bc1a50b255524af8582e6624dee280d64d3c9f3
[ "MIT" ]
null
null
null
timevortex/utils/filestorage.py
timevortexproject/timevortex
2bc1a50b255524af8582e6624dee280d64d3c9f3
[ "MIT" ]
null
null
null
timevortex/utils/filestorage.py
timevortexproject/timevortex
2bc1a50b255524af8582e6624dee280d64d3c9f3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf8 -*- # -*- Mode: Python; py-indent-offset: 4 -*- """File storage adapter for timevortex project""" import os from os import listdir, makedirs from os.path import isfile, join, exists from time import tzname from datetime import datetime import pytz import dateutil.parser from djan...
34.497696
119
0.612209
5daed49fa4c053c06f93d18e081f06b652a982e8
4,078
py
Python
main_tg.py
olegush/quiz-bot
ae370d42f32c42b290a507924a801c63901d5148
[ "MIT" ]
null
null
null
main_tg.py
olegush/quiz-bot
ae370d42f32c42b290a507924a801c63901d5148
[ "MIT" ]
null
null
null
main_tg.py
olegush/quiz-bot
ae370d42f32c42b290a507924a801c63901d5148
[ "MIT" ]
null
null
null
import os import logging import logging.config from functools import partial from dotenv import load_dotenv from telegram import Bot, ReplyKeyboardMarkup, ReplyKeyboardRemove from telegram.ext import (Updater, CommandHandler, MessageHandler, RegexHandler, ConversationHandler, Filters) from red...
31.612403
102
0.632908
5daf4ad3d9f3b39d8355c443ca683a3b5708554c
3,082
py
Python
tf_fourier_features/fourier_features_mlp.py
titu1994/tf_fourier_features
3aead078ae79a278b9975e21f44560a7f51e3f31
[ "MIT" ]
37
2020-06-20T21:39:30.000Z
2021-11-08T09:31:22.000Z
tf_fourier_features/fourier_features_mlp.py
titu1994/tf_fourier_features
3aead078ae79a278b9975e21f44560a7f51e3f31
[ "MIT" ]
null
null
null
tf_fourier_features/fourier_features_mlp.py
titu1994/tf_fourier_features
3aead078ae79a278b9975e21f44560a7f51e3f31
[ "MIT" ]
5
2020-06-22T10:24:11.000Z
2021-09-10T10:40:08.000Z
import tensorflow as tf from typing import Optional from tf_fourier_features import fourier_features
48.15625
156
0.633679
5db0d4e1070be8121a1c33bca072f550967ebe82
6,969
py
Python
eek/spider.py
fusionbox/eek
8e962b7ad80c594a3498190fead016db826771e0
[ "BSD-2-Clause-FreeBSD" ]
5
2015-05-11T18:13:51.000Z
2021-07-17T04:53:27.000Z
eek/spider.py
fusionbox/eek
8e962b7ad80c594a3498190fead016db826771e0
[ "BSD-2-Clause-FreeBSD" ]
1
2015-03-06T20:32:14.000Z
2015-03-06T20:32:14.000Z
eek/spider.py
fusionbox/eek
8e962b7ad80c594a3498190fead016db826771e0
[ "BSD-2-Clause-FreeBSD" ]
2
2015-07-15T12:41:32.000Z
2015-10-12T21:40:14.000Z
import urlparse import csv import sys import re import collections import time import requests from eek import robotparser # this project's version from bs4 import BeautifulSoup try: import lxml except ImportError: HTML_PARSER = None else: HTML_PARSER = 'lxml' encoding_re = re.compile("charset\s*=\s*(\...
29.529661
99
0.605252
5db204f5af9206eceaf400a510a5e3d05316e861
2,647
py
Python
observations/r/zea_mays.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/zea_mays.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/zea_mays.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def zea_mays(path): """Darwin's Heights of Cross- and Self-fertilized Zea...
32.679012
74
0.705327
5db3dae6928f712e933165c643051e536448b1fb
359
py
Python
ois_api_client/v3_0/dto/Lines.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
7
2020-10-22T08:15:29.000Z
2022-01-27T07:59:39.000Z
ois_api_client/v3_0/dto/Lines.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
ois_api_client/v3_0/dto/Lines.py
peterkulik/ois_api_client
51dabcc9f920f89982c4419bb058f5a88193cee0
[ "MIT" ]
null
null
null
from typing import List from dataclasses import dataclass from .Line import Line
22.4375
117
0.743733
5db3e4eb84b3d9fc5559048f6229e0e36618f2f4
1,545
py
Python
parsing_documents.py
leylafenix/belief-network-irs
9094e4cde738bd93ed1747dc958b5acb0e0fa684
[ "MIT" ]
null
null
null
parsing_documents.py
leylafenix/belief-network-irs
9094e4cde738bd93ed1747dc958b5acb0e0fa684
[ "MIT" ]
null
null
null
parsing_documents.py
leylafenix/belief-network-irs
9094e4cde738bd93ed1747dc958b5acb0e0fa684
[ "MIT" ]
null
null
null
__author__ = 'Jose Gabriel' import os import pprint if __name__ == '__main__': s = "adi" + os.sep + "ADI.ALL" out_folder = "test_index" try: # averiguar como preguntar si una carpeta o fichero existe en python os.mkdir(out_folder) except FileExistsError: pass ...
26.186441
79
0.514563
5db477aeb7079f4d5d6c834082c575659d075877
161
py
Python
groups/admin.py
caktus/rapidsms-groups
eda6f30cdc60cf57833f1d37ba08e59454da8987
[ "BSD-3-Clause" ]
1
2016-06-19T07:34:19.000Z
2016-06-19T07:34:19.000Z
groups/admin.py
caktus/rapidsms-groups
eda6f30cdc60cf57833f1d37ba08e59454da8987
[ "BSD-3-Clause" ]
null
null
null
groups/admin.py
caktus/rapidsms-groups
eda6f30cdc60cf57833f1d37ba08e59454da8987
[ "BSD-3-Clause" ]
1
2016-08-31T05:02:03.000Z
2016-08-31T05:02:03.000Z
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 from django.contrib import admin from groups.models import Group admin.site.register(Group)
17.888889
43
0.751553
5db48c51cdf7033a6dcea32b1d26408dd6d2dbc0
1,891
py
Python
avod/datasets/kitti/kitti_aug_test.py
Ascend-Huawei/AVOD
ea62372517bbfa9d4020bc5ab2739ee182c63c56
[ "BSD-2-Clause" ]
null
null
null
avod/datasets/kitti/kitti_aug_test.py
Ascend-Huawei/AVOD
ea62372517bbfa9d4020bc5ab2739ee182c63c56
[ "BSD-2-Clause" ]
null
null
null
avod/datasets/kitti/kitti_aug_test.py
Ascend-Huawei/AVOD
ea62372517bbfa9d4020bc5ab2739ee182c63c56
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2017 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...
33.767857
78
0.670016
5db5a1d6975c3995d47712215ed2acd01be9b8ad
208
py
Python
application/model/_base.py
keysona/blog
783e0bdbed1e4d8ec9857ee609b39c9dfb958670
[ "MIT" ]
null
null
null
application/model/_base.py
keysona/blog
783e0bdbed1e4d8ec9857ee609b39c9dfb958670
[ "MIT" ]
null
null
null
application/model/_base.py
keysona/blog
783e0bdbed1e4d8ec9857ee609b39c9dfb958670
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy, Model # class BaseModel(Model): # def save(self): # db.session.add(self) # db.session.commit(self) # def delete(self): # db.session. db = SQLAlchemy()
16
46
0.673077
5db6309005811059a99432092acd5ed62236c399
23,282
py
Python
kvmagent/kvmagent/plugins/prometheus.py
qianfei11/zstack-utility
e791bc6b6ae3a74e202f6fce84bde498c715aee8
[ "Apache-2.0" ]
null
null
null
kvmagent/kvmagent/plugins/prometheus.py
qianfei11/zstack-utility
e791bc6b6ae3a74e202f6fce84bde498c715aee8
[ "Apache-2.0" ]
null
null
null
kvmagent/kvmagent/plugins/prometheus.py
qianfei11/zstack-utility
e791bc6b6ae3a74e202f6fce84bde498c715aee8
[ "Apache-2.0" ]
null
null
null
import os.path import threading import typing from prometheus_client import start_http_server from prometheus_client.core import GaugeMetricFamily, REGISTRY from kvmagent import kvmagent from zstacklib.utils import http from zstacklib.utils import jsonobject from zstacklib.utils import lock from zstacklib.utils impor...
36.492163
157
0.583541
5db634e6fdac00dd4f3ce30f7fe7fbdaae184512
6,924
py
Python
recipes/libstudxml/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/libstudxml/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/libstudxml/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
from conans import ConanFile, AutoToolsBuildEnvironment, MSBuild, tools from conans.errors import ConanInvalidConfiguration import os import shutil required_conan_version = ">=1.33.0"
41.963636
124
0.633449
5db692792275a8f7aff10d7781c4cef5d88900db
6,263
py
Python
dataset/WebCariA.py
KeleiHe/DAAN
04e153c55f8d63e824adbee828e524573afe6a1c
[ "Apache-2.0" ]
9
2020-07-24T03:32:17.000Z
2022-03-25T12:01:24.000Z
dataset/WebCariA.py
KeleiHe/DAAN
04e153c55f8d63e824adbee828e524573afe6a1c
[ "Apache-2.0" ]
1
2020-10-14T17:22:43.000Z
2020-10-14T17:22:43.000Z
dataset/WebCariA.py
KeleiHe/DAAN
04e153c55f8d63e824adbee828e524573afe6a1c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Wen Ji & Kelei He (hkl@nju.edu.cn) # 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 requ...
38.900621
113
0.440683
5db7554e0b55f70192702d11bfb40d5a1d8f2459
4,081
py
Python
moonworm/crawler/state/json_state.py
zomglings/moonworm
930e60199629b6a04adecc7f9ff9450e51bb4640
[ "Apache-2.0" ]
10
2021-12-08T22:35:58.000Z
2022-03-30T07:38:12.000Z
moonworm/crawler/state/json_state.py
zomglings/moonworm
930e60199629b6a04adecc7f9ff9450e51bb4640
[ "Apache-2.0" ]
29
2021-11-04T12:30:31.000Z
2022-03-03T21:29:08.000Z
moonworm/crawler/state/json_state.py
zomglings/moonworm
930e60199629b6a04adecc7f9ff9450e51bb4640
[ "Apache-2.0" ]
5
2021-11-06T02:25:09.000Z
2022-02-15T03:09:26.000Z
import datetime import json import time from typing import Optional from web3.datastructures import AttributeDict from .event_scanner_state import EventScannerState
35.486957
109
0.626072
5db81c5e24b93ba19d16beaadd48634b1c9fd58a
4,934
py
Python
npbench/benchmarks/nbody/nbody_dace.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
27
2021-05-10T11:49:13.000Z
2022-03-22T18:07:19.000Z
npbench/benchmarks/nbody/nbody_dace.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
3
2021-12-01T13:03:17.000Z
2022-03-17T10:53:00.000Z
npbench/benchmarks/nbody/nbody_dace.py
frahlg/npbench
1bc4d9e2e22f3ca67fa2bc7f40e2e751a9c8dd26
[ "BSD-3-Clause" ]
7
2021-06-24T03:40:25.000Z
2022-01-26T09:04:33.000Z
# Adapted from https://github.com/pmocz/nbody-python/blob/master/nbody.py # TODO: Add GPL-3.0 License import numpy as np import dace as dc """ Create Your Own N-body Simulation (With Python) Philip Mocz (2020) Princeton Univeristy, @PMocz Simulate orbits of stars interacting due to gravity Code calculates pairwise for...
29.195266
85
0.561005
5db8b350508cfde3359da0d0ee1d9036c8e97549
817
py
Python
application/__init__.py
Healthy-Kokoro/Hiroshima
87c6c533f97f55ceb33553a2409076bcd21a36d2
[ "MIT" ]
null
null
null
application/__init__.py
Healthy-Kokoro/Hiroshima
87c6c533f97f55ceb33553a2409076bcd21a36d2
[ "MIT" ]
null
null
null
application/__init__.py
Healthy-Kokoro/Hiroshima
87c6c533f97f55ceb33553a2409076bcd21a36d2
[ "MIT" ]
null
null
null
# Third-party imports from flask import Flask from flask_sqlalchemy import SQLAlchemy configurations = { 'development': 'configurations.DevelopmentConfiguration', 'testing': 'configurations.TestingConfiguration', 'staging': 'configurations.StagingConfiguration', 'production': 'configurations.ProductionConfiguratio...
30.259259
64
0.831089
5db8ca5f5d703991674fff33fa5c1ac47210c351
692
py
Python
lesson5/exceptions_except.py
drednout/letspython
9747442d63873b5f71e2c15ed5528bd98ad5ac31
[ "BSD-2-Clause" ]
1
2015-11-26T15:53:58.000Z
2015-11-26T15:53:58.000Z
lesson5/exceptions_except.py
drednout/letspython
9747442d63873b5f71e2c15ed5528bd98ad5ac31
[ "BSD-2-Clause" ]
null
null
null
lesson5/exceptions_except.py
drednout/letspython
9747442d63873b5f71e2c15ed5528bd98ad5ac31
[ "BSD-2-Clause" ]
null
null
null
if __name__ == "__main__": fridge = { "beer": 2, "milk": 1, "meat": 3, } print("I wanna drink 1 bottle of beer...") take_beer(fridge) print("Oooh, great!") print("I wanna drink 2 bottle of beer...") try: take_beer(fridge, 2) except Exception as e: ...
22.322581
54
0.559249
5db9f201356818f114d992f32b2d46869da4d326
23,877
py
Python
synapse/storage/data_stores/state/store.py
juhovan/synapse
57feeab364325374b14ff67ac97c288983cc5cde
[ "Apache-2.0" ]
1
2020-07-12T00:18:52.000Z
2020-07-12T00:18:52.000Z
synapse/storage/data_stores/state/store.py
juhovan/synapse
57feeab364325374b14ff67ac97c288983cc5cde
[ "Apache-2.0" ]
null
null
null
synapse/storage/data_stores/state/store.py
juhovan/synapse
57feeab364325374b14ff67ac97c288983cc5cde
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket Ltd # # 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 applicab...
37.307813
88
0.590568
5dba0da51e77fecfd4eb4bbfdb42e2e652206d09
1,322
py
Python
core/migrations/0011_itemvariation_variation.py
manulangat1/djcommerce
2cd92631479ef949e0f05a255f2f50feca728802
[ "MIT" ]
1
2020-02-08T16:29:41.000Z
2020-02-08T16:29:41.000Z
core/migrations/0011_itemvariation_variation.py
manulangat1/djcommerce
2cd92631479ef949e0f05a255f2f50feca728802
[ "MIT" ]
15
2020-05-04T13:22:32.000Z
2022-03-12T00:27:28.000Z
core/migrations/0011_itemvariation_variation.py
manulangat1/djcommerce
2cd92631479ef949e0f05a255f2f50feca728802
[ "MIT" ]
1
2020-10-17T08:54:31.000Z
2020-10-17T08:54:31.000Z
# Generated by Django 2.2.6 on 2020-02-09 12:24 from django.db import migrations, models import django.db.models.deletion
34.789474
115
0.555219
5dba8f581c63a89cafcdb31c2be81f0648adb964
1,422
py
Python
mnist/convolutional.py
Colins-Ford/mnist-webapp
20e9b6f5520d5bda957d9501347f787450555db8
[ "Apache-2.0" ]
null
null
null
mnist/convolutional.py
Colins-Ford/mnist-webapp
20e9b6f5520d5bda957d9501347f787450555db8
[ "Apache-2.0" ]
null
null
null
mnist/convolutional.py
Colins-Ford/mnist-webapp
20e9b6f5520d5bda957d9501347f787450555db8
[ "Apache-2.0" ]
null
null
null
import os from mnist import model import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data data = input_data.read_data_sets("data/dataset/", one_hot=True) # model with tf.variable_scope("convolutional"): x = tf.placeholder(tf.float32, [None, 784]) keep_prob = tf.placeholder(tf.float...
37.421053
100
0.69339
5dba9613244bd2e35eb89625f766b4f652fe90d8
2,901
py
Python
parse_scripts/import_osm.py
nokout/au_address
07138ecd8fedab9566435b609cb8124b67ad42ff
[ "MIT" ]
1
2018-11-16T15:41:38.000Z
2018-11-16T15:41:38.000Z
training/parse_scripts/import_osm.py
crccheck/us-address-parser
826fd365cba065a0588fa013cddbb23a8dac27a9
[ "MIT" ]
6
2016-10-05T11:21:36.000Z
2016-10-18T15:11:20.000Z
parse_scripts/import_osm.py
nokout/au_address
07138ecd8fedab9566435b609cb8124b67ad42ff
[ "MIT" ]
null
null
null
import requests import codecs query1 = """<union> <query type="way"> <has-kv k="addr:housenumber"/> <has-kv k="addr:street:name"/> <has-kv k="addr:street:type"/> <has-kv k="addr:state"/> <bbox-query e="%s" n="%s" s="%s" w="%s"/> </query> <query type="way"> <has-kv k="addr:housenumber"/> <ha...
28.441176
99
0.558083
5dbd482917f27cdd677d99ffd355bb76525f3a13
4,110
py
Python
tools/test_net_batch.py
abhirevan/pedestrian-detector
f4fa4cd59315ea515ace3c529b716ff3173e2205
[ "BSD-2-Clause" ]
null
null
null
tools/test_net_batch.py
abhirevan/pedestrian-detector
f4fa4cd59315ea515ace3c529b716ff3173e2205
[ "BSD-2-Clause" ]
null
null
null
tools/test_net_batch.py
abhirevan/pedestrian-detector
f4fa4cd59315ea515ace3c529b716ff3173e2205
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Test a Fast R-CNN network on an image databas...
33.145161
119
0.615572
5dbe1aa985f0f74b54e5721ad988a0ced87ead89
469
py
Python
mygallary/urls.py
mangowilliam/my_gallary
4c87fe055e5c28d6ca6a27ea5bde7df380750006
[ "MIT" ]
null
null
null
mygallary/urls.py
mangowilliam/my_gallary
4c87fe055e5c28d6ca6a27ea5bde7df380750006
[ "MIT" ]
6
2021-03-19T02:06:21.000Z
2022-03-11T23:53:21.000Z
mygallary/urls.py
mangowilliam/my_gallary
4c87fe055e5c28d6ca6a27ea5bde7df380750006
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from . import views urlpatterns = [ url('^$', views.gallary,name = 'gallary'), url(r'^search/', views.search_image, name='search_image'), url(r'^details/(\d+)',views.search_location,name ='images'...
20.391304
81
0.656716
5dbebf189d084ec54743890289ba79eb7c5bba5c
5,831
py
Python
yolox/data/datasets/mot.py
ldelzott/ByteTrack
5f8ab49a913a551d041918607a0bd2473602ad39
[ "MIT" ]
null
null
null
yolox/data/datasets/mot.py
ldelzott/ByteTrack
5f8ab49a913a551d041918607a0bd2473602ad39
[ "MIT" ]
null
null
null
yolox/data/datasets/mot.py
ldelzott/ByteTrack
5f8ab49a913a551d041918607a0bd2473602ad39
[ "MIT" ]
null
null
null
import cv2 import numpy as np from pycocotools.coco import COCO import os from ..dataloading import get_yolox_datadir from .datasets_wrapper import Dataset
40.776224
165
0.510547
5dbf449975065338e5216b26f0b50de7db0d2cd0
4,740
py
Python
src/poetry/console/commands/remove.py
pkoch/poetry
d22c5a7187d8b5a30196a7df58111b3c90be7d22
[ "MIT" ]
null
null
null
src/poetry/console/commands/remove.py
pkoch/poetry
d22c5a7187d8b5a30196a7df58111b3c90be7d22
[ "MIT" ]
null
null
null
src/poetry/console/commands/remove.py
pkoch/poetry
d22c5a7187d8b5a30196a7df58111b3c90be7d22
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Any from cleo.helpers import argument from cleo.helpers import option from tomlkit.toml_document import TOMLDocument try: from poetry.core.packages.dependency_group import MAIN_GROUP except ImportError: MAIN_GROUP = "default" from poetry.console.command...
34.347826
88
0.59789
5dbff166d1570c685dadc7e901e806b3102dde0f
3,316
py
Python
orrinjelo/aoc2021/day_11.py
orrinjelo/AdventOfCode2021
6fce5c48ec3dc602b393824f592a5c6db2a8b66f
[ "MIT" ]
null
null
null
orrinjelo/aoc2021/day_11.py
orrinjelo/AdventOfCode2021
6fce5c48ec3dc602b393824f592a5c6db2a8b66f
[ "MIT" ]
null
null
null
orrinjelo/aoc2021/day_11.py
orrinjelo/AdventOfCode2021
6fce5c48ec3dc602b393824f592a5c6db2a8b66f
[ "MIT" ]
null
null
null
from orrinjelo.utils.decorators import timeit import numpy as np visited = [] # = Test ================================================ inputlist = [ '5483143223', '2745854711', '5264556173', '6141336146', '6357385478', '4167524645', '2176841721', '6882881134', '4846848554', ...
22.557823
85
0.518697
5dc01810c4c1797d877a743bdf67e61535eee657
1,914
py
Python
exercise_2/exercise_2.1.py
lukaszbinden/ethz-iacv-2020
271de804315de98b816cda3e2498958ffa87ad59
[ "MIT" ]
null
null
null
exercise_2/exercise_2.1.py
lukaszbinden/ethz-iacv-2020
271de804315de98b816cda3e2498958ffa87ad59
[ "MIT" ]
null
null
null
exercise_2/exercise_2.1.py
lukaszbinden/ethz-iacv-2020
271de804315de98b816cda3e2498958ffa87ad59
[ "MIT" ]
null
null
null
camera_width = 640 camera_height = 480 film_back_width = 1.417 film_back_height = 0.945 x_center = 320 y_center = 240 P_1 = (-0.023, -0.261, 2.376) p_11 = P_1[0] p_12 = P_1[1] p_13 = P_1[2] P_2 = (0.659, -0.071, 2.082) p_21 = P_2[0] p_22 = P_2[1] p_23 = P_2[2] p_1_prime = (52, 163) x_1 = p_1_prime[0] y_1 = p_1_pr...
23.060241
129
0.642633
5dc0c299dbdb6b798fc1619ba108af859bcce78e
3,329
py
Python
services/train/single.py
paper2code/torch2vec-restful-service
6c4412d84d067268bf988b1f31cef716a2ed23a5
[ "MIT" ]
2
2020-09-13T18:08:52.000Z
2020-09-19T05:26:50.000Z
services/train/single.py
paper2code/torch2vec-restful-service
6c4412d84d067268bf988b1f31cef716a2ed23a5
[ "MIT" ]
null
null
null
services/train/single.py
paper2code/torch2vec-restful-service
6c4412d84d067268bf988b1f31cef716a2ed23a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Aug 26 19:15:34 2020 @author: deviantpadam """ import pandas as pd import numpy as np import concurrent.futures import os import tqdm from collections import Counter from torch2vec.data import DataPreparation from torch2vec.torch2vec import DM # train ...
36.988889
151
0.681586
5dc0fa811b71f512df88503ac7e13855083e0792
8,399
py
Python
tests/sources/test_document_oereblex.py
geo-bl-ch/pyramid_oereb
767375a4adda4589e12c4257377fc30258cdfcb3
[ "BSD-2-Clause" ]
null
null
null
tests/sources/test_document_oereblex.py
geo-bl-ch/pyramid_oereb
767375a4adda4589e12c4257377fc30258cdfcb3
[ "BSD-2-Clause" ]
null
null
null
tests/sources/test_document_oereblex.py
geo-bl-ch/pyramid_oereb
767375a4adda4589e12c4257377fc30258cdfcb3
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import pytest import requests_mock from geolink_formatter.entity import Document, File from requests.auth import HTTPBasicAuth from pyramid_oereb.contrib.sources.document import OEREBlexSource from pyramid_oereb.lib.records.documents import DocumentRecord, LegalProvisionRecord...
37.328889
102
0.604239
5dc1607dc008e8af7451051e5d28ffb9f945411a
998
py
Python
apps/zsh/singletons.py
codecat555/codecat555-fidgetingbits_knausj_talon
62f9be0459e6631c99d58eee97054ddd970cc5f3
[ "MIT" ]
4
2021-02-04T07:36:05.000Z
2021-07-03T06:53:30.000Z
apps/zsh/singletons.py
codecat555/codecat555-fidgetingbits_knausj_talon
62f9be0459e6631c99d58eee97054ddd970cc5f3
[ "MIT" ]
null
null
null
apps/zsh/singletons.py
codecat555/codecat555-fidgetingbits_knausj_talon
62f9be0459e6631c99d58eee97054ddd970cc5f3
[ "MIT" ]
null
null
null
# A rarely-updated module to assist in writing reload-safe talon modules using # things like threads, which are not normally safe for reloading with talon. # If this file is ever updated, you'll need to restart talon. import logging _singletons = {}
28.514286
78
0.645291
5dc1f18fa3f023890a5249859cd11435ad90ffca
1,088
py
Python
trainNN/run_bichrom.py
yztxwd/Bichrom
3939b8e52816a02b34122feef27c8e0a06e31d8e
[ "MIT" ]
3
2021-02-09T14:07:48.000Z
2021-06-21T18:31:54.000Z
trainNN/run_bichrom.py
yztxwd/Bichrom
3939b8e52816a02b34122feef27c8e0a06e31d8e
[ "MIT" ]
5
2021-02-05T03:46:37.000Z
2022-03-16T16:34:41.000Z
trainNN/run_bichrom.py
yztxwd/Bichrom
3939b8e52816a02b34122feef27c8e0a06e31d8e
[ "MIT" ]
4
2021-01-09T19:59:51.000Z
2021-11-12T21:08:40.000Z
import argparse import yaml from subprocess import call from train import train_bichrom if __name__ == '__main__': # parsing parser = argparse.ArgumentParser(description='Train and Evaluate Bichrom') parser.add_argument('-training_schema_yaml', required=True, help='YAML file with pa...
38.857143
81
0.662684
5dc26a359dc3c1de1c2351ad0bab013c4dbc10a0
3,687
py
Python
setup.py
Fronius-SED/rapidyaml
20d44ff0c43085d08cb17f37fd6b0b305938a3ea
[ "MIT" ]
null
null
null
setup.py
Fronius-SED/rapidyaml
20d44ff0c43085d08cb17f37fd6b0b305938a3ea
[ "MIT" ]
null
null
null
setup.py
Fronius-SED/rapidyaml
20d44ff0c43085d08cb17f37fd6b0b305938a3ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: MIT import os import shutil import sys from pathlib import Path from distutils import log from setuptools import setup from setuptools.command.sdist import sdist as SdistCommand from cmake_build_extension import BuildExtension, CMakeExtension ...
32.342105
81
0.641714
5dc297d8b74fa875a21b1642232b22d90653124f
5,193
py
Python
litex_boards/targets/digilent_arty_z7.py
machdyne/litex-boards
2311db18f8c92f80f03226fa984e6110caf25b88
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/digilent_arty_z7.py
machdyne/litex-boards
2311db18f8c92f80f03226fa984e6110caf25b88
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/digilent_arty_z7.py
machdyne/litex-boards
2311db18f8c92f80f03226fa984e6110caf25b88
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # This file is part of LiteX-Boards. # # Copyright (c) 2021 Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> # SPDX-License-Identifier: BSD-2-Clause import argparse import subprocess from migen import * from litex_boards.platforms import digilent_arty_z7 from litex.build import ...
38.753731
123
0.561333
5dc2ee5e1dddc721c798287488da3cf41eba8ae1
6,899
py
Python
goose/parsers.py
allmalaysianews/article-extractor
8d0ff3ed01258d0fad56fc22d2c1852e603096b4
[ "Apache-2.0" ]
null
null
null
goose/parsers.py
allmalaysianews/article-extractor
8d0ff3ed01258d0fad56fc22d2c1852e603096b4
[ "Apache-2.0" ]
null
null
null
goose/parsers.py
allmalaysianews/article-extractor
8d0ff3ed01258d0fad56fc22d2c1852e603096b4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """\ This is a python port of "Goose" orignialy licensed to Gravity.com under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Python port was written by Xavier Grangier for Recrutae Gravity.co...
28.159184
84
0.584433
5dc3595f9215ec36727d03f139d3d859982ac98f
2,352
py
Python
src/infrastructure/database/postgres/sqlhandler.py
SoyBeansLab/daizu-online-judge-backend
873f81fdad2f216e28b83341a6d88b0e21078d6e
[ "MIT" ]
7
2019-05-14T08:40:35.000Z
2019-08-20T08:15:21.000Z
src/infrastructure/database/postgres/sqlhandler.py
SoyBeansLab/daizu-online-judge-backend
873f81fdad2f216e28b83341a6d88b0e21078d6e
[ "MIT" ]
76
2019-05-14T08:56:40.000Z
2020-10-18T16:25:33.000Z
src/infrastructure/database/postgres/sqlhandler.py
SoyBeansLab/daizu-online-judge-backend
873f81fdad2f216e28b83341a6d88b0e21078d6e
[ "MIT" ]
3
2019-12-12T01:44:31.000Z
2020-11-22T03:24:40.000Z
from logging import getLogger import os from typing import List, Union import psycopg2 from interface.database.sqlhandler import Cursor as AbsCursor from interface.database.sqlhandler import Result as AbsResult from interface.database.sqlhandler import SqlHandler as AbsSqlHandler from exceptions.waf import SqlTransa...
29.4
75
0.627551
5dc369e87fe800f32ded0cd2dc49e361f6723160
1,001
py
Python
virtualisation/wrapper/parser/xmlparser.py
CityPulse/CP_Resourcemanagement
aa670fa89d5e086a98ade3ccc152518be55abf2e
[ "MIT" ]
2
2016-11-03T14:57:45.000Z
2019-05-13T13:21:08.000Z
virtualisation/wrapper/parser/xmlparser.py
CityPulse/CP_Resourcemanagement
aa670fa89d5e086a98ade3ccc152518be55abf2e
[ "MIT" ]
null
null
null
virtualisation/wrapper/parser/xmlparser.py
CityPulse/CP_Resourcemanagement
aa670fa89d5e086a98ade3ccc152518be55abf2e
[ "MIT" ]
1
2020-07-23T11:27:15.000Z
2020-07-23T11:27:15.000Z
from virtualisation.clock.abstractclock import AbstractClock __author__ = 'Marten Fischer (m.fischer@hs-osnabrueck.de)' from virtualisation.wrapper.parser.abstractparser import AbstractParser from virtualisation.misc.jsonobject import JSONObject as JOb import datetime as dt
31.28125
91
0.682318
5dc48b0f27c0b76d7893695e9d44f12dbfa7a376
19,404
py
Python
plaso/formatters/interface.py
jonathan-greig/plaso
b88a6e54c06a162295d09b016bddbfbfe7ca9070
[ "Apache-2.0" ]
1,253
2015-01-02T13:58:02.000Z
2022-03-31T08:43:39.000Z
plaso/formatters/interface.py
jonathan-greig/plaso
b88a6e54c06a162295d09b016bddbfbfe7ca9070
[ "Apache-2.0" ]
3,388
2015-01-02T11:17:58.000Z
2022-03-30T10:21:45.000Z
plaso/formatters/interface.py
jonathan-greig/plaso
b88a6e54c06a162295d09b016bddbfbfe7ca9070
[ "Apache-2.0" ]
376
2015-01-20T07:04:54.000Z
2022-03-04T23:53:00.000Z
# -*- coding: utf-8 -*- """This file contains the event formatters interface classes. The l2t_csv and other formats are dependent on a message field, referred to as description_long and description_short in l2t_csv. Plaso no longer stores these field explicitly. A formatter, with a format string definition, is used ...
33.112628
79
0.704958
5dc4b2786f8172c270a1fc651693530424b90630
190
py
Python
python_program/condition.py
LiuKaiqiang94/PyStudyExample
b30212718b218c71e06b68677f55c33e3a1dbf46
[ "MIT" ]
5
2018-09-10T02:52:35.000Z
2018-09-20T07:50:42.000Z
python_program/condition.py
LiuKaiqiang94/PyStudyExample
b30212718b218c71e06b68677f55c33e3a1dbf46
[ "MIT" ]
null
null
null
python_program/condition.py
LiuKaiqiang94/PyStudyExample
b30212718b218c71e06b68677f55c33e3a1dbf46
[ "MIT" ]
null
null
null
main()
13.571429
33
0.442105
5dc534af6da39531ee8b4ae7b4baf8841a23115e
1,608
py
Python
Annotated_video/test/Annotatedvideo_worm.py
Rukaume/LRCN
0d1928cc72544f59a4335fea7febc561d3dfc118
[ "MIT" ]
1
2020-11-07T05:57:32.000Z
2020-11-07T05:57:32.000Z
Annotated_video/test/Annotatedvideo_worm.py
Rukaume/LRCN
0d1928cc72544f59a4335fea7febc561d3dfc118
[ "MIT" ]
1
2020-11-07T00:30:22.000Z
2021-01-26T02:22:16.000Z
Annotated_video/test/Annotatedvideo_worm.py
Rukaume/LRCN
0d1928cc72544f59a4335fea7febc561d3dfc118
[ "MIT" ]
1
2020-11-07T05:57:52.000Z
2020-11-07T05:57:52.000Z
# -*- coding: utf-8 -*- """ Created on Fri Sep 4 22:27:11 2020 @author: Miyazaki """ imdir = "C:/Users/Miyazaki/Desktop/hayashi_lab/20200527_lethargus_analysis/renamed_pillar_chamber-N2/chamber3" resultdir= "C:/Users/Miyazaki/Desktop/hayashi_lab/20200527_lethargus_analysis/renamed_pillar_chamber-N2/result0918.csv" i...
36.545455
119
0.670398
5dc789560fb397b3832cccec69534dcbf26e36d2
5,902
py
Python
emilia/modules/math.py
masterisira/ELIZA_OF-master
02a7dbf48e4a3d4ee0981e6a074529ab1497aafe
[ "Unlicense" ]
null
null
null
emilia/modules/math.py
masterisira/ELIZA_OF-master
02a7dbf48e4a3d4ee0981e6a074529ab1497aafe
[ "Unlicense" ]
null
null
null
emilia/modules/math.py
masterisira/ELIZA_OF-master
02a7dbf48e4a3d4ee0981e6a074529ab1497aafe
[ "Unlicense" ]
null
null
null
from typing import List import requests from telegram import Message, Update, Bot, MessageEntity from telegram.ext import CommandHandler, run_async from emilia import dispatcher from emilia.modules.disable import DisableAbleCommandHandler from emilia.modules.helper_funcs.alternate import send_message import pynewtonmat...
35.769697
252
0.763978
5dc7dadf50bfb05ab92b9d5e96fde0df19295e15
4,996
py
Python
services/IAm.py
matteobjornsson/serverless-rock-paper-scissors
32b6f11644c59dc3bb159ee9e1118fed26a3983d
[ "MIT" ]
null
null
null
services/IAm.py
matteobjornsson/serverless-rock-paper-scissors
32b6f11644c59dc3bb159ee9e1118fed26a3983d
[ "MIT" ]
null
null
null
services/IAm.py
matteobjornsson/serverless-rock-paper-scissors
32b6f11644c59dc3bb159ee9e1118fed26a3983d
[ "MIT" ]
1
2021-04-20T23:55:37.000Z
2021-04-20T23:55:37.000Z
# # Created on Thu Apr 22 2021 # Matteo Bjornsson # import boto3 from botocore.exceptions import ClientError import logging logging.basicConfig(filename="rps.log", level=logging.INFO) iam_resource = boto3.resource("iam") sts_client = boto3.client("sts") def create_role( iam_role_name: str, assume_role_policy_js...
34.937063
116
0.664532
5dcb3695e4bb82f323f1875e14dd30d0eb26c6e3
199
py
Python
stograde/common/run_status.py
babatana/stograde
c1c447e99c44c23cef9dd857e669861f3708ae77
[ "MIT" ]
null
null
null
stograde/common/run_status.py
babatana/stograde
c1c447e99c44c23cef9dd857e669861f3708ae77
[ "MIT" ]
null
null
null
stograde/common/run_status.py
babatana/stograde
c1c447e99c44c23cef9dd857e669861f3708ae77
[ "MIT" ]
null
null
null
from enum import auto, Enum
19.9
33
0.683417
5dcb43dbc68228752388169be1e8b17fd1bf9290
112
py
Python
recsys/__init__.py
shenghuiliuu/recsys
d706d1ae2558816c1e11ca790baeb7748200b404
[ "MIT" ]
50
2016-10-27T07:28:35.000Z
2022-03-30T01:32:32.000Z
recsys/__init__.py
shenghuiliuu/recsys
d706d1ae2558816c1e11ca790baeb7748200b404
[ "MIT" ]
5
2016-11-10T16:22:37.000Z
2020-09-16T10:26:59.000Z
recsys/__init__.py
shenghuiliuu/recsys
d706d1ae2558816c1e11ca790baeb7748200b404
[ "MIT" ]
22
2016-11-19T08:56:22.000Z
2021-06-23T16:13:10.000Z
__all__ = ['cross_validation', 'metrics', 'datasets', 'recommender']
14
31
0.4375
5dcbed3a8321b9c6b63677f0f51fde0daacfda04
21,917
py
Python
audiomate/annotations/label_list.py
CostanzoPablo/audiomate
080402eadaa81f77f64c8680510a2de64bc18e74
[ "MIT" ]
133
2018-05-18T13:54:10.000Z
2022-02-15T02:14:20.000Z
audiomate/annotations/label_list.py
CostanzoPablo/audiomate
080402eadaa81f77f64c8680510a2de64bc18e74
[ "MIT" ]
68
2018-06-03T16:42:09.000Z
2021-01-29T10:58:30.000Z
audiomate/annotations/label_list.py
CostanzoPablo/audiomate
080402eadaa81f77f64c8680510a2de64bc18e74
[ "MIT" ]
37
2018-11-02T02:40:29.000Z
2021-11-30T07:44:50.000Z
import collections import copy import intervaltree from .label import Label def addl(self, value, start=0.0, end=float('inf')): """ Shortcut for ``add(Label(value, start, end))``. """ self.add(Label(value, start=start, end=end)) def update(self, labels): """ Add a list of la...
31.580692
115
0.505087
5dcd4858a80507237d1cda30d4f8de4336f40710
3,044
py
Python
src/views/age_results_widget.py
RubyMarsden/Crayfish
33bbb1248beec2fc40eee59e462711dd8cbc33da
[ "MIT" ]
null
null
null
src/views/age_results_widget.py
RubyMarsden/Crayfish
33bbb1248beec2fc40eee59e462711dd8cbc33da
[ "MIT" ]
8
2021-03-19T06:35:48.000Z
2021-03-31T14:23:24.000Z
src/views/age_results_widget.py
RubyMarsden/Crayfish
33bbb1248beec2fc40eee59e462711dd8cbc33da
[ "MIT" ]
null
null
null
import matplotlib from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QHBoxLayout, QDialog, QPushButton, QWidget, QVBoxLayout, QLabel matplotlib.use('QT5Agg') import matplotlib.pyplot as plt from models.data_key import DataKey from utils import ui_utils
30.747475
100
0.598555
5dcd80b6fc81b5df240724a020510872ace9a270
791
py
Python
examples/single_run/ocaes_single_run.py
EnergyModels/OCAES
d848d9fa621767e036824110de87450d524b7687
[ "MIT" ]
null
null
null
examples/single_run/ocaes_single_run.py
EnergyModels/OCAES
d848d9fa621767e036824110de87450d524b7687
[ "MIT" ]
null
null
null
examples/single_run/ocaes_single_run.py
EnergyModels/OCAES
d848d9fa621767e036824110de87450d524b7687
[ "MIT" ]
null
null
null
import pandas as pd from OCAES import ocaes # ---------------------- # create and run model # ---------------------- data = pd.read_csv('timeseries_inputs_2019.csv') inputs = ocaes.get_default_inputs() # inputs['C_well'] = 5000.0 # inputs['X_well'] = 50.0 # inputs['L_well'] = 50.0 # inputs['X_cmp'] = 0 # inputs['X_exp...
23.969697
62
0.637168