hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
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
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
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
4
247
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.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
bb98c44e8fa26ce54915941fc3a287b0552567e3
3,179
py
Python
sdk/tests/tutorials/ibor/test_orders.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
null
null
null
sdk/tests/tutorials/ibor/test_orders.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
null
null
null
sdk/tests/tutorials/ibor/test_orders.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
null
null
null
import lusid.models as models
47.447761
120
0.668764
import unittest import uuid import lusid import lusid.models as models from lusid import OrderRequest from lusid import OrderSetRequest from lusid import PerpetualProperty from lusid import PropertyValue from lusid import ResourceId from lusidfeature import lusid_feature from utilities import InstrumentLoader from util...
0
2,740
0
11
0
0
0
79
319
577ed133ee90762b442ba14ff5ab164abc6ac3a1
501
py
Python
Lib/test/test_tk.py
fochoao/CPython
c92e0770af558fe3e440e44d3605c3acaf3c5b68
[ "TCL", "0BSD" ]
null
null
null
Lib/test/test_tk.py
fochoao/CPython
c92e0770af558fe3e440e44d3605c3acaf3c5b68
[ "TCL", "0BSD" ]
null
null
null
Lib/test/test_tk.py
fochoao/CPython
c92e0770af558fe3e440e44d3605c3acaf3c5b68
[ "TCL", "0BSD" ]
null
null
null
import unittest from test import support from test.support import check_sanitizer if check_sanitizer(address=True, memory=True): raise unittest.SkipTest("Tests involvin libX11 can SEGFAULT on ASAN/MSAN builds") # Skip test if _tkinter wasn't built. support.import_module('_tkinter') # Skip test if tk cannot be in...
25.05
85
0.768463
import unittest from test import support from test.support import check_sanitizer if check_sanitizer(address=True, memory=True): raise unittest.SkipTest("Tests involvin libX11 can SEGFAULT on ASAN/MSAN builds") # Skip test if _tkinter wasn't built. support.import_module('_tkinter') # Skip test if tk cannot be in...
0
0
0
0
0
74
0
0
23
41e04cd3b83b3555e5e9969dc2bf78865b546d84
1,100
py
Python
tests/test_distribution_function.py
ryuji0123/statistics_demo
c0b13ea73b351bdff24c492696e53f9eed04dba6
[ "MIT" ]
null
null
null
tests/test_distribution_function.py
ryuji0123/statistics_demo
c0b13ea73b351bdff24c492696e53f9eed04dba6
[ "MIT" ]
2
2021-03-22T11:30:59.000Z
2021-10-16T00:58:19.000Z
tests/test_distribution_function.py
ryuji0123/statistics_demo
c0b13ea73b351bdff24c492696e53f9eed04dba6
[ "MIT" ]
1
2021-05-09T03:12:26.000Z
2021-05-09T03:12:26.000Z
from os.path import exists from src.distribution_function import (GaussianProbabilisticDistributionHandler, BetaProbabilisticDistributionHandler) import cv2 def examine_show_or_save_figure_function(distribution_type: str) -> None: '''Test show_figure, save_figure function. Args: distribution_type: 'g...
31.428571
84
0.71
from os.path import exists from src.distribution_function import ( GaussianProbabilisticDistributionHandler, BetaProbabilisticDistributionHandler ) import cv2 def examine_show_or_save_figure_function(distribution_type: str) -> None: '''Test show_figure, save_figure function. Args: distributio...
0
0
0
0
0
99
0
10
23
6d0a2e894859e27d134d0d30978210a2f6bc6805
10,025
py
Python
spectrai/networks/nets/densenet.py
conor-horgan/spectrai
121dc677f161dbe85f62febc295909d1fb1825af
[ "Apache-2.0" ]
10
2021-08-19T02:58:13.000Z
2022-03-31T07:27:48.000Z
spectrai/networks/nets/densenet.py
conor-horgan/spectrai
121dc677f161dbe85f62febc295909d1fb1825af
[ "Apache-2.0" ]
null
null
null
spectrai/networks/nets/densenet.py
conor-horgan/spectrai
121dc677f161dbe85f62febc295909d1fb1825af
[ "Apache-2.0" ]
5
2021-08-19T03:43:55.000Z
2022-03-29T02:35:01.000Z
import torch.nn as nn # ------------------------------------------------------------ # DenseNet # ------------------------------------------------------------ # This code is adapted from: https://github.com/pytorch/vision/blob/master/torchvision/models/densenet.py # The corresponding paper is...
44.358407
107
0.613267
import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.checkpoint as cp from collections import OrderedDict from torch import Tensor from typing import Any, List, Tuple from spectrai.networks.layers import BasicConv from spectrai.networks.layer_utils import get_normalization, get_pooling...
0
372
0
7,956
0
661
0
122
384
6741732a8e359cf08df14faab6836637e45db74c
5,302
py
Python
ec2api/tests/unit/test_s3.py
NeCTAR-RC/ec2-api
7cc7395a110954c1bb330acbb2fcf5ca96b18ba0
[ "Apache-2.0" ]
null
null
null
ec2api/tests/unit/test_s3.py
NeCTAR-RC/ec2-api
7cc7395a110954c1bb330acbb2fcf5ca96b18ba0
[ "Apache-2.0" ]
null
null
null
ec2api/tests/unit/test_s3.py
NeCTAR-RC/ec2-api
7cc7395a110954c1bb330acbb2fcf5ca96b18ba0
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
38.985294
79
0.651264
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
0
0
0
4,228
0
0
0
76
178
9bca0adb5af33678efd54b222ad67744cbae69c5
3,433
py
Python
dynamorm/signals.py
smtheard/dynamorm
cc6dd139a53f5834bf2f6abf4c90f59ea675ace9
[ "Apache-2.0" ]
null
null
null
dynamorm/signals.py
smtheard/dynamorm
cc6dd139a53f5834bf2f6abf4c90f59ea675ace9
[ "Apache-2.0" ]
null
null
null
dynamorm/signals.py
smtheard/dynamorm
cc6dd139a53f5834bf2f6abf4c90f59ea675ace9
[ "Apache-2.0" ]
null
null
null
"""Signals provide a way for applications to loosely couple themselves and respond to different life cycle events. The `blinker`_ library provides the low-level signal implementation. To use the signals you ``connect`` a receiver function to the signals you're interested in: .. code-block:: python from dynamorm...
30.114035
114
0.698806
"""Signals provide a way for applications to loosely couple themselves and respond to different life cycle events. The `blinker`_ library provides the low-level signal implementation. To use the signals you ``connect`` a receiver function to the signals you're interested in: .. code-block:: python from dynamorm...
0
0
0
0
0
0
0
0
0
4dae598a92ef8fbed813ee4bc1b370eae8f672f2
92
py
Python
tests/__init__.py
Iceberg-Marketplace/Iceberg-API-PYTHON
5f8314376ebb6e5a8099253ec79fd40ea835beac
[ "MIT" ]
null
null
null
tests/__init__.py
Iceberg-Marketplace/Iceberg-API-PYTHON
5f8314376ebb6e5a8099253ec79fd40ea835beac
[ "MIT" ]
2
2015-01-26T10:22:41.000Z
2015-01-26T10:22:41.000Z
tests/__init__.py
Iceberg-Marketplace/Iceberg-API-PYTHON
5f8314376ebb6e5a8099253ec79fd40ea835beac
[ "MIT" ]
3
2016-12-30T15:08:57.000Z
2019-09-24T14:13:44.000Z
# -*- coding: utf-8 -*- import logging logging.getLogger('requests').setLevel(logging.INFO)
23
52
0.717391
# -*- coding: utf-8 -*- import logging logging.getLogger('requests').setLevel(logging.INFO)
0
0
0
0
0
0
0
0
0
80d763bbe711b8dea2ff99207997bb262bab8c81
768
py
Python
scripts/fetch_mp_data.py
sgbaird/ml-matrics
e0560af810b12cae3a34dd818d628360de2d96e5
[ "MIT" ]
11
2021-07-12T02:12:02.000Z
2022-02-14T19:06:22.000Z
scripts/fetch_mp_data.py
sgbaird/ml-matrics
e0560af810b12cae3a34dd818d628360de2d96e5
[ "MIT" ]
7
2021-10-14T10:00:01.000Z
2022-03-01T21:09:30.000Z
scripts/fetch_mp_data.py
sgbaird/ml-matrics
e0560af810b12cae3a34dd818d628360de2d96e5
[ "MIT" ]
2
2021-10-01T10:00:50.000Z
2022-02-12T08:50:22.000Z
# %% import pandas as pd from matminer.datasets import load_dataset from pymatgen.ext.matproj import MPRester from ml_matrics import ROOT # %% # needs MP API key in ~/.pmgrc.yml available at https://materialsproject.org/dashboard # pmg config --add PMG_MAPI_KEY <your_key> with MPRester() as mpr: formulas = mpr.q...
25.6
86
0.722656
# %% import pandas as pd from matminer.datasets import load_dataset from pymatgen.ext.matproj import MPRester from ml_matrics import ROOT # %% # needs MP API key in ~/.pmgrc.yml available at https://materialsproject.org/dashboard # pmg config --add PMG_MAPI_KEY <your_key> with MPRester() as mpr: formulas = mpr.q...
0
0
0
0
0
0
0
0
0
0c3491af49b2c96121bd0b401cc0eed1f1f34992
12,398
py
Python
Assignment.3/SocialNetwork.py
ash0x0/AUC-ProgrammingLanguagePython
3fc64c6acac981eef30d5b48278f06086ef4212b
[ "Apache-2.0" ]
1
2021-04-25T08:09:57.000Z
2021-04-25T08:09:57.000Z
SocialNetwork.py
ash0x0/SocialNetworkAssignment
b5e5dc8021e64c56bc22a4787f40770a91cabe88
[ "Apache-2.0" ]
null
null
null
SocialNetwork.py
ash0x0/SocialNetworkAssignment
b5e5dc8021e64c56bc22a4787f40770a91cabe88
[ "Apache-2.0" ]
null
null
null
"""This module is a graph-based social network model using networkx with a dictionaries of dictionaries implementation. Please make sure to install the following dependencies before running: - networkx: pip3 install networkx - matplotlib: pip3 install matplotlib - tkinter: apt install pyton...
49.394422
112
0.657203
import networkx import matplotlib.pyplot as plot import random import math """This module is a graph-based social network model using networkx with a dictionaries of dictionaries implementation. Please make sure to install the following dependencies before running: - networkx: pip3 install networkx ...
0
0
0
10,922
0
0
0
-13
111
bde0cf7f70524b358a8f4e9e421ce32e214ffd39
5,299
py
Python
scripts/hierarchical_clustering.py
HexFlow/tipsy
a656ff21a413bef5f94461a9d1ffd12ec0d779c0
[ "Apache-2.0" ]
14
2018-02-12T22:06:33.000Z
2021-02-21T19:59:36.000Z
scripts/hierarchical_clustering.py
HexFlow/tipsy
a656ff21a413bef5f94461a9d1ffd12ec0d779c0
[ "Apache-2.0" ]
null
null
null
scripts/hierarchical_clustering.py
HexFlow/tipsy
a656ff21a413bef5f94461a9d1ffd12ec0d779c0
[ "Apache-2.0" ]
1
2019-01-06T13:02:22.000Z
2019-01-06T13:02:22.000Z
#!/usr/bin/env python2 from __future__ import print_function import matplotlib from matplotlib import pyplot as plt from scipy.cluster.hierarchy import linkage, cophenet, to_tree import numpy as np import json import sys matplotlib.rcParams.update({'font.size': 18}) SHOWPLOT = 0 if len(sys.argv) >= 2 and sys.argv[...
29.769663
169
0.603699
#!/usr/bin/env python2 from __future__ import print_function import matplotlib from matplotlib import pyplot as plt from scipy.cluster.hierarchy import dendrogram, linkage, cophenet, to_tree import numpy as np import json import sys import os matplotlib.rcParams.update({'font.size': 18}) SHOWPLOT = 0 if len(sys.ar...
0
0
0
0
0
1,986
0
0
137
2bf0d919cba1518576d772b8c7f54234a77743e6
2,777
py
Python
L1TriggerConfig/GctConfigProducers/python/l1GctConfig_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
L1TriggerConfig/GctConfigProducers/python/l1GctConfig_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
L1TriggerConfig/GctConfigProducers/python/l1GctConfig_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 L1GctConfigProducers = cms.ESProducer("L1GctConfigProducers", JetFinderCentralJetSeed = cms.double(5.0), JetFinderForwardJetSeed = cms.double(5.0), TauIsoEtThreshold = cms.double(2.0), HtJetEtThreshold = cms.double(10.0), MHtJetEtThreshold = cms.double(10.0)...
60.369565
112
0.702197
import FWCore.ParameterSet.Config as cms L1GctConfigProducers = cms.ESProducer("L1GctConfigProducers", JetFinderCentralJetSeed = cms.double(5.0), JetFinderForwardJetSeed = cms.double(5.0), TauIsoEtThreshold = cms.double(2.0), HtJetEtThreshold = cms.double(10.0), MHtJetEtThreshold = cms.double(10.0)...
0
0
0
0
0
0
0
0
0
fc4ef7a37ff944e2d237c647e18f5d1ea1051227
3,312
py
Python
search/services/fulltext.py
f380cedric/arxiv-search
3d438cd82fb804db6ace55444aecdaa2dd772b05
[ "MIT" ]
null
null
null
search/services/fulltext.py
f380cedric/arxiv-search
3d438cd82fb804db6ace55444aecdaa2dd772b05
[ "MIT" ]
null
null
null
search/services/fulltext.py
f380cedric/arxiv-search
3d438cd82fb804db6ace55444aecdaa2dd772b05
[ "MIT" ]
null
null
null
"""Provides access to fulltext content for arXiv papers.""" from search.context import get_application_config, get_application_global def init_app(app: object = None) -> None: """Set default configuration parameters for an application instance.""" config = get_application_config(app) config.setdefault( ...
31.542857
78
0.625302
"""Provides access to fulltext content for arXiv papers.""" import json from http import HTTPStatus from functools import wraps from urllib.parse import urljoin import requests from search.domain import Fulltext from search.context import get_application_config, get_application_global class FulltextSession(object)...
0
150
0
1,972
0
0
0
20
181
16293d5e4754df529b611a6d4ce050a9a5bc95e2
3,959
py
Python
modules/rats/cybergate.py
nidsche/viper
d4e3b572fe772efc06e6879f7403b1c49e37f46f
[ "BSD-3-Clause" ]
97
2017-12-18T15:19:28.000Z
2022-03-25T07:10:00.000Z
modules/reversing/viper/rats/cybergate.py
robertdigital/CIRTKit
58b8793ada69320ffdbdd4ecdc04a3bb2fa83c37
[ "MIT" ]
1
2019-01-29T16:29:27.000Z
2019-01-29T16:29:27.000Z
modules/reversing/viper/rats/cybergate.py
robertdigital/CIRTKit
58b8793ada69320ffdbdd4ecdc04a3bb2fa83c37
[ "MIT" ]
21
2018-04-04T18:12:13.000Z
2021-06-12T09:40:58.000Z
# Originally written by Kevin Breen (@KevTheHermit): # https://github.com/kevthehermit/RATDecoders/blob/master/DarkComet.py
39.59
84
0.55317
# Originally written by Kevin Breen (@KevTheHermit): # https://github.com/kevthehermit/RATDecoders/blob/master/DarkComet.py import sys import string from struct import unpack import pefile from binascii import * def xor(data): key = 0xBC encoded = bytearray(data) for i in range(len(encoded)): enco...
0
0
0
0
0
3,673
0
-22
184
3492bf7c556a2670ed363c146d121b670372e95f
376
py
Python
mfr/ext/pdf/__init__.py
mfraezz/modular-file-renderer
f45d92f5af547fe356c86d9e5497b2130c07647b
[ "Apache-2.0" ]
null
null
null
mfr/ext/pdf/__init__.py
mfraezz/modular-file-renderer
f45d92f5af547fe356c86d9e5497b2130c07647b
[ "Apache-2.0" ]
null
null
null
mfr/ext/pdf/__init__.py
mfraezz/modular-file-renderer
f45d92f5af547fe356c86d9e5497b2130c07647b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- EXTENSIONS = ['.pdf']
19.789474
57
0.659574
# -*- coding: utf-8 -*- from mfr.core import FileHandler, get_file_extension from .render import render_pdf EXTENSIONS = ['.pdf'] class Handler(FileHandler): """FileHandler for Portable Document Format files.""" renderers = { 'html': render_pdf, } exporters = {} def detect(self, fp): ...
0
0
0
220
0
0
0
40
67
45dda8d0a08cb6557d6d1dce1fb2cb2730e498bb
7,788
py
Python
excel_to_pdf.py
samelsaid/pdf-filler
6944654f08d2ea16ee6a55642f02a49e6206949f
[ "Unlicense" ]
null
null
null
excel_to_pdf.py
samelsaid/pdf-filler
6944654f08d2ea16ee6a55642f02a49e6206949f
[ "Unlicense" ]
null
null
null
excel_to_pdf.py
samelsaid/pdf-filler
6944654f08d2ea16ee6a55642f02a49e6206949f
[ "Unlicense" ]
null
null
null
#! python3 # Author: Elsaid Salem # Credits: Gabor Szabo, GeeksForGeeks, Andrew Krcatovich # Notes: use .xls format for the excel, make sure to add a no_images dir to the output location in -o param #tahsine: x 23, y 445 # Known Issues: ''' - two files are created, need to delete image-less one, for now sort by .pd...
41.425532
212
0.673472
#! python3 # Author: Elsaid Salem # Credits: Gabor Szabo, GeeksForGeeks, Andrew Krcatovich # Notes: use .xls format for the excel, make sure to add a no_images dir to the output location in -o param #tahsine: x 23, y 445 # Known Issues: ''' - two files are created, need to delete image-less one, for now sort by .pd...
0
0
0
0
636
4,329
0
9
200
aa37b2d75fbb37cfd408e887000751b59f69971d
179
py
Python
run.py
wmvoje/pungent
6d50052236ccd0ead7a9492ef1d42263b8221273
[ "MIT" ]
null
null
null
run.py
wmvoje/pungent
6d50052236ccd0ead7a9492ef1d42263b8221273
[ "MIT" ]
1
2022-02-12T03:06:12.000Z
2022-02-12T03:06:12.000Z
run.py
wmvoje/pungent
6d50052236ccd0ead7a9492ef1d42263b8221273
[ "MIT" ]
null
null
null
#!/usr/bin/env python from website import app # Build logger if doesn't exist import os if not os.path.exists('/tmp/log.csv'): os.mknod('/tmp/log.csv') app.run(debug=True)
16.272727
38
0.692737
#!/usr/bin/env python from website import app # Build logger if doesn't exist import os if not os.path.exists('/tmp/log.csv'): os.mknod('/tmp/log.csv') app.run(debug=True)
0
0
0
0
0
0
0
0
0
13fd5836761ec923c3024f00bb33dc2cea5c94dd
1,601
py
Python
direct_cloud_upload/widgets.py
koendewit/django-direct-cloud-upload
2dbc12be87f0dc048671e88adbeea6f7179fcc7f
[ "BSD-3-Clause" ]
6
2020-01-21T10:24:15.000Z
2021-05-18T10:10:01.000Z
direct_cloud_upload/widgets.py
koendewit/django-direct-cloud-upload
2dbc12be87f0dc048671e88adbeea6f7179fcc7f
[ "BSD-3-Clause" ]
2
2021-04-18T20:33:47.000Z
2021-05-18T10:58:52.000Z
direct_cloud_upload/widgets.py
koendewit/django-direct-cloud-upload
2dbc12be87f0dc048671e88adbeea6f7179fcc7f
[ "BSD-3-Clause" ]
1
2020-08-28T13:29:38.000Z
2020-08-28T13:29:38.000Z
from django.core.signing import Signer signer = Signer()
42.131579
108
0.656465
import time from django.forms import Widget from django.urls import reverse from django.utils import baseconv from django.core.signing import Signer signer = Signer() class CloudFileWidget(Widget): template_name = "cloud_file_widget.html" def __init__(self, bucket_identifier: str, ...
0
0
0
1,410
0
0
0
22
112
0f067252d9598bab3125bff72dc57cd5463738a3
11,179
py
Python
python/sparktk/arguments.py
lewisc/spark-tk
5548fc925b5c278263cbdebbd9e8c7593320c2f4
[ "ECL-2.0", "Apache-2.0" ]
34
2016-05-20T22:26:05.000Z
2022-01-21T12:55:13.000Z
python/sparktk/arguments.py
lewisc/spark-tk
5548fc925b5c278263cbdebbd9e8c7593320c2f4
[ "ECL-2.0", "Apache-2.0" ]
70
2016-06-28T01:11:21.000Z
2021-03-15T21:40:01.000Z
python/sparktk/arguments.py
lewisc/spark-tk
5548fc925b5c278263cbdebbd9e8c7593320c2f4
[ "ECL-2.0", "Apache-2.0" ]
34
2016-04-21T22:25:22.000Z
2020-10-06T09:23:43.000Z
# vim: set encoding=utf-8 # Copyright(c)2016 IntelCorporation # # LicensedundertheApacheLicense,Version2.0(the"License"); # youmaynotusethisfileexceptincompliancewiththeLicense. # YoumayobtainacopyoftheLicenseat # # http://www.apache.org/licenses/LICENSE-2.0 # # Unlessrequiredbyapplicablelaworagreedtoinwriting,s...
40.79927
181
0.677163
# vim: set encoding=utf-8 # Copyright (c) 2016 Intel Corporation  # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #       http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
156
778
0
3,225
0
0
0
0
69
d24b6e45881fbe989ba7c6c392b7c6f31586f158
3,902
py
Python
SubBadgeMaker.py
MsonC/ImageResizer
d318fe6deafdeae61d7b9c4d6a3632c060a1fcab
[ "MIT" ]
null
null
null
SubBadgeMaker.py
MsonC/ImageResizer
d318fe6deafdeae61d7b9c4d6a3632c060a1fcab
[ "MIT" ]
null
null
null
SubBadgeMaker.py
MsonC/ImageResizer
d318fe6deafdeae61d7b9c4d6a3632c060a1fcab
[ "MIT" ]
null
null
null
import os import argparse import glob # TODO Change the image resize method to be more dynamic. As in add a loop to do the given sizes instead of the presets default_sizes = ['18', '36', '72'] # Twitchs required Sub Badge sizes if __name__ == '__main__': parser = argparse.ArgumentParser( ...
49.392405
165
0.541261
import os, sys import PIL from PIL import Image import argparse import glob # TODO Change the image resize method to be more dynamic. As in add a loop to do the given sizes instead of the presets default_sizes = ['18', '36', '72'] # Twitchs required Sub Badge sizes def resize_image(input_image_path, o...
0
0
0
0
0
508
0
-6
71
bc8b2adb748d9a10ccfd0487a33ac5f3732aec4c
4,783
py
Python
tests/toranj/test-603-channel-manager-announce-recovery.py
e-rk/openthread
e18877210ac9a74f93786c74ae654233928c2b0c
[ "BSD-3-Clause" ]
1
2018-09-25T15:27:26.000Z
2018-09-25T15:27:26.000Z
tests/toranj/test-603-channel-manager-announce-recovery.py
e-rk/openthread
e18877210ac9a74f93786c74ae654233928c2b0c
[ "BSD-3-Clause" ]
2
2017-03-23T07:47:54.000Z
2017-08-21T03:12:31.000Z
tests/toranj/test-603-channel-manager-announce-recovery.py
e-rk/openthread
e18877210ac9a74f93786c74ae654233928c2b0c
[ "BSD-3-Clause" ]
3
2018-03-14T10:33:34.000Z
2018-09-11T11:04:21.000Z
#!/usr/bin/env python # # Copyright (c) 2018, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
39.858333
120
0.612168
#!/usr/bin/env python # # Copyright (c) 2018, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
0
0
0
0
0
0
0
0
0
447018ec9fbc4b9f16ce52992de06dc0879f9ccb
127
py
Python
Exercise_2_3.py
kushrami/Python-Crash-Course-book-Excersice
7093181940a90d9f4bab5775ef56f57963450393
[ "Apache-2.0" ]
null
null
null
Exercise_2_3.py
kushrami/Python-Crash-Course-book-Excersice
7093181940a90d9f4bab5775ef56f57963450393
[ "Apache-2.0" ]
null
null
null
Exercise_2_3.py
kushrami/Python-Crash-Course-book-Excersice
7093181940a90d9f4bab5775ef56f57963450393
[ "Apache-2.0" ]
null
null
null
#Personal message: Personel_name = "Tony" message = "You are doing great in coding." print(Personel_name + "! " + message)
15.875
42
0.692913
#Personal message: Personel_name = "Tony" message = "You are doing great in coding." print(Personel_name + "! " + message)
0
0
0
0
0
0
0
0
0
a4265c978c844938b0c43bfcc0ecd90ee65f7f48
848
py
Python
prog_praxis/xref.py
genos/online_problems
324597e8b64d74ad96dbece551a8220a1b61e615
[ "MIT" ]
1
2020-07-17T13:15:21.000Z
2020-07-17T13:15:21.000Z
prog_praxis/xref.py
genos/online_problems
324597e8b64d74ad96dbece551a8220a1b61e615
[ "MIT" ]
null
null
null
prog_praxis/xref.py
genos/online_problems
324597e8b64d74ad96dbece551a8220a1b61e615
[ "MIT" ]
null
null
null
#!/usr/bin/env python if __name__ == "__main__": import sys output(xref(sys.argv[1] if sys.argv[1:] else "xref.py"))
27.354839
79
0.545991
#!/usr/bin/env python from collections import defaultdict from re import compile def xref(file_name): exclude = compile(r"[\\\"'\(\)\[\]:?.,]") # unwanted characters comment = compile(r"\#.*") # comments with open(file_name) as f: lines = f.readlines() d = defau...
0
0
0
0
0
613
0
15
91
414b9a29e68ca45c4cbaf39715ebb86cbec45d9e
6,128
py
Python
solr_tasks/managed_resource.py
dataoverheid/solr-index-tasks
864cb5aa4574458b6244392d3efce2ceab87dbd7
[ "CC0-1.0" ]
null
null
null
solr_tasks/managed_resource.py
dataoverheid/solr-index-tasks
864cb5aa4574458b6244392d3efce2ceab87dbd7
[ "CC0-1.0" ]
null
null
null
solr_tasks/managed_resource.py
dataoverheid/solr-index-tasks
864cb5aa4574458b6244392d3efce2ceab87dbd7
[ "CC0-1.0" ]
null
null
null
# encoding: utf-8 if '__main__' == __name__: main()
34.234637
82
0.655679
# encoding: utf-8 import argparse import logging import os from solr_tasks.lib import utils from solr_tasks.lib.solr import SolrCollection, solr_collections def manage_stopwords(collection: SolrCollection, language_code: str) -> None: logging.info('managing stopwords_{0} resource'.format(language_code)) la...
0
0
0
0
0
5,713
0
29
318
6a13b13c71cbbdc5d777582e2816afce1fa5fdeb
153
py
Python
map/generators/__init__.py
Alerion/fantasy_map
1ed2d7daf44c10c4e5f747fda25b0afc8cd5ccfe
[ "MIT" ]
12
2015-11-28T09:03:39.000Z
2021-05-20T17:53:53.000Z
map/generators/__init__.py
frank-u/fantasy_map
1ed2d7daf44c10c4e5f747fda25b0afc8cd5ccfe
[ "MIT" ]
1
2015-08-05T13:55:00.000Z
2015-08-17T17:13:16.000Z
map/generators/__init__.py
frank-u/fantasy_map
1ed2d7daf44c10c4e5f747fda25b0afc8cd5ccfe
[ "MIT" ]
3
2016-05-15T17:45:15.000Z
2020-09-05T03:17:26.000Z
from . import points, graph, biomes, elevation, land, rivers, regions __all__ = ['points', 'graph', 'biomes', 'elevation', 'land', 'rivers', 'regions']
38.25
81
0.673203
from . import points, graph, biomes, elevation, land, rivers, regions __all__ = ['points', 'graph', 'biomes', 'elevation', 'land', 'rivers', 'regions']
0
0
0
0
0
0
0
0
0
26e1ef023f0000587b0cbb0d10eb5b7a9ba0348a
50,199
py
Python
nova/cells/manager.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/cells/manager.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/cells/manager.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright (c) 2012 Rackspace Hosting' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' c...
14.37543
763
0.623957
begin_unit comment|'# Copyright (c) 2012 Rackspace Hosting' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' c...
0
0
0
0
0
0
0
0
0
b9381edd654a1fae2353943186462ee4b5fdae8f
2,490
py
Python
jishaku/modules.py
diskord-dev/jishaku
3355516219ef4a68ac5a058c6049afd9b061945a
[ "MIT" ]
1
2021-11-23T16:43:09.000Z
2021-11-23T16:43:09.000Z
jishaku/modules.py
MarzaElise/jishaku
3355516219ef4a68ac5a058c6049afd9b061945a
[ "MIT" ]
1
2021-10-18T13:27:21.000Z
2021-10-18T13:27:21.000Z
jishaku/modules.py
MarzaElise/jishaku
3355516219ef4a68ac5a058c6049afd9b061945a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ jishaku.modules ~~~~~~~~~~~~~~ Functions for managing and searching modules. :copyright: (c) 2021 Devon (Gorialis) R :license: MIT, see LICENSE for more details. """ import pathlib import typing import pkg_resources from braceexpand import braceexpand from diskord.ext import commands ...
25.9375
95
0.642169
# -*- coding: utf-8 -*- """ jishaku.modules ~~~~~~~~~~~~~~ Functions for managing and searching modules. :copyright: (c) 2021 Devon (Gorialis) R :license: MIT, see LICENSE for more details. """ import pathlib import typing import pkg_resources from braceexpand import UnbalancedBracesError, braceexpand from diskor...
0
0
208
190
0
0
0
23
23
c751ad73f3eed0e7fd2fab7d562fa047416c6610
8,914
py
Python
module2-sql-for-analysis/rpg_table.py
Struth-Rourke/DS-Unit-3-Sprint-2-SQL-and-Databases
349a3a7ed932ebbac91c30c8eb23bf5be42bd862
[ "MIT" ]
null
null
null
module2-sql-for-analysis/rpg_table.py
Struth-Rourke/DS-Unit-3-Sprint-2-SQL-and-Databases
349a3a7ed932ebbac91c30c8eb23bf5be42bd862
[ "MIT" ]
null
null
null
module2-sql-for-analysis/rpg_table.py
Struth-Rourke/DS-Unit-3-Sprint-2-SQL-and-Databases
349a3a7ed932ebbac91c30c8eb23bf5be42bd862
[ "MIT" ]
null
null
null
import os import sqlite3 import pandas as pd # For PostgreSQL import psycopg2 as psycho # .env for security -- load_dotenv necessary for python to actually go into # .env folder and load the information from dotenv import load_dotenv load_dotenv() # os filepath DATABASE_FILEPATH = os.path.join(os.path.dirname(__f...
25.614943
134
0.69116
import os import json import sqlite3 import pandas as pd # For PostgreSQL import psycopg2 as psycho from psycopg2.extras import execute_values # .env for security -- load_dotenv necessary for python to actually go into # .env folder and load the information from dotenv import load_dotenv load_dotenv() # os filepa...
0
0
0
0
0
0
0
11
45
354305159a0c064f9ef84bf0a119294188011e1f
88
py
Python
code/sample_1-2-18.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
1
2022-03-29T13:50:12.000Z
2022-03-29T13:50:12.000Z
code/sample_1-2-18.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
code/sample_1-2-18.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
rows = int(input()) x = [list(map(int, input().split())) for i in range(rows)] print(x)
22
58
0.613636
rows = int(input()) x = [list(map(int, input().split())) for i in range(rows)] print(x)
0
0
0
0
0
0
0
0
0
86c69658b971442f01c858593a8db80f8833c0af
447
py
Python
geometry.py
Gowpenful/watson_compute
7e15bd7b482bf342c66819ea09ae9832488e5e0e
[ "MIT" ]
1
2020-06-03T11:47:11.000Z
2020-06-03T11:47:11.000Z
geometry.py
Gowpenful/watson_compute
7e15bd7b482bf342c66819ea09ae9832488e5e0e
[ "MIT" ]
null
null
null
geometry.py
Gowpenful/watson_compute
7e15bd7b482bf342c66819ea09ae9832488e5e0e
[ "MIT" ]
null
null
null
from termcolor import cprint from pyfiglet import figlet_format cprint(figlet_format('Geometry', font='small'), 'blue', attrs=['bold', 'blink']) cprint('==============================================', 'white', attrs=['blink']) cprint('Scientific Calculator v.0.0.0', 'blue', attrs=['bold']) cprint('=============...
40.636364
83
0.550336
import sys from termcolor import cprint from colorama import init from pyfiglet import figlet_format import pyperclip cprint(figlet_format('Geometry', font='small'), 'blue', attrs=['bold', 'blink']) cprint('==============================================', 'white', attrs=['blink']) cprint('Scientific Calculator...
0
0
0
0
0
0
0
-12
69
6acf6bdee9b00eea74621d61b458ce3e04edc207
1,144
py
Python
gwd/prepare_pseudo.py
kazakh-shai/kaggle-global-wheat-detection
b26295ea257f73089f1a067b70b4a7ee638f6b83
[ "Apache-2.0" ]
136
2020-08-24T08:18:16.000Z
2022-03-31T13:45:12.000Z
gwd/prepare_pseudo.py
kazakh-shai/kaggle-global-wheat-detection
b26295ea257f73089f1a067b70b4a7ee638f6b83
[ "Apache-2.0" ]
5
2020-10-07T08:44:36.000Z
2021-12-17T06:00:57.000Z
gwd/prepare_pseudo.py
kazakh-shai/kaggle-global-wheat-detection
b26295ea257f73089f1a067b70b4a7ee638f6b83
[ "Apache-2.0" ]
28
2020-08-24T11:07:07.000Z
2022-01-01T13:07:54.000Z
if __name__ == "__main__": main()
34.666667
104
0.751748
import argparse import mmcv from mmcv import Config from gwd.datasets.wheat_detection import WheatDataset from mmdet.datasets import build_dataset def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--config-path", default="configs/detectors/detectors_r50_ga_mstrain_stage2.py") par...
0
0
0
0
0
907
0
37
158
07b77c062612800ab8f0a24e3df66fafc2fc9d2d
3,409
py
Python
example/domain/domain/actions/index.py
flmnt/pantam
da47d977e69ec410d0642b5ade1f2323c1b6b350
[ "MIT" ]
2
2020-10-04T10:29:43.000Z
2021-03-30T13:45:09.000Z
example/domain/domain/actions/index.py
flmnt/pantam
da47d977e69ec410d0642b5ade1f2323c1b6b350
[ "MIT" ]
null
null
null
example/domain/domain/actions/index.py
flmnt/pantam
da47d977e69ec410d0642b5ade1f2323c1b6b350
[ "MIT" ]
null
null
null
# pylint: disable=unused-argument, pointless-string-statement
32.160377
88
0.567028
# pylint: disable=unused-argument, pointless-string-statement import sqlite3 from pantam import JSONResponse, PlainTextResponse class Index: def __init__(self): database = sqlite3.connect("db") cursor = database.cursor() cursor.execute( """CREATE TABLE IF NOT EXISTS users ...
0
0
1,388
1,868
0
0
0
22
68
65fb57596a4c98918799e8eeefaf69ad9f5ae00a
1,204
py
Python
UploadOnYoutube.py
thisneelesh/AutomatedCompilationChannel
8921d4d3eaa15a7fd993e4879ea439d3487b0bc4
[ "MIT" ]
4
2021-08-18T13:47:36.000Z
2021-12-25T14:32:14.000Z
UploadOnYoutube.py
neeleshpandey/AutomatedCompilationChannel
8921d4d3eaa15a7fd993e4879ea439d3487b0bc4
[ "MIT" ]
null
null
null
UploadOnYoutube.py
neeleshpandey/AutomatedCompilationChannel
8921d4d3eaa15a7fd993e4879ea439d3487b0bc4
[ "MIT" ]
1
2021-08-18T13:47:38.000Z
2021-08-18T13:47:38.000Z
CLIENT_SECRET_FILE = 'client_secrets.json' #API File Add Here(client Secret File) API_NAME = 'youtube' API_VERSION = 'v3' SCOPES = ['https://www.googleapis.com/auth/youtube.upload'] if __name__ == "__main__": uploadOnYoutube()
34.4
95
0.651993
from Google import Create_Service from googleapiclient.http import MediaFileUpload CLIENT_SECRET_FILE = 'client_secrets.json' #API File Add Here(client Secret File) API_NAME = 'youtube' API_VERSION = 'v3' SCOPES = ['https://www.googleapis.com/auth/youtube.upload'] def uploadOnYoutube(): #Video Uploading Function ...
0
0
0
0
0
865
0
39
67
ce9e6e2e7f71cf335212a4e546d248803483e29b
6,395
py
Python
tests/test_service.py
kevenli/silkyy
105069e26a1ac04f170e55d732e030e68a4fdb86
[ "Apache-2.0" ]
null
null
null
tests/test_service.py
kevenli/silkyy
105069e26a1ac04f170e55d732e030e68a4fdb86
[ "Apache-2.0" ]
null
null
null
tests/test_service.py
kevenli/silkyy
105069e26a1ac04f170e55d732e030e68a4fdb86
[ "Apache-2.0" ]
1
2021-05-07T01:28:49.000Z
2021-05-07T01:28:49.000Z
import logging logger = logging.getLogger(__name__)
47.022059
113
0.608913
from silkyy.service import * from silkyy.config import Config from tornado.testing import AsyncHTTPTestCase from silkyy.idworker import IdWorker import os.path import urllib import logging from six.moves.urllib.parse import urlencode logger = logging.getLogger(__name__) class ServiceTestBase(AsyncHTTPTestC...
0
239
0
5,820
0
0
0
65
211
622abd9557fa7540a48652a158a8b7620ef3045a
2,262
py
Python
model.py
Kapil706/Guten
3068b97f51a4a891d714ce64585dc381c4800684
[ "MIT" ]
2
2019-06-03T06:42:38.000Z
2019-07-31T16:47:56.000Z
model.py
Kapil706/Guten
3068b97f51a4a891d714ce64585dc381c4800684
[ "MIT" ]
null
null
null
model.py
Kapil706/Guten
3068b97f51a4a891d714ce64585dc381c4800684
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.linear_model import LogisticRegression from sklearn.feature_extraction import DictVectorizer as DV import csv # Training data # Data preparation with pandas df1= pd.read_csv('train.csv') df2= pd.read_csv('log_feature.csv') df3=pd.read_csv('resource_type.csv') df4=pd.read_csv('fault_ty...
23.5625
90
0.748453
import pandas as pd import sklearn from sklearn.linear_model import LogisticRegression from sklearn.preprocessing import OneHotEncoder from sklearn.preprocessing import scale import numpy as np from sklearn.feature_extraction import DictVectorizer as DV from sklearn.svm import SVC, LinearSVC import csv # Training data ...
0
0
0
0
0
0
0
51
110
a00230fbec9ca0a9dad78d9f66a82322b062274c
1,515
py
Python
blog/urls.py
ilblackdragon/django-blogs
66ce3e4590797f6c12eb1a84ea6e235bcba29a6b
[ "MIT" ]
19
2015-01-08T10:57:30.000Z
2021-04-07T13:31:22.000Z
blog/urls.py
ilblackdragon/django-blogs
66ce3e4590797f6c12eb1a84ea6e235bcba29a6b
[ "MIT" ]
1
2015-08-01T08:02:05.000Z
2015-08-03T08:37:26.000Z
blog/urls.py
ilblackdragon/django-blogs
66ce3e4590797f6c12eb1a84ea6e235bcba29a6b
[ "MIT" ]
11
2015-03-06T13:05:52.000Z
2021-04-07T13:33:44.000Z
# encoding: utf-8 try: from django.conf.urls import patterns, url except ImportError: from django.conf.urls.defaults import patterns, url # Django < 1.6 from blog import settings urlpatterns = patterns('blog.views', url(r'^$', 'post_list', name='blog_post_list'), url(r'^my_posts/$', 'my_post...
40.945946
99
0.59934
# encoding: utf-8 try: from django.conf.urls import patterns, url except ImportError: from django.conf.urls.defaults import patterns, url # Django < 1.6 from blog.models import Post, Blog from blog import settings urlpatterns = patterns('blog.views', url(r'^$', 'post_list', name='blog_post_lis...
0
0
0
0
0
0
0
13
25
92e146432a4cdd187b38aa523f01ba6dec14733e
2,141
py
Python
Game/Pieces/Major/Rook.py
ritwikd/interom
0b626351fd742f2a99d0a6d11ba8c1a214aab576
[ "MIT" ]
null
null
null
Game/Pieces/Major/Rook.py
ritwikd/interom
0b626351fd742f2a99d0a6d11ba8c1a214aab576
[ "MIT" ]
1
2021-03-06T22:08:32.000Z
2021-03-06T22:09:07.000Z
Game/Pieces/Major/Rook.py
ritwikd/interom
0b626351fd742f2a99d0a6d11ba8c1a214aab576
[ "MIT" ]
1
2021-03-03T22:48:07.000Z
2021-03-03T22:48:07.000Z
from Game import Position P_gen = Position.Position
33.453125
63
0.498832
from Game import Piece, Position P_gen = Position.Position class Rook(Piece.Piece): def __init__(self, board, P_s=(0,0), color=True): Piece.Piece.__init__(self, board, P_s, 'R', color) def valid_move(self, P_n): # Compute deltas and displacement for new move d_x = abs(P_n.x - self.P_c...
0
0
0
2,054
0
0
0
7
23
7c58d45604fb37f69a3ee612ec766061ac0618d5
232
py
Python
mmdet/utils/deployment/operations_domain.py
morkovka1337/mmdetection
5187d94b6c96084b17817249622d6e4520213ae6
[ "Apache-2.0" ]
58
2020-09-21T08:17:26.000Z
2022-03-31T19:38:14.000Z
mmdet/utils/deployment/operations_domain.py
morkovka1337/mmdetection
5187d94b6c96084b17817249622d6e4520213ae6
[ "Apache-2.0" ]
170
2020-09-08T12:29:06.000Z
2022-03-31T18:28:09.000Z
mmdet/utils/deployment/operations_domain.py
morkovka1337/mmdetection
5187d94b6c96084b17817249622d6e4520213ae6
[ "Apache-2.0" ]
21
2020-10-06T13:49:41.000Z
2022-03-30T14:52:45.000Z
# Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # DOMAIN_CUSTOM_OPS_NAME = 'org.openvinotoolkit'
29
56
0.758621
# Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # DOMAIN_CUSTOM_OPS_NAME = 'org.openvinotoolkit' def add_domain(name_operator: str) -> str: return DOMAIN_CUSTOM_OPS_NAME + '::' + name_operator
0
0
0
0
0
78
0
0
23
7d3620595949d604806694d0277f93aacc666d03
23,077
py
Python
challenges/Diary_Parser/poller/for-testing/machine.py
pingjuiliao/cb-multios
64ededd0b87030eda7c40c4388a4ad8283712d8e
[ "MIT" ]
473
2016-08-01T12:48:16.000Z
2022-03-09T18:13:14.000Z
challenges/Diary_Parser/poller/for-testing/machine.py
pingjuiliao/cb-multios
64ededd0b87030eda7c40c4388a4ad8283712d8e
[ "MIT" ]
71
2016-08-01T03:33:44.000Z
2022-03-09T18:37:04.000Z
challenges/Diary_Parser/poller/for-testing/machine.py
pingjuiliao/cb-multios
64ededd0b87030eda7c40c4388a4ad8283712d8e
[ "MIT" ]
121
2016-08-01T04:07:53.000Z
2022-03-07T11:08:09.000Z
#!/usr/bin/env python #Author: James Nuttall (james@cromulence.co) #Copyright (c) 2015 Cromulence LLC #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without li...
30.284777
134
0.670798
#!/usr/bin/env python #Author: James Nuttall (james@cromulence.co) #Copyright (c) 2015 Cromulence LLC #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without li...
0
0
0
13,609
0
1,959
0
5
402
a5f1e0bd3015b72f841f33fcf44591242ab56695
524
py
Python
websocket/relay.py
broadcaststorm/maestro-webex-service
d79af5b853916c696a104b23b1a5d7ff9986d317
[ "MIT" ]
null
null
null
websocket/relay.py
broadcaststorm/maestro-webex-service
d79af5b853916c696a104b23b1a5d7ff9986d317
[ "MIT" ]
null
null
null
websocket/relay.py
broadcaststorm/maestro-webex-service
d79af5b853916c696a104b23b1a5d7ff9986d317
[ "MIT" ]
null
null
null
#!/usr/bin/env python3
18.714286
63
0.675573
#!/usr/bin/env python3 import asyncio import websockets import heroku async def produce( message: str, host: str, port: int ): async with websockets.connect(f'ws://{host}:{port}') as ws: await ws.send(message) return_comms = await ws.recv() return return_comms def relay_command_messag...
0
0
198
0
0
206
0
-19
114
0d436da8386f7f82c0f1a2068e6ca5b4cbf9bf6a
210
py
Python
src/settings.py
jmnel/binance-client
f65e383e5f8c6c0c7cbad9c8417da165e002f8e3
[ "MIT" ]
null
null
null
src/settings.py
jmnel/binance-client
f65e383e5f8c6c0c7cbad9c8417da165e002f8e3
[ "MIT" ]
null
null
null
src/settings.py
jmnel/binance-client
f65e383e5f8c6c0c7cbad9c8417da165e002f8e3
[ "MIT" ]
null
null
null
from pathlib import Path ENDPOINT_BASE = 'https://api.binance.com/api/v3/' DATA_DIRECTORY = Path(__file__).resolve().parents[1] / 'data' DATABASE_NAME = 'binance.sqlite3' WEIGHT_DECAY = 15.0 NUM_WORKERS = 16
23.333333
61
0.747619
from pathlib import Path ENDPOINT_BASE = 'https://api.binance.com/api/v3/' DATA_DIRECTORY = Path(__file__).resolve().parents[1] / 'data' DATABASE_NAME = 'binance.sqlite3' WEIGHT_DECAY = 15.0 NUM_WORKERS = 16
0
0
0
0
0
0
0
0
0
4ccbecdb1b3d302d3578ae88a3948d7a7805798a
7,185
py
Python
templates/calc_manipulation.py
cwgaldino/py_backpack
d9e6e3bd35f1991b6849bcfcf0e4bac324ce34eb
[ "MIT" ]
null
null
null
templates/calc_manipulation.py
cwgaldino/py_backpack
d9e6e3bd35f1991b6849bcfcf0e4bac324ce34eb
[ "MIT" ]
null
null
null
templates/calc_manipulation.py
cwgaldino/py_backpack
d9e6e3bd35f1991b6849bcfcf0e4bac324ce34eb
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """Example code for manipulating libreoffice Calc.""" # standard imports import numpy as np import sys sys.path.append('/home/galdino/github/py-backpack') import backpack.libremanip import importlib importlib.reload(backpack.libremanip) from backpack.libremanip import s...
38.837838
127
0.759081
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """Example code for manipulating libreoffice Calc.""" # standard imports import numpy as np from pathlib import Path import sys sys.path.append('/home/galdino/github/py-backpack') import backpack.libremanip import importlib importlib.reload(backpack.libremanip) from bac...
0
0
0
0
0
0
0
3
22
59bd93cac2032e22bbcd06f08e33460815f69be1
247
py
Python
trunk/Documentacion/Memoria/trozos-codigo/codigo-9-udp-test-udp-service.py
MGautier/security-sensor
7063b1f095cfa02bb56ef2544d0395dbf155310f
[ "MIT" ]
2
2016-08-15T21:25:40.000Z
2020-06-22T12:25:48.000Z
trunk/Documentacion/Memoria/trozos-codigo/codigo-9-udp-test-udp-service.py
MGautier/security-sensor
7063b1f095cfa02bb56ef2544d0395dbf155310f
[ "MIT" ]
4
2020-06-05T17:32:18.000Z
2021-06-10T19:05:56.000Z
trunk/Documentacion/Memoria/trozos-codigo/codigo-9-udp-test-udp-service.py
MGautier/security-sensor
7063b1f095cfa02bb56ef2544d0395dbf155310f
[ "MIT" ]
null
null
null
def test_udp_service(self): """ Comprobacion de que el servicio asociado al protocolo coincide Returns: """ port = Ports.objects.get(Tag="ssh") udp = Udp.objects.get(id=port) self.assertEqual(udp.get_service(), "ssh")
24.7
66
0.659919
def test_udp_service(self): """ Comprobacion de que el servicio asociado al protocolo coincide Returns: """ port = Ports.objects.get(Tag="ssh") udp = Udp.objects.get(id=port) self.assertEqual(udp.get_service(), "ssh")
0
0
0
0
0
0
0
0
0
a09067ad5915db40b4b2a5d1c389d3725f15428d
1,098
py
Python
circle/migrations/0012_auto_20210711_1700.py
Acids-Bases/Marketplace
31f42a077279d891cdb6bb86abb2b8c6e841a889
[ "MIT" ]
null
null
null
circle/migrations/0012_auto_20210711_1700.py
Acids-Bases/Marketplace
31f42a077279d891cdb6bb86abb2b8c6e841a889
[ "MIT" ]
null
null
null
circle/migrations/0012_auto_20210711_1700.py
Acids-Bases/Marketplace
31f42a077279d891cdb6bb86abb2b8c6e841a889
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-11 17:00
26.780488
114
0.550091
# Generated by Django 3.2.5 on 2021-07-11 17:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('circle', '0011_auto_20210710_1919'), ] operations = [ migrations.RenameField( model_name='person', old_name='bought'...
0
0
0
984
0
0
0
19
46
c9940d05cba3b2a1d6d655e706a17f448480cd57
699
py
Python
sandbox/sand/OpenEIT/reconstruction/__init__.py
marionleborgne/EIT_Dashboard
057e05d20325fa6a9b9b0183f63a73c8b7e6cd3b
[ "Apache-2.0" ]
null
null
null
sandbox/sand/OpenEIT/reconstruction/__init__.py
marionleborgne/EIT_Dashboard
057e05d20325fa6a9b9b0183f63a73c8b7e6cd3b
[ "Apache-2.0" ]
null
null
null
sandbox/sand/OpenEIT/reconstruction/__init__.py
marionleborgne/EIT_Dashboard
057e05d20325fa6a9b9b0183f63a73c8b7e6cd3b
[ "Apache-2.0" ]
null
null
null
""" Reconstruction of image data from raw data. """ # TODO: define reconstruction algorithm independent device # configurations, some reconstruction algorithms may choose to ignore # some of that information, this way the number of electrodes and # so on can be set as a free parameter! # TODO: define an abstract inte...
33.285714
69
0.805436
""" Reconstruction of image data from raw data. """ # TODO: define reconstruction algorithm independent device # configurations, some reconstruction algorithms may choose to ignore # some of that information, this way the number of electrodes and # so on can be set as a free parameter! # TODO: define an abstract inte...
0
0
0
0
0
0
0
119
178
a2a591e4477a35cad33554c1344aea7e1b13144c
9,603
py
Python
lib/waveshare_epd/epd5in65f.py
khelif96/eink_clock
b8555e43f9aca8a87bc5c60c5ac0152cbc0142af
[ "MIT" ]
1
2020-07-27T16:29:26.000Z
2020-07-27T16:29:26.000Z
lib/waveshare_epd/epd5in65f.py
AurelienZMN/btcticker
1689387a3e07f79ed089e4b306e4fab6ea84987e
[ "MIT" ]
null
null
null
lib/waveshare_epd/epd5in65f.py
AurelienZMN/btcticker
1689387a3e07f79ed089e4b306e4fab6ea84987e
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- # ***************************************************************************** # * | File : epd5in65f.py # * | Author : Waveshare team # * | Function : Electronic paper driver # * | Info : # *---------------- # * | This version: V1.0 # * | Date ...
39.846473
105
0.525981
#!/usr/bin/python # -*- coding:utf-8 -*- # ***************************************************************************** # * | File : epd5in65f.py # * | Author : Waveshare team # * | Function : Electronic paper driver # * | Info : # *---------------- # * | This version: V1.0 # * | Date ...
0
0
0
7,952
0
0
0
-5
74
cc48e9526db7a96802a18ac728c538f030b710c5
396
py
Python
app/backend/gwells/migrations/0007_create_postgis_ftw_schema_20200501_2146.py
bcgov/gwells
7d69e65e993d37070961e06e6ce9c58a02d79363
[ "Apache-2.0" ]
37
2017-06-30T18:08:51.000Z
2022-02-13T18:04:10.000Z
app/backend/gwells/migrations/0007_create_postgis_ftw_schema_20200501_2146.py
bcgov/gwells
7d69e65e993d37070961e06e6ce9c58a02d79363
[ "Apache-2.0" ]
544
2017-06-21T00:29:20.000Z
2022-02-01T21:37:38.000Z
app/backend/gwells/migrations/0007_create_postgis_ftw_schema_20200501_2146.py
bcgov/gwells
7d69e65e993d37070961e06e6ce9c58a02d79363
[ "Apache-2.0" ]
59
2017-03-10T17:55:02.000Z
2021-11-16T19:20:08.000Z
# Generated by Django 2.2.12 on 2020-05-01 21:46 CREATE_POSTGIS_FTW_SCHEMA = """ CREATE SCHEMA IF NOT EXISTS postgis_ftw """
18
58
0.65404
# Generated by Django 2.2.12 on 2020-05-01 21:46 from django.db import migrations CREATE_POSTGIS_FTW_SCHEMA = """ CREATE SCHEMA IF NOT EXISTS postgis_ftw """ class Migration(migrations.Migration): dependencies = [ ('gwells', '0006_related_name_set_20200302_1752'), ] operations = [ ...
0
0
0
207
0
0
0
11
46
7e65173f5756323516d5991abe21b8cb45fa1957
9,010
py
Python
build/lib/JediML/NeuralNetwork.py
pangjac/JediMLSuite
7dd901b17d01d7459f7ec872dd770b5e3b0df93f
[ "MIT" ]
null
null
null
build/lib/JediML/NeuralNetwork.py
pangjac/JediMLSuite
7dd901b17d01d7459f7ec872dd770b5e3b0df93f
[ "MIT" ]
null
null
null
build/lib/JediML/NeuralNetwork.py
pangjac/JediMLSuite
7dd901b17d01d7459f7ec872dd770b5e3b0df93f
[ "MIT" ]
1
2020-10-25T08:11:47.000Z
2020-10-25T08:11:47.000Z
# encoding=utf8 import random random.seed(1)
32.883212
150
0.625749
# encoding=utf8 import os import random import numpy as np import JediML.Utility as utility import JediML.MLBase as ml random.seed(1) class NeuralNetwork(ml.Learner): def __init__(self): """init""" self.status = 'empty' self.train_X = [] self.train_Y = [] self.W = [] ...
0
0
0
8,826
0
0
0
1
135
c40c8411df69a90491c38c498918a8d164de1c4a
2,979
py
Python
emotion_detection_facial_mask.py
cynthiachiu/facial-emotion-detection-filter
2f2f81caeb269cbea4a5fbf377399deb15f1ae1f
[ "MIT" ]
1
2021-12-18T11:08:59.000Z
2021-12-18T11:08:59.000Z
emotion_detection_facial_mask.py
cynthiachiu/facial-emotion-detection-filter
2f2f81caeb269cbea4a5fbf377399deb15f1ae1f
[ "MIT" ]
null
null
null
emotion_detection_facial_mask.py
cynthiachiu/facial-emotion-detection-filter
2f2f81caeb269cbea4a5fbf377399deb15f1ae1f
[ "MIT" ]
1
2021-12-18T11:09:01.000Z
2021-12-18T11:09:01.000Z
if __name__ == '__main__': main()
31.691489
111
0.684122
import cv2 import numpy as np from fer import FER def apply_mask(face: np.array, mask: np.array) -> np.array: mask_h, mask_w, _ = mask.shape face_h, face_w, _ = face.shape # Resize the mask to fit on face factor = min(face_h / mask_h, face_w / mask_w) new_mask_w = int(factor * mask_w) new_mask_h = int(factor * m...
0
0
0
0
0
2,847
0
-16
112
86cdb88a17c8a80d189d809536aba06639c18fdb
2,871
py
Python
LYOCR/lyocr.py
lstoryzx/LYOCR
adf1239be3bebb4cbccac8034577ef03b89d4d76
[ "MIT" ]
2
2021-03-12T06:50:53.000Z
2021-03-16T05:29:31.000Z
LYOCR/lyocr.py
lstoryzx/LYOCR
adf1239be3bebb4cbccac8034577ef03b89d4d76
[ "MIT" ]
1
2021-03-12T08:09:05.000Z
2021-03-16T05:33:35.000Z
LYOCR/lyocr.py
lstoryzx/LYOCR
adf1239be3bebb4cbccac8034577ef03b89d4d76
[ "MIT" ]
1
2021-09-25T07:20:38.000Z
2021-09-25T07:20:38.000Z
# -*- coding:utf8 -*- import json import tkinter as tk from tkinter import ttk from tkinter.constants import BOTH, LEFT, NW, RIGHT, X import apikeysetting as aks import frame_one import frame_two import frame_three import frame_qr import os # aks.initializejson() # if not ('Tables') in os.listdir(): os.mkdir("./Tab...
29.90625
207
0.724486
# -*- coding:utf8 -*- import json import tkinter as tk from tkinter import Toplevel, ttk from tkinter.constants import BOTH, CENTER, E, LEFT, NE, NW, RIGHT, W, X, Y import apikeysetting as aks import frame_one import frame_two import frame_three import frame_qr import os #初始化配置文件 aks.initializejson() #用于存放表格的文件夹 if no...
282
0
0
0
0
171
0
32
23
c50d1d33771945cea99ccc9283c0b89cc97eb766
13,146
py
Python
src/database.py
Tehnix/PyIRCb
cf8382dd394547f7fbd14871e83d5bc503ebf497
[ "BSD-3-Clause" ]
1
2018-09-21T18:46:31.000Z
2018-09-21T18:46:31.000Z
src/database.py
Tehnix/PyIRCb
cf8382dd394547f7fbd14871e83d5bc503ebf497
[ "BSD-3-Clause" ]
null
null
null
src/database.py
Tehnix/PyIRCb
cf8382dd394547f7fbd14871e83d5bc503ebf497
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Database abstraction layer. Simplyfies database handling a bit. An example of common usecase could be as such: # Import the module from databaselayer import database # Create the database myDB = database.Database('SQLite', 'database.sql') # Create a table myDB.execut...
34.413613
78
0.511258
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Database abstraction layer. Simplyfies database handling a bit. An example of common usecase could be as such: # Import the module from databaselayer import database # Create the database myDB = database.Database('SQLite', 'database.sql') # Create a table myDB.execut...
0
0
0
12,105
0
0
0
6
102
2ed7bf0957a4c41020c7fa41452691b516bdf28c
1,592
py
Python
server/walt/server/threads/main/images/spec.py
drakkar-lig/walt-python-packages
b778992e241d54b684f54715d83c4aff98a01db7
[ "BSD-3-Clause" ]
4
2020-01-14T09:12:56.000Z
2022-03-14T14:35:11.000Z
server/walt/server/threads/main/images/spec.py
drakkar-lig/walt-python-packages
b778992e241d54b684f54715d83c4aff98a01db7
[ "BSD-3-Clause" ]
73
2016-04-29T13:17:26.000Z
2022-03-01T15:06:48.000Z
server/walt/server/threads/main/images/spec.py
drakkar-lig/walt-python-packages
b778992e241d54b684f54715d83c4aff98a01db7
[ "BSD-3-Clause" ]
3
2019-03-18T14:27:56.000Z
2021-06-03T12:07:02.000Z
IMAGE_SPEC_PATH = '/etc/walt/image.spec'
39.8
70
0.726759
import os, shutil, shlex from walt.common.tools import read_json from walt.server.threads.main.network.tools import get_server_ip from walt.server.tools import update_template from walt.server.spec import get_server_features, SERVER_SPEC_PATH from walt.common.tools import failsafe_makedirs from plumbum.cmd import chroo...
0
0
0
0
0
1,113
0
168
269
fa104be5c843bc2576ec80c9f697fc2b20fa9679
21,607
py
Python
ephys/mini_analyses/minis_methods.py
pbmanis/ephys
1360adfbb800b1fed7f982c638906aa0d41a017c
[ "MIT" ]
null
null
null
ephys/mini_analyses/minis_methods.py
pbmanis/ephys
1360adfbb800b1fed7f982c638906aa0d41a017c
[ "MIT" ]
null
null
null
ephys/mini_analyses/minis_methods.py
pbmanis/ephys
1360adfbb800b1fed7f982c638906aa0d41a017c
[ "MIT" ]
null
null
null
from __future__ import print_function """ Classes for methods that do analysis of miniature synaptic potentials Current implementations are ClementsBekkers, AndradeJonas and zero=crossing Test run timing: cb: 0.175 s (with cython version of algorithm); misses overlapping events aj: 0.028 s, plus gets overlapping eve...
36.622034
113
0.575184
from __future__ import print_function """ Classes for methods that do analysis of miniature synaptic potentials Current implementations are ClementsBekkers, AndradeJonas and zero=crossing Test run timing: cb: 0.175 s (with cython version of algorithm); misses overlapping events aj: 0.028 s, plus gets overlapping eve...
0
1,527
0
18,894
0
0
0
128
490
de035c48204332a58276136ea0d67307e90b7f05
4,120
py
Python
test/Celestial_Mechanics/Python/J2_exercise.py
andreasemeraro/MPM_Space_Sciences
b9171f8b926f6ab355c4d87b6f715944b29b05ec
[ "MIT" ]
null
null
null
test/Celestial_Mechanics/Python/J2_exercise.py
andreasemeraro/MPM_Space_Sciences
b9171f8b926f6ab355c4d87b6f715944b29b05ec
[ "MIT" ]
null
null
null
test/Celestial_Mechanics/Python/J2_exercise.py
andreasemeraro/MPM_Space_Sciences
b9171f8b926f6ab355c4d87b6f715944b29b05ec
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from Orbit import Orbit ############################################################### # Begin problem ############################################################### # initial conditions a = 7571 incl = 87.9 RA = 180 e = 0.01 w = 180 TA = 0 # parameters mu = 39860...
26.075949
85
0.628883
from scipy.integrate import solve_ivp import numpy as np import matplotlib.pyplot as plt from Orbit import Orbit from Orbit_solver import * ############################################################### # Begin problem ############################################################### def dyn_kep(t, kep, *args): r...
0
0
0
0
0
114
0
21
91
9210d64bcd103b78bf446129935a67187528bed5
6,389
py
Python
model/dataset.py
filippak/rc-answer-generation
a32c1a8eb4036dbeacfcfa7db16fb3958d76bbf1
[ "MIT" ]
null
null
null
model/dataset.py
filippak/rc-answer-generation
a32c1a8eb4036dbeacfcfa7db16fb3958d76bbf1
[ "MIT" ]
null
null
null
model/dataset.py
filippak/rc-answer-generation
a32c1a8eb4036dbeacfcfa7db16fb3958d76bbf1
[ "MIT" ]
null
null
null
# file to load the data, tokenize and update labels accordingly import numpy as np import argparse import random # https://huggingface.co/transformers/v3.2.0/custom_datasets.html # https://huggingface.co/docs/transformers/custom_datasets SPECIAL_TOKEN_LABEL = -100 # max lengths creating C,A -> R data encoding MAX_TOK...
42.311258
146
0.70997
# file to load the data, tokenize and update labels accordingly import pandas as pd import matplotlib.pyplot as plt import numpy as np from transformers import AutoModel, AutoTokenizer, DataCollatorForTokenClassification, AutoModelForTokenClassification, TrainingArguments, Trainer import pickle import argparse import r...
0
0
0
0
0
4,671
0
115
248
75a19e65172b12acda24789bb42354b02c83167f
1,645
py
Python
config_test/config_plane.py
saustinp/3D-CG
8d3e161674273649af1f23b2a0e1d5100971477a
[ "MIT" ]
null
null
null
config_test/config_plane.py
saustinp/3D-CG
8d3e161674273649af1f23b2a0e1d5100971477a
[ "MIT" ]
null
null
null
config_test/config_plane.py
saustinp/3D-CG
8d3e161674273649af1f23b2a0e1d5100971477a
[ "MIT" ]
null
null
null
########## TOP LEVEL SIM SETUP ########## meshfile: 'mesh/' + 'boeing_plane_final' # No file extension! stepfile: 'mesh/boeing_plane_no_landing_gear.STEP' case_select: 'Ex' # umin: None # Fill these in with the max and min values of the potential when computing the external E field solutions # umax: None pord...
35.76087
135
0.680243
########## TOP LEVEL SIM SETUP ########## meshfile: 'mesh/' + 'boeing_plane_final' # No file extension! stepfile: 'mesh/boeing_plane_no_landing_gear.STEP' case_select: 'Ex' # umin: None # Fill these in with the max and min values of the potential when computing the external E field solutions # umax: None pord...
0
0
0
0
0
0
0
0
0
cf4087f01241a931acf9b033df0f16db262c328f
536
py
Python
python/classvsinstancevars/example2.py
imjoseangel/100DaysOfCode
bff90569033e2b02a56e893bd45727125962aeb3
[ "MIT" ]
1
2022-03-30T12:59:44.000Z
2022-03-30T12:59:44.000Z
python/classvsinstancevars/example2.py
imjoseangel/100DaysOfCode
bff90569033e2b02a56e893bd45727125962aeb3
[ "MIT" ]
null
null
null
python/classvsinstancevars/example2.py
imjoseangel/100DaysOfCode
bff90569033e2b02a56e893bd45727125962aeb3
[ "MIT" ]
3
2019-08-13T11:33:36.000Z
2022-03-08T22:00:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (division, absolute_import, print_function, unicode_literals, annotations) if __name__ == '__main__': main()
21.44
66
0.684701
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (division, absolute_import, print_function, unicode_literals, annotations) class CountedObject: num_instances = 0 def __init__(self): self.__class__.num_instances += 1 def main(): print(CountedObject.n...
0
0
0
88
0
191
0
0
46
b37bfe85ef4538bd6dfe26ec029a452099b58f16
5,508
py
Python
controller/modules/NetworkOperations.py
rajath-a-g/ipop-test
8458bf7c88ad0a9386c2c21660ff4cd6f4b97107
[ "MIT" ]
13
2017-05-04T06:54:21.000Z
2020-05-19T09:11:08.000Z
controller/modules/NetworkOperations.py
rajath-a-g/ipop-test
8458bf7c88ad0a9386c2c21660ff4cd6f4b97107
[ "MIT" ]
24
2015-01-29T00:32:38.000Z
2017-03-22T19:20:46.000Z
controller/modules/NetworkOperations.py
rajath-a-g/ipop-test
8458bf7c88ad0a9386c2c21660ff4cd6f4b97107
[ "MIT" ]
39
2015-03-10T21:08:41.000Z
2016-08-17T00:35:50.000Z
# ipop-project # Copyright 2016, University of Florida # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
47.076923
100
0.605846
# ipop-project # Copyright 2016, University of Florida # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
0
0
0
4,223
0
0
0
25
91
a5b4514a8643b5973e30c4007635811bc47b9c94
688
py
Python
crowdsourcing/permissions/project.py
ramcn/demo2
e5115d2354c2890ba004abedfe0d60c1bf602d5d
[ "MIT" ]
null
null
null
crowdsourcing/permissions/project.py
ramcn/demo2
e5115d2354c2890ba004abedfe0d60c1bf602d5d
[ "MIT" ]
null
null
null
crowdsourcing/permissions/project.py
ramcn/demo2
e5115d2354c2890ba004abedfe0d60c1bf602d5d
[ "MIT" ]
null
null
null
__author__ = 'dmorina'
31.272727
62
0.697674
__author__ = 'dmorina' from rest_framework import permissions class IsOwnerOrReadOnly(permissions.BasePermission): def has_object_permission(self, request, view, obj): # Read permissions are allowed to any request, # so we'll always allow GET, HEAD or OPTIONS requests. if request.method i...
0
0
0
578
0
0
0
17
68
5de0211fe4e343302b013e46b94dff10f461f31e
13,739
py
Python
languages/en-gb.py
waidyanatha/deprecated.sambro-eden
62e180703a2f16d5f8fcd532335d8287b76a8175
[ "MIT" ]
1
2016-12-22T09:31:22.000Z
2016-12-22T09:31:22.000Z
languages/en-gb.py
waidyanatha/deprecated.sambro-eden
62e180703a2f16d5f8fcd532335d8287b76a8175
[ "MIT" ]
null
null
null
languages/en-gb.py
waidyanatha/deprecated.sambro-eden
62e180703a2f16d5f8fcd532335d8287b76a8175
[ "MIT" ]
null
null
null
# coding: utf8 { 'Ability to customize the list of details tracked at a Shelter': 'Ability to customise the list of details tracked at a Shelter', 'Ability to customize the list of human resource tracked at a Shelter': 'Ability to customise the list of human resource tracked at a Shelter', 'Ability to customize the lis...
70.096939
381
0.788704
# coding: utf8 { 'Ability to customize the list of details tracked at a Shelter': 'Ability to customise the list of details tracked at a Shelter', 'Ability to customize the list of human resource tracked at a Shelter': 'Ability to customise the list of human resource tracked at a Shelter', 'Ability to customize the lis...
0
0
0
0
0
0
0
0
0
c5e44e01a9a2fd25e050c605942c681b3bdaf9db
4,487
py
Python
news.py
davidaik/udacity-logs-analysis
ece78c3548dffc2cdbc61b78a6890c53c320aad1
[ "Unlicense" ]
null
null
null
news.py
davidaik/udacity-logs-analysis
ece78c3548dffc2cdbc61b78a6890c53c320aad1
[ "Unlicense" ]
null
null
null
news.py
davidaik/udacity-logs-analysis
ece78c3548dffc2cdbc61b78a6890c53c320aad1
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import argparse import calendar DBNAME = "news" # Parse command line arguments parser = argparse.ArgumentParser( description='Get information from news database' ) parser.add_argument( "querytype", choices=[ ...
33.736842
79
0.486962
#!/usr/bin/env python3 import argparse import psycopg2 import calendar DBNAME = "news" def get_top_articles(num_articles): limit = '' if(int(num_articles) > 0): limit = ' limit ' + str(num_articles) db = psycopg2.connect(database=DBNAME) c = db.cursor() c.execute('''select articles.title,...
0
0
0
0
0
2,877
0
-6
91
7f49a82555fe28c75a4352d3232a8e0d4d25231a
7,167
py
Python
tensorflow/examples/saved_model/integration_tests/export_text_rnn_model.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/examples/saved_model/integration_tests/export_text_rnn_model.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/examples/saved_model/integration_tests/export_text_rnn_model.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
36.943299
81
0.680061
# Copyright 2019 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...
0
3,304
0
2,060
0
652
0
12
74
40f47c341c2777f0b294bc88792a18484109cc1b
1,908
py
Python
ultimate_data_challenge/ultimate_model.py
taswani/ultimate_data_challenge
0ef40251a954ba42155a10b109ecb0df33ff894f
[ "MIT" ]
null
null
null
ultimate_data_challenge/ultimate_model.py
taswani/ultimate_data_challenge
0ef40251a954ba42155a10b109ecb0df33ff894f
[ "MIT" ]
null
null
null
ultimate_data_challenge/ultimate_model.py
taswani/ultimate_data_challenge
0ef40251a954ba42155a10b109ecb0df33ff894f
[ "MIT" ]
null
null
null
import numpy as np from ultimate_data_wrangling import data_cleaning import xgboost as xgb from joblib import dump from sklearn.preprocessing import MinMaxScaler from sklearn.feature_selection import RFE from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score # Random number see...
31.278689
104
0.759434
import pandas as pd import numpy as np from ultimate_data_wrangling import data_cleaning import xgboost as xgb from joblib import dump from sklearn.preprocessing import MinMaxScaler from sklearn.feature_selection import RFE from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score ...
0
0
0
0
0
0
0
-2
22
1b24f51194aa3020c79a7bda9afe8e87e30581d4
2,832
py
Python
radionets/simulations/simulate.py
Kevin2/radionets
44e10a85a096f5cea8e9d83f96db65bdd4df9517
[ "MIT" ]
9
2021-06-17T10:12:28.000Z
2022-03-23T23:04:19.000Z
radionets/simulations/simulate.py
radionets-project/radionets
9b87ddbf704e78db55944e70071a7002f6213399
[ "MIT" ]
24
2021-02-12T13:57:11.000Z
2022-03-03T08:00:31.000Z
radionets/simulations/simulate.py
Kevin2/radionets
44e10a85a096f5cea8e9d83f96db65bdd4df9517
[ "MIT" ]
3
2020-01-08T09:01:09.000Z
2020-10-19T18:53:13.000Z
from radionets.simulations.mnist import mnist_fft from radionets.simulations.gaussians import simulate_gaussian_sources from radionets.simulations.sampling import sample_frequencies from radionets.simulations.point_sources import create_point_source_img import click from pathlib import Path def create_fft_images(sim_...
34.120482
85
0.580508
from radionets.simulations.mnist import mnist_fft from radionets.simulations.gaussians import simulate_gaussian_sources from radionets.simulations.sampling import sample_frequencies from radionets.simulations.point_sources import create_point_source_img import click from pathlib import Path def create_fft_images(sim_...
0
0
0
0
0
0
0
0
0
bd0bc384f4f68396a1708bb6365ab433e58aa09c
150
py
Python
tests/fixtures/packages/loader/load2/jsub_ext3/backend/dirac.py
xianghuzhao/jsub
fda16e9a0983410d33e454d9f1c4a94134e49d41
[ "MIT" ]
2
2017-05-26T07:17:34.000Z
2019-04-08T05:53:35.000Z
tests/fixtures/packages/loader/load2/jsub_ext3/backend/dirac.py
xianghuzhao/jsub
fda16e9a0983410d33e454d9f1c4a94134e49d41
[ "MIT" ]
null
null
null
tests/fixtures/packages/loader/load2/jsub_ext3/backend/dirac.py
xianghuzhao/jsub
fda16e9a0983410d33e454d9f1c4a94134e49d41
[ "MIT" ]
1
2019-04-08T06:52:46.000Z
2019-04-08T06:52:46.000Z
i_am_a_variable = 9
16.666667
58
0.68
class Dirac: def __init__(self): self.desc = 'load2: jsub_ext3.backend.dirac.Dirac' def i_am_a_function(): pass i_am_a_variable = 9
0
0
0
74
0
10
0
0
45
d00ae707c1d540575980b384b2aa07c657962286
417
py
Python
wapy-lib/pythons/fixes/machine.py
pmp-p/wapy-pack
dff596e126272ad9684f92a9bc5318b7e53b350f
[ "MIT" ]
null
null
null
wapy-lib/pythons/fixes/machine.py
pmp-p/wapy-pack
dff596e126272ad9684f92a9bc5318b7e53b350f
[ "MIT" ]
null
null
null
wapy-lib/pythons/fixes/machine.py
pmp-p/wapy-pack
dff596e126272ad9684f92a9bc5318b7e53b350f
[ "MIT" ]
null
null
null
# # Several devices for PC are being considered or implemented. # ========================================================== # // port # https://forum.micropython.org/viewtopic.php?f=2&t=3053 # I2C, https://github.com/pmp-p/I2C-Tiny-USB # arduino + TinyPacks # aruduino sim https://github.com/netpipe/IrrlichtDemos/...
26.0625
83
0.623501
# # Several devices for PC are being considered or implemented. # ========================================================== # // port # https://forum.micropython.org/viewtopic.php?f=2&t=3053 # I2C, https://github.com/pmp-p/I2C-Tiny-USB # arduino + TinyPacks # aruduino sim https://github.com/netpipe/IrrlichtDemos/...
0
0
0
0
0
0
0
0
0
aa9aee350b7fad6dcb5ff3f9a15a74633c424fdf
2,604
py
Python
planesnet/model.py
k3170makan/PyMLProjects
0676bb89119d509c9c44d7af8820aa8d620d0e4a
[ "MIT" ]
156
2017-07-26T17:33:24.000Z
2021-11-17T16:52:20.000Z
planesnet/model.py
k3170makan/PyMLProjects
0676bb89119d509c9c44d7af8820aa8d620d0e4a
[ "MIT" ]
1
2017-09-01T01:34:35.000Z
2017-09-01T01:34:35.000Z
planesnet/model.py
k3170makan/PyMLProjects
0676bb89119d509c9c44d7af8820aa8d620d0e4a
[ "MIT" ]
29
2017-07-30T13:39:45.000Z
2021-06-01T06:17:51.000Z
#!/usr/bin/python PATIENCE = 10 LOG_DIR_ROOT = "." N_LAYERS = 4 MIN_NEURONS = 20 MAX_NEURONS = 120 KERNEL = (3,3) EPOCHS = 150 BATCH_SIZE = 200
26.845361
111
0.670891
#!/usr/bin/python from keras.layers import Activation,Dropout,Flatten,Dense,Conv2D,MaxPooling2D from keras.callbacks import EarlyStopping, TensorBoard, ModelCheckpoint from keras.models import Sequential from datetime import datetime import numpy as np PATIENCE = 10 LOG_DIR_ROOT = "." N_LAYERS = 4 MIN_NEURONS = 20 MAX...
0
0
0
2,200
0
0
0
125
133
c22de961e04a7081ca2ef474a705107ec9a59ed5
307
py
Python
apps/book/signals.py
Yensan/Schurz
d0d11e437a07574d75943b26173baf3251df15e8
[ "BSD-3-Clause" ]
4
2019-08-06T13:42:59.000Z
2019-08-11T15:20:43.000Z
apps/book/signals.py
Yensan/Schurz
d0d11e437a07574d75943b26173baf3251df15e8
[ "BSD-3-Clause" ]
null
null
null
apps/book/signals.py
Yensan/Schurz
d0d11e437a07574d75943b26173baf3251df15e8
[ "BSD-3-Clause" ]
1
2019-08-06T13:58:05.000Z
2019-08-06T13:58:05.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*-
23.615385
51
0.65798
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from django.dispatch import receiver from django.db.models.signals import post_save from .models import Book @receiver(post_save, sender=Book) def add_book(sender, instance, **kwargs): print('############ Add a book ##############') print(instance)
0
126
0
0
0
0
0
43
88
699967cd1860d85b455ec42f9893e50ee88becf1
534
py
Python
students/k3342/laboratory_works/Zangieva Veronika/lab_1/mysite/mysite/apps/tours/migrations/0002_auto_20200610_1712.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
10
2020-03-20T09:06:12.000Z
2021-07-27T13:06:02.000Z
students/k3342/laboratory_works/Zangieva Veronika/lab_1/mysite/mysite/apps/tours/migrations/0002_auto_20200610_1712.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
134
2020-03-23T09:47:48.000Z
2022-03-12T01:05:19.000Z
students/k3342/laboratory_works/Zangieva Veronika/lab_1/mysite/mysite/apps/tours/migrations/0002_auto_20200610_1712.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
71
2020-03-20T12:45:56.000Z
2021-10-31T19:22:25.000Z
# Generated by Django 3.0.4 on 2020-06-10 14:12
22.25
70
0.565543
# Generated by Django 3.0.4 on 2020-06-10 14:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tours', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='tour', name='time_of_tour', ),...
0
0
0
420
0
0
0
19
46
acbcebe20fa042399ed05567f53146654c7b2e6d
343
py
Python
dashboard/admin.py
ALKEMIA-CHARLES/gallery-app
a2fb5a340ee10c371c06fb23f1053573f5a82151
[ "Unlicense" ]
null
null
null
dashboard/admin.py
ALKEMIA-CHARLES/gallery-app
a2fb5a340ee10c371c06fb23f1053573f5a82151
[ "Unlicense" ]
8
2020-06-05T20:27:57.000Z
2021-09-22T18:23:23.000Z
dashboard/admin.py
ALKEMIA-CHARLES/gallery-app
a2fb5a340ee10c371c06fb23f1053573f5a82151
[ "Unlicense" ]
null
null
null
from django.contrib import admin from .models import Images, Location, Category # Register your models here. admin.site.register(Location) admin.site.register(Images,admin_class=ImageAdmin) admin.site.register(Category)
31.181818
50
0.790087
from django.contrib import admin from .models import Images, Location, Category class ImageAdmin(admin.ModelAdmin): filter_horizontal =('categories',) list_display = ('image_url','admin_image') # Register your models here. admin.site.register(Location) admin.site.register(Images,admin_class=ImageAdmin) admin....
0
0
0
100
0
0
0
0
23
295d6d27653f3cebb2a322b74f56d34fd300d16b
2,018
py
Python
diversos/identifica_objetos_gray.py
AndreRamos7/aprendendo_openCV
abcc8d2738feb5afcd25920004cb50009f4f5362
[ "BSD-3-Clause" ]
2
2020-05-11T15:42:44.000Z
2020-05-21T23:14:56.000Z
diversos/identifica_objetos_gray.py
AndreRamos7/aprendendo_openCV
abcc8d2738feb5afcd25920004cb50009f4f5362
[ "BSD-3-Clause" ]
1
2020-05-10T23:20:22.000Z
2020-05-10T23:20:22.000Z
diversos/identifica_objetos_gray.py
AndreRamos7/aprendendo_openCV
abcc8d2738feb5afcd25920004cb50009f4f5362
[ "BSD-3-Clause" ]
null
null
null
''' identifica_objetos_ em escala de cinza identifica oobetos brancos em fundo preto e desenha um crculo ao redor ''' import cv2 as cv video_cap = cv.VideoCapture(0) video_cap.set(3, 360) video_cap.set(4, 640) video_fps = int(video_cap.get(cv.CAP_PROP_FPS)) cv.namedWindow("Reguladores") cv.resizeWindow("Reguladores",...
32.548387
105
0.683845
''' identifica_objetos_ em escala de cinza identifica oobetos brancos em fundo preto e desenha um círculo ao redor ''' import cv2 as cv import numpy as np video_cap = cv.VideoCapture(0) video_cap.set(3, 360) video_cap.set(4, 640) video_fps = int(video_cap.get(cv.CAP_PROP_FPS)) def nothing(x): pass cv.namedWindow...
2
0
0
0
0
3
0
-3
45
48168fd8f68fb4421548aea00f993d2fc7e61b68
12,244
py
Python
home/website/migrations/0002_auto_20160903_1043.py
HackSoftware/hackconf.bg
ab3cc9fcdccf8991098553e0374103e3a241ce50
[ "MIT" ]
12
2017-03-29T11:55:20.000Z
2022-03-29T20:03:41.000Z
home/website/migrations/0002_auto_20160903_1043.py
HackSoftware/hackconf-wagtail
ab3cc9fcdccf8991098553e0374103e3a241ce50
[ "MIT" ]
8
2020-06-05T18:16:24.000Z
2021-09-07T23:53:11.000Z
home/website/migrations/0002_auto_20160903_1043.py
HackSoftware/hackconf.bg
ab3cc9fcdccf8991098553e0374103e3a241ce50
[ "MIT" ]
2
2018-03-31T15:06:55.000Z
2019-06-25T16:22:08.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-09-03 10:43 from __future__ import unicode_literals
34.784091
151
0.552597
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-09-03 10:43 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import modelcluster.fields import wagtail.wagtailcore.fields class Migration(migrations.Migration): dependencies = [ (...
0
0
0
11,972
0
0
0
47
112
d4259df45c9f48b9b8b41085da1cb8cd82dd0f1e
7,547
py
Python
salt/cli/cp.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:21.000Z
2020-01-02T09:03:21.000Z
salt/cli/cp.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
null
null
null
salt/cli/cp.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:24.000Z
2020-01-02T09:03:24.000Z
# -*- coding: utf-8 -*- ''' The cp module is used to execute the logic used by the salt-cp command line application, salt-cp is NOT intended to broadcast large files, it is intended to handle text files. Salt-cp can be used to distribute configuration files ''' # Import python libs from __future__ import print_functio...
33.100877
81
0.525507
# -*- coding: utf-8 -*- ''' The cp module is used to execute the logic used by the salt-cp command line application, salt-cp is NOT intended to broadcast large files, it is intended to handle text files. Salt-cp can be used to distribute configuration files ''' # Import python libs from __future__ import print_functio...
0
0
0
6,716
0
0
0
-33
222
616c80ee820cf2c9623454969d9ea1fdb3b3f7d4
8,608
py
Python
load_model_v2.py
yee715/yee_quickdraw
d3d3eb9f89832f8262e8f15eb85f856a6abcc4e2
[ "MIT" ]
null
null
null
load_model_v2.py
yee715/yee_quickdraw
d3d3eb9f89832f8262e8f15eb85f856a6abcc4e2
[ "MIT" ]
null
null
null
load_model_v2.py
yee715/yee_quickdraw
d3d3eb9f89832f8262e8f15eb85f856a6abcc4e2
[ "MIT" ]
null
null
null
from keras import models # load model model = models.load_model('model_20_include_weight.h5') # load model # load class_name class_names = [] with open('new_class_name.txt') as f: class_names = f.read().splitlines() # print(class_names) # load class_name # ########## # line_diameter tk if __na...
94.593407
6,122
0.575395
from keras import models import cairocffi as cairo import numpy as np import matplotlib.pyplot as plt # load model model = models.load_model('model_20_include_weight.h5') # load model # load class_name class_names = [] with open('new_class_name.txt') as f: class_names = f.read().splitlines() # print(cl...
216
0
0
0
0
1,568
0
11
117
e5072a24f31a75dabf3597f4ce3d9ec1d55e945b
778
py
Python
grocercheck/map/migrations/0014_ad_placement.py
andy0liang/GrocerCheck
1d056fd3fb2fa9bd098722fc715109c5f02df1fc
[ "MIT" ]
null
null
null
grocercheck/map/migrations/0014_ad_placement.py
andy0liang/GrocerCheck
1d056fd3fb2fa9bd098722fc715109c5f02df1fc
[ "MIT" ]
null
null
null
grocercheck/map/migrations/0014_ad_placement.py
andy0liang/GrocerCheck
1d056fd3fb2fa9bd098722fc715109c5f02df1fc
[ "MIT" ]
null
null
null
# Generated by Django 2.2.12 on 2020-06-03 21:06
31.12
114
0.577121
# Generated by Django 2.2.12 on 2020-06-03 21:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('map', '0013_auto_20200603_1343'), ] operations = [ migrations.CreateModel( name='ad_placement', fields=[ ...
0
0
0
663
0
0
0
19
46
e2ee022556e49e85d12c00fcc4fae3b69a14c474
5,940
py
Python
basics/references.py
K9173A/PythonPlayground
d178cbe839eee3d2182881824af56f6812f248a0
[ "MIT" ]
null
null
null
basics/references.py
K9173A/PythonPlayground
d178cbe839eee3d2182881824af56f6812f248a0
[ "MIT" ]
3
2021-03-20T10:33:57.000Z
2021-04-17T20:45:21.000Z
basics/references.py
K9173A/PythonPlayground
d178cbe839eee3d2182881824af56f6812f248a0
[ "MIT" ]
null
null
null
import sys import weakref # . # Python. `1` , `102332`. # `3`, `sys.getrefcount` , # . `3`, , # , . `numpy` `matplotlib`, # - . print(sys.getrefcount(1)) # 180 print(sys.getrefcount(2)) # 127 print(sys.getrefcount(3)) # 40 print(sys.getrefcount(4)) # 75 prin...
36.441718
113
0.694444
import gc import sys import weakref # Выводит количество ссылок для объекта. Количество ссылок будет зависеть и от использования # в стандартной библиотеке Python. Именно поэтому у `1` больше ссылок, чем у `102332`. # Минимальное значение равно `3`, потому что сам `sys.getrefcount` создаёт временные ссылки, # когда в...
3,310
0
0
423
0
1,053
0
-12
135
cd63e333aab70c6dbfe2ab0b07648fb89e08bac7
51,601
py
Python
dsacalib/routines.py
dsa110/dsa110-calib
be83df4967c3b96d58c6277775e098ca0a585c43
[ "BSD-2-Clause" ]
1
2020-02-19T14:45:30.000Z
2020-02-19T14:45:30.000Z
dsacalib/routines.py
dsa110/dsa110-calib
be83df4967c3b96d58c6277775e098ca0a585c43
[ "BSD-2-Clause" ]
2
2020-11-18T22:19:00.000Z
2021-12-10T20:49:53.000Z
dsacalib/routines.py
dsa110/dsa110-calib
be83df4967c3b96d58c6277775e098ca0a585c43
[ "BSD-2-Clause" ]
1
2020-02-11T20:19:28.000Z
2020-02-11T20:19:28.000Z
"""Calibration routine for DSA-110 calibration with CASA. Author: Dana Simard, dana.simard@astro.caltech.edu, 2020/06 """ import shutil import os import glob import numpy as np from scipy.optimize import curve_fit import matplotlib.pyplot as plt from astropy.coordinates import Angle import pandas from casacore.tables ...
36.492928
105
0.571268
"""Calibration routine for DSA-110 calibration with CASA. Author: Dana Simard, dana.simard@astro.caltech.edu, 2020/06 """ import shutil import os import glob import numpy as np from scipy.optimize import curve_fit import matplotlib.pyplot as plt from astropy.coordinates import Angle import pandas import scipy # pylint...
0
0
0
0
0
5
0
-9
77
e00aede92ae862348daf62c9daf66bd251f77fb0
18,693
py
Python
trackpy/tests/test_static.py
stevenvanuytsel/trackpy
f7d53cb3527debe2f4fe00b841e3bd0a370eaf54
[ "BSD-3-Clause" ]
1
2020-08-18T16:49:36.000Z
2020-08-18T16:49:36.000Z
trackpy/tests/test_static.py
stevenvanuytsel/trackpy
f7d53cb3527debe2f4fe00b841e3bd0a370eaf54
[ "BSD-3-Clause" ]
null
null
null
trackpy/tests/test_static.py
stevenvanuytsel/trackpy
f7d53cb3527debe2f4fe00b841e3bd0a370eaf54
[ "BSD-3-Clause" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np def _points_ring3D(r_edges, dr, n): """Returns x, y, z array of points comprising shells extending from r to r_dr. n determines the number of points in the ring. Rings are generated ...
38.071283
80
0.54935
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from trackpy.static import * import pandas as pd import numpy as np from numpy.testing import assert_equal, assert_almost_equal, assert_array_less from trackpy.static import cluster from trackpy.test...
0
0
0
16,704
0
631
0
90
317
368b5a3f1a56263adde45a04529a6cfdaee93b64
1,249
py
Python
mrbaviirc/codebuild.py
brianvanderburg2/mrbaviirc
6aeee9b229d3f62aace98a51d9014781bbe6cb52
[ "Apache-2.0" ]
null
null
null
mrbaviirc/codebuild.py
brianvanderburg2/mrbaviirc
6aeee9b229d3f62aace98a51d9014781bbe6cb52
[ "Apache-2.0" ]
null
null
null
mrbaviirc/codebuild.py
brianvanderburg2/mrbaviirc
6aeee9b229d3f62aace98a51d9014781bbe6cb52
[ "Apache-2.0" ]
null
null
null
""" Provide a container for building code segments. """ __author__ = "Brian Allen Vanderburg II" __copyright__ = "Copyright 2016" __license__ = "Apache License 2.0"
27.152174
69
0.591673
""" Provide a container for building code segments. """ __author__ = "Brian Allen Vanderburg II" __copyright__ = "Copyright 2016" __license__ = "Apache License 2.0" class CodeBuilder(object): """ A code builder class. """ INDENT = 4 def __init__(self, indent=0): """ Initialize the bu...
0
0
0
1,047
0
0
0
0
23
2d66f6a7222a344c43a994bb665a4c21051d6a8d
3,790
py
Python
src/stochastic_bisection.py
DFNaiff/Credible-Ball-Estimator
66dce7d91737a683fa4e74c09849a42fa32d0c39
[ "MIT" ]
null
null
null
src/stochastic_bisection.py
DFNaiff/Credible-Ball-Estimator
66dce7d91737a683fa4e74c09849a42fa32d0c39
[ "MIT" ]
null
null
null
src/stochastic_bisection.py
DFNaiff/Credible-Ball-Estimator
66dce7d91737a683fa4e74c09849a42fa32d0c39
[ "MIT" ]
null
null
null
import numpy as np """ Stochastic bisection algorithm, as described in "Probabilistic bisection converges almost as quickly as stochastic approximation, Peter I. Frazier, Shane G. Henderson, Rolf Waeber" """ TEST_VARIABLE = "TESTVARIABLE" def stochastic_bisection(measure,gamma=0.9,maxiter=100,ma...
31.848739
99
0.560158
import numpy as np """ Stochastic bisection algorithm, as described in "Probabilistic bisection converges almost as quickly as stochastic approximation, Peter I. Frazier, Shane G. Henderson, Rolf Waeber" """ TEST_VARIABLE = "TESTVARIABLE" def stochastic_bisection(measure,gamma=0.9,maxiter=100,ma...
0
0
0
0
0
2,067
0
0
92
8606703c656b65ce33d7258a1fcccd803c432fc0
2,039
py
Python
setup.py
sadrasabouri/nafas
042c4bcf58549fa1d43136415ea231a0f48a0ae8
[ "MIT" ]
null
null
null
setup.py
sadrasabouri/nafas
042c4bcf58549fa1d43136415ea231a0f48a0ae8
[ "MIT" ]
null
null
null
setup.py
sadrasabouri/nafas
042c4bcf58549fa1d43136415ea231a0f48a0ae8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Setup module.""" try: from setuptools import setup except ImportError: from distutils.core import setup def get_requires(): """Read requirements.txt.""" requirements = open("requirements.txt", "r").read() return list(filter(lambda x: x != "", requirements.split())) def...
31.369231
72
0.613046
# -*- coding: utf-8 -*- """Setup module.""" try: from setuptools import setup except ImportError: from distutils.core import setup def get_requires(): """Read requirements.txt.""" requirements = open("requirements.txt", "r").read() return list(filter(lambda x: x != "", requirements.split())) def...
0
0
0
0
0
0
0
0
0
e0fb562beef8d72edab97619037d423c6252f784
1,123
py
Python
Teste de Performance/tp_v02.py
RolandJunior/adivinha_palavra
938c2ef6c638fe2a43d60a71545f765cb5db25c6
[ "MIT" ]
null
null
null
Teste de Performance/tp_v02.py
RolandJunior/adivinha_palavra
938c2ef6c638fe2a43d60a71545f765cb5db25c6
[ "MIT" ]
7
2020-04-26T21:10:11.000Z
2020-05-07T15:00:35.000Z
Teste de Performance/tp_v02.py
RolandJunior/Adivinha_Palavra
938c2ef6c638fe2a43d60a71545f765cb5db25c6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time with open('dicionario_reduzido.txt') as arquivo: dicionario = arquivo.read().splitlines() tp_result = open('tp_v02.txt', 'w+') p = 0 for palavra in dicionario: num_caracteres = len(palavra) t1 = time.perf_counter() dic_filtrado = [i for i in dicionari...
26.116279
76
0.609973
# -*- coding: utf-8 -*- import random, time from collections import Counter def seleciona_letra(dic): x = len(testadas) return Counter(''.join(dic)).most_common(x+1)[x][0] def testa_letra(letra): testadas.append(letra) if palavra.find(letra) == -1: erradas.append(letra) else:...
0
0
0
0
0
313
0
18
73
9a00dfa3514dd81cb0aa24f2bd4df60730e4f191
6,865
py
Python
runtimemngr/mqttmng.py
conix-center/arena-runtime-native
43a12d17019e3337aa752d810563fd851bf2ea68
[ "BSD-3-Clause" ]
null
null
null
runtimemngr/mqttmng.py
conix-center/arena-runtime-native
43a12d17019e3337aa752d810563fd851bf2ea68
[ "BSD-3-Clause" ]
null
null
null
runtimemngr/mqttmng.py
conix-center/arena-runtime-native
43a12d17019e3337aa752d810563fd851bf2ea68
[ "BSD-3-Clause" ]
null
null
null
DEBUG=False
41.107784
266
0.576548
import paho.mqtt.client as mqtt import threading import json import uuid import time import sys import logging from runtimemngr.runtime import RuntimeView from runtimemngr.msgdefs import Action, Result, ARTSResponse DEBUG=False class MqttManager(mqtt.Client): def __init__(self, settings, rt, modules): ...
0
0
0
6,611
0
0
0
18
223
e389f4fc3ae331581cbf56151ac1632a2093542c
1,159
py
Python
ibidem/advent_of_code/y2020/dec05.py
mortenlj/advent_of_code
738c1f3116f6a817a67183f076e1fe93680ea407
[ "MIT" ]
null
null
null
ibidem/advent_of_code/y2020/dec05.py
mortenlj/advent_of_code
738c1f3116f6a817a67183f076e1fe93680ea407
[ "MIT" ]
null
null
null
ibidem/advent_of_code/y2020/dec05.py
mortenlj/advent_of_code
738c1f3116f6a817a67183f076e1fe93680ea407
[ "MIT" ]
null
null
null
#!/usr/bin/env python if __name__ == "__main__": part1() part2()
25.195652
92
0.603969
#!/usr/bin/env python from ibidem.advent_of_code.util import get_input_name class BoardingPass(): def __init__(self, s): s = s.translate(str.maketrans("FBLR", "0101")) self.row = int(s[:7], 2) self.column = int(s[7:], 2) self.seat_id = self.row * 8 + self.column def __str__(s...
0
0
0
318
0
615
0
32
115
a0db33d0bad0c7645c3ca355a91be4925138678f
966
py
Python
orchid/urls.py
Salud-Mesoamerica-Initiative/etab-app
e1dd8f8190995b8be2c736d73e8a7a5c7c170449
[ "MIT" ]
null
null
null
orchid/urls.py
Salud-Mesoamerica-Initiative/etab-app
e1dd8f8190995b8be2c736d73e8a7a5c7c170449
[ "MIT" ]
null
null
null
orchid/urls.py
Salud-Mesoamerica-Initiative/etab-app
e1dd8f8190995b8be2c736d73e8a7a5c7c170449
[ "MIT" ]
null
null
null
import forms_builder.forms.urls # add this import import dimension.urls from django.conf import settings from django.conf.urls import patterns, include, url from django.conf.urls.static import static from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', # Examples: # url(r'^$'...
31.16129
79
0.6853
import forms_builder.forms.urls # add this import import dimension.urls from django.conf import settings from django.conf.urls import patterns, include, url from django.conf.urls.static import static from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', # Examples: # url(r'^$'...
0
0
0
0
0
0
0
0
0
f2a6a9be9acb618f950d5c979b9dc61c42b79f3f
1,528
py
Python
strava/commands/activity_constrain.py
dparret/strava-cli
2426ea7f3fe4580aea352476b261cec31d3f0b11
[ "MIT" ]
null
null
null
strava/commands/activity_constrain.py
dparret/strava-cli
2426ea7f3fe4580aea352476b261cec31d3f0b11
[ "MIT" ]
null
null
null
strava/commands/activity_constrain.py
dparret/strava-cli
2426ea7f3fe4580aea352476b261cec31d3f0b11
[ "MIT" ]
null
null
null
_ACTIVITY_COLUMNS = ('key', 'value')
54.571429
252
0.717932
import click from strava.utils import input_tuple_to_secs from strava.commands.activity_default import get_activity_from_ids from strava.decorators import output_option, login_required _ACTIVITY_COLUMNS = ('key', 'value') @click.command(name='constrain', help='Constrain the time of the activity on bo...
0
1,280
0
0
0
0
0
97
112
fbc30a0a895a37656b679e9201f9ca46f385a870
5,936
py
Python
onmt/modules/optimized/dropout_add.py
Dan-hbd/NMTGMinor
84e59ac8391ee78852d7c71afc60c3c8b8e3d44d
[ "MIT" ]
1
2021-06-28T06:26:36.000Z
2021-06-28T06:26:36.000Z
onmt/modules/optimized/dropout_add.py
Dan-hbd/NMTGMinor
84e59ac8391ee78852d7c71afc60c3c8b8e3d44d
[ "MIT" ]
null
null
null
onmt/modules/optimized/dropout_add.py
Dan-hbd/NMTGMinor
84e59ac8391ee78852d7c71afc60c3c8b8e3d44d
[ "MIT" ]
null
null
null
import unittest try: import apex.amp as amp from apex.amp import half_function except (ModuleNotFoundError, ImportError) as e: amp = None try: from torch.cuda.amp import custom_fwd, custom_bwd except (ModuleNotFoundError, ImportError) as e: try: import fused_dropout_add_cuda except (ModuleNotFoun...
37.333333
111
0.605795
import torch import unittest import numpy as np from time import time try: import apex.amp as amp from apex.amp import half_function except (ModuleNotFoundError, ImportError) as e: amp = None from .compat import half_function try: from torch.cuda.amp import custom_fwd, custom_bwd except (ModuleNot...
0
1,451
0
3,687
0
0
0
21
244
b4ff2684c3054a9e79ae093b37b40d0c57c14369
987
py
Python
ALDS/ALDS1_9_C_using_heapq.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
1
2020-01-08T16:33:46.000Z
2020-01-08T16:33:46.000Z
ALDS/ALDS1_9_C_using_heapq.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
ALDS/ALDS1_9_C_using_heapq.py
yu8ikmnbgt6y/MyAOJ
474b21a2a0c25e1c1f3d6d66d2a2ea52aecaa39b
[ "Unlicense" ]
null
null
null
import sys sys.stdin = open("ALDS1_9_C_in4.txt", 'r') #tmp = input() # copy the below part and paste to the submission form. # ---------function------------ import sys nodes = [] outputs = [None] * 2000000 _num_outputs = 0 calc_time = True main() # ----------------------------- sys.stdin = sys...
22.953488
59
0.548126
import sys import io sys.stdin = open("ALDS1_9_C_in4.txt", 'r') #tmp = input() # copy the below part and paste to the submission form. # ---------function------------ import sys import heapq nodes = [] outputs = [None] * 2000000 _num_outputs = 0 calc_time = True if calc_time:import time def main(...
0
0
0
0
0
581
0
-31
105
a83e7f2319434aec4d1a3eee2899a561ea8b6a79
2,899
py
Python
models/xmm_sample_models/RandomForest_test.py
LucaZampieri/space-monkeys
7edb56b43be2c8329caa1750ad4f07c933ded106
[ "MIT" ]
null
null
null
models/xmm_sample_models/RandomForest_test.py
LucaZampieri/space-monkeys
7edb56b43be2c8329caa1750ad4f07c933ded106
[ "MIT" ]
null
null
null
models/xmm_sample_models/RandomForest_test.py
LucaZampieri/space-monkeys
7edb56b43be2c8329caa1750ad4f07c933ded106
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pickle from handyTools import stats from sklearn.ensemble import RandomForestClassifier from sklearn.decomposition import PCA # import load_xmm_data as xmm with open('features.pkl', 'rb') as f: feature_names, features, labels = pickle.load(f) # features ...
27.349057
88
0.691273
import numpy as np import matplotlib.pyplot as plt import pickle from handyTools import stats from sklearn.ensemble import RandomForestClassifier from sklearn.decomposition import PCA # import load_xmm_data as xmm with open('features.pkl', 'rb') as f: feature_names, features, labels = pickle.load(f) # features ...
0
0
0
0
0
0
0
0
0
cf91b541c795f3e0df7dd61670f754bc19aac190
2,030
py
Python
mikaponics/dashboard/serializers/dashboard_production_serializer.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
2
2019-04-30T23:51:41.000Z
2019-05-04T00:35:52.000Z
mikaponics/dashboard/serializers/dashboard_production_serializer.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
27
2019-04-30T20:22:28.000Z
2022-02-10T08:10:32.000Z
mikaponics/dashboard/serializers/dashboard_production_serializer.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import logging logger = logging.getLogger(__name__)
34.40678
108
0.712315
# -*- coding: utf-8 -*- import logging import pytz from datetime import datetime, timedelta from dateutil import tz from django.conf import settings from django.contrib.auth.models import Group from django.contrib.auth import authenticate from django.db.models import Q, Prefetch, Sum from django.utils.translation impor...
0
0
0
1,236
0
0
0
361
354
0d061069bacba62f2730f462b0a7b5692edff4b8
148
py
Python
snakemake_workflow_template/#####_etl/__main__.py
regulondbunam/RegulonDB-MCO-Felipe
6e5546907399d5712a8e69f2f8320af8d30b9d7b
[ "MIT" ]
null
null
null
snakemake_workflow_template/#####_etl/__main__.py
regulondbunam/RegulonDB-MCO-Felipe
6e5546907399d5712a8e69f2f8320af8d30b9d7b
[ "MIT" ]
null
null
null
snakemake_workflow_template/#####_etl/__main__.py
regulondbunam/RegulonDB-MCO-Felipe
6e5546907399d5712a8e69f2f8320af8d30b9d7b
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- # import [library] # from [local_library] import [local_library_var] if __name__ == '__main__': pass
18.5
49
0.655405
#!/usr/bin/python # -*- coding: UTF-8 -*- # import [library] # from [local_library] import [local_library_var] if __name__ == '__main__': pass
0
0
0
0
0
0
0
0
0
d670ecedaef72d5bed61781a3a4ab7a1e3d041fc
469
py
Python
052/euler_52.py
kdungs/euler
8ae1618430d0adaf943c6db7ad36f01c5eb47d2a
[ "Unlicense", "MIT" ]
null
null
null
052/euler_52.py
kdungs/euler
8ae1618430d0adaf943c6db7ad36f01c5eb47d2a
[ "Unlicense", "MIT" ]
null
null
null
052/euler_52.py
kdungs/euler
8ae1618430d0adaf943c6db7ad36f01c5eb47d2a
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python i = 0 while True: i += 1 d1 = digits(i) d2 = digits(2 * i) if d1 == d2: d3 = digits(3 * i) if d1 == d3: d4 = digits(4 * i) if d1 == d4: d5 = digits(5 * i) if d1 == d5: d6 = digits(6 * i) ...
21.318182
38
0.336887
#!/usr/bin/env python def digits(x): return {s for s in '{}'.format(x)} i = 0 while True: i += 1 d1 = digits(i) d2 = digits(2 * i) if d1 == d2: d3 = digits(3 * i) if d1 == d3: d4 = digits(4 * i) if d1 == d4: d5 = digits(5 * i) ...
0
0
0
0
0
32
0
0
23
733ba42b99d5a965756bc225290793ba0274cb47
3,317
py
Python
utils.py
bluekidds/traffic_analysis
265f3292c50f94fc11c8555995d94b993c4fb3fb
[ "MIT" ]
null
null
null
utils.py
bluekidds/traffic_analysis
265f3292c50f94fc11c8555995d94b993c4fb3fb
[ "MIT" ]
null
null
null
utils.py
bluekidds/traffic_analysis
265f3292c50f94fc11c8555995d94b993c4fb3fb
[ "MIT" ]
1
2020-10-16T15:21:55.000Z
2020-10-16T15:21:55.000Z
### Data Cleaning
31.590476
148
0.535122
from fbprophet import Prophet def create_model(config): model = Prophet( daily_seasonality=False, weekly_seasonality=False, yearly_seasonality=False, changepoint_prior_scale=0.02, ) model.add_seasonality( name='daily', period=1, fourie...
0
0
0
0
0
3,142
0
8
137
d7d2c18cf57e69a4abcc9b9fac6ce9c76ee66b7a
1,466
py
Python
onnxruntime/test/testdata/nnapi_internal_uint8_support.py
lchang20/onnxruntime
97b8f6f394ae02c73ed775f456fd85639c91ced1
[ "MIT" ]
6,036
2019-05-07T06:03:57.000Z
2022-03-31T17:59:54.000Z
onnxruntime/test/testdata/nnapi_internal_uint8_support.py
lchang20/onnxruntime
97b8f6f394ae02c73ed775f456fd85639c91ced1
[ "MIT" ]
5,730
2019-05-06T23:04:55.000Z
2022-03-31T23:55:56.000Z
onnxruntime/test/testdata/nnapi_internal_uint8_support.py
lchang20/onnxruntime
97b8f6f394ae02c73ed775f456fd85639c91ced1
[ "MIT" ]
1,566
2019-05-07T01:30:07.000Z
2022-03-31T17:06:50.000Z
# This is to test the operators without "Qlinear" support but still support uint8 input # These operators need to be internal to a graph/partition # def GenerateModel(model_name): if __name__ == "__main__": GenerateModel('nnapi_internal_uint8_support.onnx')
35.756098
110
0.650068
import onnx from onnx import helper from onnx import TensorProto # This is to test the operators without "Qlinear" support but still support uint8 input # These operators need to be internal to a graph/partition # def GenerateModel(model_name): def GenerateModel(model_name): nodes = [ helper.make_node("Qu...
0
0
0
0
0
1,113
0
-1
88
ce2aeb9a03dfe879df77de4898b62684327fe370
6,030
py
Python
run_amod.py
Sensenzhl/RCNN-NVDLA
e6b8a7ef2af061676d406d2f51dcd1ab809b5a1d
[ "Vim" ]
5
2019-06-26T07:50:43.000Z
2021-12-17T08:52:39.000Z
run_amod.py
Sensenzhl/RCNN-NVDLA
e6b8a7ef2af061676d406d2f51dcd1ab809b5a1d
[ "Vim" ]
1
2019-11-28T06:57:49.000Z
2019-11-28T06:57:49.000Z
run_amod.py
Sensenzhl/RCNN-NVDLA
e6b8a7ef2af061676d406d2f51dcd1ab809b5a1d
[ "Vim" ]
1
2020-05-27T06:11:17.000Z
2020-05-27T06:11:17.000Z
#!/home/abcd/anaconda2/bin/python2.7 _description=''' This tool is used to generate pre-loadable(SW defined prototxt format <schema/DlaInterface.proto>) from caffe prototxt (<schema/caffe.proto>) ''' import sys import logging import matplotlib matplotlib.use('Agg') from google.protobuf import text_format as proto_text...
33.5
141
0.589552
#!/home/abcd/anaconda2/bin/python2.7 _description=''' This tool is used to generate pre-loadable(SW defined prototxt format <schema/DlaInterface.proto>) from caffe prototxt (<schema/caffe.proto>) ''' import os import inspect import re import sys import argparse import commands import math import logging import copy f...
0
0
0
269
0
4,634
0
-51
378
ee7d1ec37993f8499bcd4260106cdeab645b50eb
157
py
Python
backgroundpy/__init__.py
davidmaamoaix/BackgroundPy
f32c67e81d3440e1f1d4da395b15a86b95e88e49
[ "MIT" ]
null
null
null
backgroundpy/__init__.py
davidmaamoaix/BackgroundPy
f32c67e81d3440e1f1d4da395b15a86b95e88e49
[ "MIT" ]
1
2018-12-18T03:43:53.000Z
2018-12-18T03:48:24.000Z
backgroundpy/__init__.py
davidmaamoaix/BackgroundPy
f32c67e81d3440e1f1d4da395b15a86b95e88e49
[ "MIT" ]
null
null
null
''' A tool for generating a runnable script, which runs a python file and deletes itself after it is ran. ''' __author__ = 'David Ma' __version__ = '1.0.0'
31.4
109
0.713376
''' A tool for generating a runnable script, which runs a python file and deletes itself after it is ran. ''' __author__ = 'David Ma' __version__ = '1.0.0'
0
0
0
0
0
0
0
0
0
9415a3dad40e40153160f2e50642acf5a7a3cfc2
9,486
py
Python
old/sp.py
TheRealDrDre/SyntaxPriming
e7e767d53bcf58791563ac58191bfde205676309
[ "CECILL-B" ]
null
null
null
old/sp.py
TheRealDrDre/SyntaxPriming
e7e767d53bcf58791563ac58191bfde205676309
[ "CECILL-B" ]
null
null
null
old/sp.py
TheRealDrDre/SyntaxPriming
e7e767d53bcf58791563ac58191bfde205676309
[ "CECILL-B" ]
null
null
null
## ---------------------------------------------------------------- ## ## SYNTACTIC PRIMING MODEL MANAGEMENT AND INTERFACE ## ---------------------------------------------------------------- ## ## Usage: ## ## import sp ## s = sp.Simulation(n=25) ## s.simulate() ## s.data ## ------------------------------------...
30.899023
83
0.487139
## ---------------------------------------------------------------- ## ## SYNTACTIC PRIMING MODEL MANAGEMENT AND INTERFACE ## ---------------------------------------------------------------- ## ## Usage: ## ## import sp ## s = sp.Simulation(n=25) ## s.simulate() ## s.data ## ------------------------------------...
0
1,350
0
6,256
0
0
0
-30
182
46f9832a7a636614e0b8c5be0097ebb552ec07a6
4,895
py
Python
sub3/main.py
myccpb08/AI_3rd_GongGam
3bcdf93e9f865991bbf1a3663db20f6570eb1f95
[ "Apache-2.0" ]
null
null
null
sub3/main.py
myccpb08/AI_3rd_GongGam
3bcdf93e9f865991bbf1a3663db20f6570eb1f95
[ "Apache-2.0" ]
null
null
null
sub3/main.py
myccpb08/AI_3rd_GongGam
3bcdf93e9f865991bbf1a3663db20f6570eb1f95
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf DATA_OUT_PATH = './data_out/' # Req. 1-5-1. bleu score # Req. 1-5-2. rouge score # Serving serving . if __name__ == '__main__': tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.INFO) tf.compat.v1.app.run(main) tf.logging.set_verbosity
38.543307
115
0.694586
import os import sys import tensorflow as tf import numpy as np from nltk.translate.bleu_score import sentence_bleu from nltk.translate.bleu_score import SmoothingFunction from rouge import Rouge import model as ml import data from configs import DEFINES DATA_OUT_PATH = './data_out/' # Req. 1-5-1. bleu score 계산 함수...
1,578
0
0
0
0
3,757
0
33
289
c711197260b5b6eeedce38f54affbff2c64eceb8
23,804
py
Python
plot_fargo.py
AaronDavidSchneider/Plot_FARGO
19f8270cff7ad355c74382c7b4f085328b575c8f
[ "MIT" ]
1
2020-05-23T04:47:29.000Z
2020-05-23T04:47:29.000Z
plot_fargo.py
smao-astro/Plot_FARGO
19f8270cff7ad355c74382c7b4f085328b575c8f
[ "MIT" ]
null
null
null
plot_fargo.py
smao-astro/Plot_FARGO
19f8270cff7ad355c74382c7b4f085328b575c8f
[ "MIT" ]
2
2020-05-23T04:45:19.000Z
2022-01-18T17:15:40.000Z
#------------------------------------------------------------------------------------------ # PLOT_FARGO # A PYTHON PLOTTING CLASS TO VISUALIZE THE OUTPUT OF FARGO3D # A. D. SCHNEIDER # 20...
42.280639
260
0.530121
#------------------------------------------------------------------------------------------ # PLOT_FARGO # A PYTHON PLOTTING CLASS TO VISUALIZE THE OUTPUT OF FARGO3D # A. D. SCHNEIDER # 20...
0
0
0
22,663
0
0
0
-4
90
e3b95506cef201860d6723ef372470fecf2549e8
3,149
py
Python
main.py
shizhouxing/Robustness-Verification-for-Transformers
b1758c10826b7e00ebf3f030020548809be558a1
[ "BSD-2-Clause" ]
22
2020-03-09T13:14:54.000Z
2022-03-03T03:38:34.000Z
main.py
shizhouxing/Robustness-Verification-for-Transformers
b1758c10826b7e00ebf3f030020548809be558a1
[ "BSD-2-Clause" ]
null
null
null
main.py
shizhouxing/Robustness-Verification-for-Transformers
b1758c10826b7e00ebf3f030020548809be558a1
[ "BSD-2-Clause" ]
1
2020-03-18T23:39:51.000Z
2020-03-18T23:39:51.000Z
# Copyright (c) 2020, Zhouxing shi <zhouxingshichn@gmail.com> # Licenced under the BSD 2-Clause License. import os if not "CUDA_VISIBLE_DEVICES" in os.environ: os.environ["CUDA_VISIBLE_DEVICES"] = "1" import sys, random from Logger import Logger from Parser import Parser, update_arguments from data_utils import lo...
34.604396
89
0.663703
# Copyright (c) 2020, Zhouxing shi <zhouxingshichn@gmail.com> # Licenced under the BSD 2-Clause License. import os if not "CUDA_VISIBLE_DEVICES" in os.environ: os.environ["CUDA_VISIBLE_DEVICES"] = "1" import torch import numpy as np import sys, random, time, shutil, copy, nltk, json from multiprocessing import Po...
0
0
0
0
0
0
0
31
67
110815b447c502dbfa8665e523ae92541c84d0aa
3,228
py
Python
misc/learnpy/basics/f1.py
mutazag/mdsi
efecc8f650ddf6866154389f98d4ce0a9803db18
[ "MIT" ]
null
null
null
misc/learnpy/basics/f1.py
mutazag/mdsi
efecc8f650ddf6866154389f98d4ce0a9803db18
[ "MIT" ]
null
null
null
misc/learnpy/basics/f1.py
mutazag/mdsi
efecc8f650ddf6866154389f98d4ce0a9803db18
[ "MIT" ]
null
null
null
x = ["p", "y", "t", "h", "o", "n"] print(x[0:5]) import pandas as pd marketing = pd.read_csv("https://goo.gl/6A6Qe2") print(marketing.loc[["a", "b"], ["Views", "Clicks"]]) import numpy as np x = np.array([1, 2, False, True, 3]) print(x) import numpy as np x = np.array([1, 2, False, True, "3"]) print(x) print(t...
14.034783
61
0.541202
x = ["p", "y", "t", "h", "o", "n"] print(x[0:5]) import pandas as pd marketing = pd.read_csv("https://goo.gl/6A6Qe2") print(marketing.loc[["a", "b"], ["Views", "Clicks"]]) import numpy as np x = np.array([1, 2, False, True, 3]) print(x) import numpy as np x = np.array([1, 2, False, True, "3"]) print(x) print(t...
0
0
0
0
0
0
0
0
0