hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
7e7440fb1d1c7e95290bfc94cc2ad2a4debb8384
734
py
Python
main.py
henryfox/encrypted-chat
c69ba786892dd870cb3fddd7da6ea77eadeb4a7e
[ "MIT" ]
null
null
null
main.py
henryfox/encrypted-chat
c69ba786892dd870cb3fddd7da6ea77eadeb4a7e
[ "MIT" ]
null
null
null
main.py
henryfox/encrypted-chat
c69ba786892dd870cb3fddd7da6ea77eadeb4a7e
[ "MIT" ]
null
null
null
import webapp2 import os import jinja2 from google.appengine.ext import db template_dir = os.path.join(os.path.dirname(__file__), "templates") jinja_env = jinja2.Environment(loader = jinja2.FileSystemLoader(template_dir), autoescape = True) app = webapp2.WSGIApplication([ ('/', MainHandler) ], debug=True)
27.185185
98
0.690736
7e74455914c904362f3673de521f4d7c1b0cced0
32,898
py
Python
lib/data_processing.py
ofirmg/football2vec
302dc89bcdb19d00a7bd23ae8d28c103bc2f0482
[ "Apache-2.0" ]
11
2021-10-01T15:14:41.000Z
2022-03-31T02:26:08.000Z
lib/data_processing.py
ofirmg/football2vec
302dc89bcdb19d00a7bd23ae8d28c103bc2f0482
[ "Apache-2.0" ]
null
null
null
lib/data_processing.py
ofirmg/football2vec
302dc89bcdb19d00a7bd23ae8d28c103bc2f0482
[ "Apache-2.0" ]
1
2022-03-17T17:38:06.000Z
2022-03-17T17:38:06.000Z
""" Created on September 5 2021 Data processing module of football2vec. Contains classes: FootballTokenizer, Corpus. Also contains the build_data_objects function and its nested function for building the core data objects. @author: Ofir Magdaci (@Magdaci) """ import numpy as np import pandas as pd import ast from t...
54.466887
120
0.658338
7e74c6f460e27189aecb37d569cafb98fe35f2d1
5,782
py
Python
ipyannotator/datasets/download.py
EnriqueMoran/ipyannotator
5517f8ded24e9e1347d0d72c73d620778f7b3069
[ "Apache-2.0" ]
19
2020-10-12T19:52:10.000Z
2022-02-07T18:23:26.000Z
ipyannotator/datasets/download.py
EnriqueMoran/ipyannotator
5517f8ded24e9e1347d0d72c73d620778f7b3069
[ "Apache-2.0" ]
6
2021-08-02T09:36:32.000Z
2022-01-05T15:29:30.000Z
ipyannotator/datasets/download.py
EnriqueMoran/ipyannotator
5517f8ded24e9e1347d0d72c73d620778f7b3069
[ "Apache-2.0" ]
1
2020-12-01T22:42:01.000Z
2020-12-01T22:42:01.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01a_datasets_download.ipynb (unless otherwise specified). __all__ = ['get_cifar10', 'get_oxford_102_flowers', 'get_cub_200_2011'] # Internal Cell import glob import json from pathlib import Path import os import subprocess import tarfile import urllib import zlib # In...
35.042424
139
0.654272
7e760bdc1f9d49e259f501565af56e9e0e123033
3,076
py
Python
airflow/plugins/operators/code_analyzer/utils/analysis/file.py
teiresias-personal-data-discovery/teiresias-system
50e9d08d6924480f120d2d4f9fbebdc6035a5c5b
[ "MIT" ]
2
2021-09-06T17:32:48.000Z
2022-02-24T19:58:41.000Z
airflow/plugins/operators/code_analyzer/utils/analysis/file.py
teiresias-personal-data-discovery/teiresias-system
50e9d08d6924480f120d2d4f9fbebdc6035a5c5b
[ "MIT" ]
null
null
null
airflow/plugins/operators/code_analyzer/utils/analysis/file.py
teiresias-personal-data-discovery/teiresias-system
50e9d08d6924480f120d2d4f9fbebdc6035a5c5b
[ "MIT" ]
null
null
null
from ruamel.yaml import YAML from pathlib import Path from mergedeep import merge from operators.code_analyzer.utils.analysis.tool import map_tool_to_storage_finder from operators.code_analyzer.utils.analysis.context import collect_context from operators.code_analyzer.constants.common import TOOL_CHARACTERISTICS
41.567568
117
0.592653
7e783fa3b3ae047ea9b8d8a178c888dc525a3a94
1,647
py
Python
examples/openmv/simple_tracking.py
bherbruck/simple-tracker
ed237d29a2cc84d0a38aaa2b1e8da7599ff8586f
[ "MIT" ]
3
2020-06-24T13:06:48.000Z
2021-09-15T11:47:10.000Z
examples/openmv/simple_tracking.py
bherbruck/simple_tracker
ed237d29a2cc84d0a38aaa2b1e8da7599ff8586f
[ "MIT" ]
null
null
null
examples/openmv/simple_tracking.py
bherbruck/simple_tracker
ed237d29a2cc84d0a38aaa2b1e8da7599ff8586f
[ "MIT" ]
null
null
null
import sensor import image import time import json from simple_tracker import Tracker sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time=2000) sensor.set_auto_gain(False) sensor.set_auto_whitebal(False) clock = time.clock() green_threshold = [(44, 88, -50, 1...
20.333333
65
0.625987
7e78a3a398d259dcdea4bb0f21c1e2aa3da5c606
2,106
py
Python
ExcelToNetcdf.py
aecryan/netcdf-excel-conversion
b4c3d244ee726ec67fc110bbbda6400a42dd3d3a
[ "MIT" ]
null
null
null
ExcelToNetcdf.py
aecryan/netcdf-excel-conversion
b4c3d244ee726ec67fc110bbbda6400a42dd3d3a
[ "MIT" ]
null
null
null
ExcelToNetcdf.py
aecryan/netcdf-excel-conversion
b4c3d244ee726ec67fc110bbbda6400a42dd3d3a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 #Project name: Excel --> netCDF #Description: It receives an excel file with a predefined format and returns the equivalent file in netCDF format. #Programmers: Amir \& Ashley #Date: 07-09-2020 import pandas as pd import xarray import scipy print("Enter the exact name of th...
18.972973
115
0.673789
7e79d9eb8ec6eeaae5636e4fa3a0bdb95504f949
2,583
py
Python
scripts/make_mc_scenario.py
BayAreaMetro/Lasso
189c6fbb2bb9d346ced7600531865db3e18ee23d
[ "Apache-2.0" ]
2
2019-08-15T10:23:45.000Z
2019-11-12T21:35:11.000Z
scripts/make_mc_scenario.py
BayAreaMetro/Lasso
189c6fbb2bb9d346ced7600531865db3e18ee23d
[ "Apache-2.0" ]
91
2020-01-06T14:53:22.000Z
2022-02-24T17:41:32.000Z
scripts/make_mc_scenario.py
wsp-sag/client_met_council_wrangler_utilities
62819d100af433de71b10e7c79d5b8003017eee1
[ "Apache-2.0" ]
2
2020-07-10T23:34:25.000Z
2021-04-14T06:57:45.000Z
import os import pandas as pd from network_wrangler import RoadwayNetwork from network_wrangler import TransitNetwork from network_wrangler import ProjectCard from network_wrangler import Scenario from network_wrangler import WranglerLogger from lasso import ModelRoadwayNetwork import warnings warnings.filterwarnings(...
32.696203
86
0.711189
7e7ab95088129de2b578b58bebe2a6b3e660cca5
6,571
py
Python
Models/Camera.py
arlanschouwstra/Robotica-Groep-11
17cac9527c3cc3f94f5a8ab11741cb5e546c85c1
[ "BSD-2-Clause" ]
null
null
null
Models/Camera.py
arlanschouwstra/Robotica-Groep-11
17cac9527c3cc3f94f5a8ab11741cb5e546c85c1
[ "BSD-2-Clause" ]
null
null
null
Models/Camera.py
arlanschouwstra/Robotica-Groep-11
17cac9527c3cc3f94f5a8ab11741cb5e546c85c1
[ "BSD-2-Clause" ]
null
null
null
# import the necessary packages from collections import deque import numpy as np import argparse import imutils import cv2 import time # calling method: camera = Camera() camera.detect()
43.516556
144
0.547405
7e7afd9b5bc486f02d1d5c166ba6efa287e9c8ff
2,217
py
Python
custom_components/weatheralerts/sensor.py
ikifar2012/sensor.weatheralerts
6e0b11c6c0c6223fdfb50e320662b2755b4c15f9
[ "MIT" ]
null
null
null
custom_components/weatheralerts/sensor.py
ikifar2012/sensor.weatheralerts
6e0b11c6c0c6223fdfb50e320662b2755b4c15f9
[ "MIT" ]
null
null
null
custom_components/weatheralerts/sensor.py
ikifar2012/sensor.weatheralerts
6e0b11c6c0c6223fdfb50e320662b2755b4c15f9
[ "MIT" ]
null
null
null
""" A component which allows you to get information about next departure from spesified stop. For more details about this component, please refer to the documentation at https://github.com/custom-components/sensor.weatheralerts """ import voluptuous as vol from datetime import timedelta from homeassistant.helpers.ent...
27.37037
89
0.691926
7e7b1b72d7e2f3002b8b48e684583223e28c26f3
5,873
py
Python
src/azure-cli/azure/cli/command_modules/security/tests/latest/test_security_automations_scenario.py
ZengTaoxu/azure-cli
6be96de450da5ac9f07aafb22dd69880bea04792
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/security/tests/latest/test_security_automations_scenario.py
ZengTaoxu/azure-cli
6be96de450da5ac9f07aafb22dd69880bea04792
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/security/tests/latest/test_security_automations_scenario.py
ZengTaoxu/azure-cli
6be96de450da5ac9f07aafb22dd69880bea04792
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
85.115942
727
0.737443
7e7b5ff37c1e9db3b446dba397ba3a4bdbfa6aee
997
py
Python
trypython/stdlib/argparse_/argparse01.py
devlights/try-python
67d1d26476794da81c8c76662486108ce03f8fb4
[ "MIT" ]
4
2019-10-21T11:42:11.000Z
2020-03-12T16:35:51.000Z
trypython/stdlib/argparse_/argparse01.py
devlights/try-python
67d1d26476794da81c8c76662486108ce03f8fb4
[ "MIT" ]
80
2017-02-08T07:55:37.000Z
2021-10-06T06:30:30.000Z
trypython/stdlib/argparse_/argparse01.py
devlights/try-python
67d1d26476794da81c8c76662486108ce03f8fb4
[ "MIT" ]
1
2020-03-12T04:37:17.000Z
2020-03-12T04:37:17.000Z
""" argparse http://bit.ly/2UXDCIG """ import argparse import sys from trypython.common.commoncls import SampleBase from trypython.common.commonfunc import pr
23.186047
73
0.628887
7e7b93a9c5eda7c1107bcc3481dd998203dfcd7d
949
py
Python
scripts/check_masks.py
dyollb/segmantic
8fe47340ff0f67812918f7070e3d6080e5d228ac
[ "MIT" ]
null
null
null
scripts/check_masks.py
dyollb/segmantic
8fe47340ff0f67812918f7070e3d6080e5d228ac
[ "MIT" ]
3
2021-09-24T20:32:23.000Z
2022-03-14T10:54:13.000Z
scripts/check_masks.py
dyollb/segmantic
8fe47340ff0f67812918f7070e3d6080e5d228ac
[ "MIT" ]
2
2021-09-24T11:54:52.000Z
2021-10-01T13:01:55.000Z
import logging from pathlib import Path import nibabel as nib import numpy as np import typer if __name__ == "__main__": typer.run(check_masks)
27.911765
71
0.559536
7e7c1099ca5e6f0cb535351f8035469a042e59e5
10,296
py
Python
draw_classes.py
Fs-agadir/StageDetect
af2841b41f80151e1f3092adbc266eb1d2b8db37
[ "MIT" ]
null
null
null
draw_classes.py
Fs-agadir/StageDetect
af2841b41f80151e1f3092adbc266eb1d2b8db37
[ "MIT" ]
null
null
null
draw_classes.py
Fs-agadir/StageDetect
af2841b41f80151e1f3092adbc266eb1d2b8db37
[ "MIT" ]
null
null
null
# Copyright (c) 2021, Fs-Agadir # All rights reserved. #from wx import App, ScreenDC #to get monitor resolution import matplotlib.pyplot as plt import matplotlib import numpy as np import os, cv2
38.133333
163
0.54089
7e7c81aac02ad87573439958e43598f569160606
7,325
py
Python
batch_gnome/batch_gnome/TAP/TAP_ext/test_TAP_ext.py
dylanrighi/GnomeTools
08ad6810194141ac89a27c95fa9b9499376000ae
[ "Unlicense" ]
2
2017-02-15T20:45:42.000Z
2020-10-09T16:00:00.000Z
batch_gnome/batch_gnome/TAP/TAP_ext/test_TAP_ext.py
dylanrighi/GnomeTools
08ad6810194141ac89a27c95fa9b9499376000ae
[ "Unlicense" ]
10
2015-06-25T23:42:11.000Z
2021-06-22T16:19:19.000Z
batch_gnome/batch_gnome/TAP/TAP_ext/test_TAP_ext.py
dylanrighi/GnomeTools
08ad6810194141ac89a27c95fa9b9499376000ae
[ "Unlicense" ]
15
2016-01-11T20:49:10.000Z
2020-10-15T18:02:20.000Z
#!/usr/bin/env python2.3 """ A simple test routine that tests at least some of the TAP_ext package """ import unittest from Numeric import * from TAP_ext import NumericExtras as NE ## This is the Python version of the check_receptors code, used by the test code above def hit_test(LEs,sites,BBs,Hit_Table,...
26.348921
107
0.622526
7e7d5c74d34a346aa2f86f99938df07c5e5fd4cb
89
py
Python
ourteam/apps.py
Kgermando/parlementaires
ef9a464373ce2facbb6543be6d3b0d7d5c11200c
[ "Apache-2.0" ]
1
2021-08-09T02:22:42.000Z
2021-08-09T02:22:42.000Z
ourteam/apps.py
Kgermando/parlementaires
ef9a464373ce2facbb6543be6d3b0d7d5c11200c
[ "Apache-2.0" ]
null
null
null
ourteam/apps.py
Kgermando/parlementaires
ef9a464373ce2facbb6543be6d3b0d7d5c11200c
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig
14.833333
33
0.752809
7e7db118c7f4f3b7e95cfc69811f1d3a63168f03
381
py
Python
backpack/extensions/secondorder/diag_ggn/permute.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
395
2019-10-04T09:37:52.000Z
2022-03-29T18:00:56.000Z
backpack/extensions/secondorder/diag_ggn/permute.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
78
2019-10-11T18:56:43.000Z
2022-03-23T01:49:54.000Z
backpack/extensions/secondorder/diag_ggn/permute.py
jabader97/backpack
089daafa0d611e13901fd7ecf8a0d708ce7a5928
[ "MIT" ]
50
2019-10-03T16:31:10.000Z
2022-03-15T19:36:14.000Z
"""Module defining DiagGGNPermute.""" from backpack.core.derivatives.permute import PermuteDerivatives from backpack.extensions.secondorder.diag_ggn.diag_ggn_base import DiagGGNBaseModule
31.75
84
0.76378
7e7dd5c8d80c1193d34c16e490af85436be7f87e
1,703
py
Python
tests.py
snandasena/disaster-response-pipeline
709af8c5fcb520dae82dc3b75c30ab2609402f53
[ "MIT" ]
null
null
null
tests.py
snandasena/disaster-response-pipeline
709af8c5fcb520dae82dc3b75c30ab2609402f53
[ "MIT" ]
null
null
null
tests.py
snandasena/disaster-response-pipeline
709af8c5fcb520dae82dc3b75c30ab2609402f53
[ "MIT" ]
null
null
null
import sys import numpy as np from sklearn.externals import joblib sys.path.append("common") from train_classifier import * staring_verb_extractor = StartingVerbExtractor() verb_count_extractor = VerbCountExtractor() starting_modal_extractor = StartingModalExtractor() noun_count_extractor = NounCountExtractor() ...
24.681159
79
0.72754
7e7e872c4d53c683d43e32b7bedc06b65ba0d11b
3,734
py
Python
sendim/tests/graph.py
ZuluPro/snafu
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
[ "BSD-3-Clause" ]
1
2017-12-13T20:28:32.000Z
2017-12-13T20:28:32.000Z
sendim/tests/graph.py
ZuluPro/snafu
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
[ "BSD-3-Clause" ]
null
null
null
sendim/tests/graph.py
ZuluPro/snafu
dbd79da4617db315ba7e76a0af6805cc3b1cbae2
[ "BSD-3-Clause" ]
null
null
null
""" """ from django.utils import unittest from django.core import management from referentiel.models import Supervisor from sendim.tests.defs import create_event, create_alert, internet_is_on
46.675
129
0.602839
7e8134c8fd80b019bde539a2bf2a08fb9219b671
799
py
Python
PipelineCreator/Testing/Python/ModuleTemplateTests.py
Connor-Bowley/SlicerPipelines
2fe92230fc6333951b7d99c272f3f2c34739624d
[ "Apache-2.0" ]
null
null
null
PipelineCreator/Testing/Python/ModuleTemplateTests.py
Connor-Bowley/SlicerPipelines
2fe92230fc6333951b7d99c272f3f2c34739624d
[ "Apache-2.0" ]
9
2021-11-08T20:42:49.000Z
2022-03-11T19:05:00.000Z
PipelineCreator/Testing/Python/ModuleTemplateTests.py
Connor-Bowley/SlicerPipelines
2fe92230fc6333951b7d99c272f3f2c34739624d
[ "Apache-2.0" ]
2
2022-01-21T09:13:40.000Z
2022-02-09T21:16:31.000Z
import unittest from PipelineCreatorLib._Private.ModuleTemplate import ModuleTemplate if __name__ == '__main__': unittest.main()
33.291667
80
0.662078
7e82cf4b8fa8c9cf39f0aaa01ba1006d96672fc2
3,760
py
Python
engine/logic/Transform.py
wkta/Python-Bataille-Navale
b6f725519cf1cf559e60ec766aa4f059463b1493
[ "MIT" ]
null
null
null
engine/logic/Transform.py
wkta/Python-Bataille-Navale
b6f725519cf1cf559e60ec766aa4f059463b1493
[ "MIT" ]
null
null
null
engine/logic/Transform.py
wkta/Python-Bataille-Navale
b6f725519cf1cf559e60ec766aa4f059463b1493
[ "MIT" ]
1
2019-12-03T15:42:38.000Z
2019-12-03T15:42:38.000Z
# Copyright 2019 CAILLAUD Jean-Baptiste. from copy import copy from engine.logic.Math import Mat3x3, Vector2, IDENTITY_MATRIX, ZERO_VECTOR, UNIT_VECTOR
39.578947
121
0.655585
7e840f48bfa9da0d3fea1df9c562b535318a1317
5,820
py
Python
tools/key2java.py
rb-anssi/tataouine
6aef17cc7f25f1d6ada38439991bdb6247dcc465
[ "BSD-3-Clause" ]
null
null
null
tools/key2java.py
rb-anssi/tataouine
6aef17cc7f25f1d6ada38439991bdb6247dcc465
[ "BSD-3-Clause" ]
null
null
null
tools/key2java.py
rb-anssi/tataouine
6aef17cc7f25f1d6ada38439991bdb6247dcc465
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import sys, os, array # Import our local utils from crypto_utils import * if __name__ == '__main__': # Register Ctrl+C handler signal.signal(signal.SIGINT, handler) if len(sys.argv) < 12: PrintUsage() sys.exit(1) Key2Java(sys.argv)
40.416667
279
0.635739
7e848495b8c58269c0b218c96feb0278fcd138df
1,949
py
Python
app/maze_selector.py
rpowel/maze
d98d7a39e6cc0abbd32323be1722fc1a126d8910
[ "MIT" ]
null
null
null
app/maze_selector.py
rpowel/maze
d98d7a39e6cc0abbd32323be1722fc1a126d8910
[ "MIT" ]
null
null
null
app/maze_selector.py
rpowel/maze
d98d7a39e6cc0abbd32323be1722fc1a126d8910
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 11 10:44:44 2020. @author: powel """ import random from random import randint import numpy as np from mazes import RandomMaze, PrimMaze, KruskalMaze, RecursiveDivisionMaze, MazeBase from percolation import check_percolation if __name__ == "__ma...
27.450704
87
0.581837
7e852564331f423fb21ea2215be78aaea0deff4c
507
py
Python
my_lambdata/iqr_oop.py
karlmanalo/lambdata-karlmanalo
e6058fd1b4a5eb64d0afaebdfa14b902fedf931e
[ "MIT" ]
null
null
null
my_lambdata/iqr_oop.py
karlmanalo/lambdata-karlmanalo
e6058fd1b4a5eb64d0afaebdfa14b902fedf931e
[ "MIT" ]
null
null
null
my_lambdata/iqr_oop.py
karlmanalo/lambdata-karlmanalo
e6058fd1b4a5eb64d0afaebdfa14b902fedf931e
[ "MIT" ]
1
2020-05-06T21:26:50.000Z
2020-05-06T21:26:50.000Z
# my_lambdata\iqr_oop.py # IQR function written in terms of OOP # Must feed in list of numbers import numpy import pandas if __name__ == "__main__": data = pandas.DataFrame([1,2,3,4,5]) nums = Numbers() nums.iqr(data)
22.043478
70
0.623274
7e85b0b404fa718713288ae4337dab0afce1d4af
2,760
py
Python
app/vendors/migrations/0030_auto_20180305_2301.py
snakrani/discovery
99690f186a194cabef6a5d1ad18fca715be1e187
[ "CC0-1.0" ]
null
null
null
app/vendors/migrations/0030_auto_20180305_2301.py
snakrani/discovery
99690f186a194cabef6a5d1ad18fca715be1e187
[ "CC0-1.0" ]
null
null
null
app/vendors/migrations/0030_auto_20180305_2301.py
snakrani/discovery
99690f186a194cabef6a5d1ad18fca715be1e187
[ "CC0-1.0" ]
null
null
null
# Generated by Django 2.0.2 on 2018-03-05 23:01 from django.db import migrations, models import django.db.models.deletion
34.936709
156
0.593841
7e87f76640610e9de62b60abb07ac310224902a8
309
py
Python
hcap_utils/contrib/allauth/login_form.py
fabiommendes/capacidade_hospitalar
4f675b574573eb3f51e6be8a927ea230bf2712c7
[ "MIT" ]
null
null
null
hcap_utils/contrib/allauth/login_form.py
fabiommendes/capacidade_hospitalar
4f675b574573eb3f51e6be8a927ea230bf2712c7
[ "MIT" ]
31
2020-04-11T13:38:17.000Z
2021-09-22T18:51:11.000Z
hcap_utils/contrib/allauth/login_form.py
fabiommendes/capacidade_hospitalar
4f675b574573eb3f51e6be8a927ea230bf2712c7
[ "MIT" ]
1
2020-04-08T17:04:39.000Z
2020-04-08T17:04:39.000Z
from allauth.account.forms import LoginForm as AllauthLoginForm
34.333333
63
0.702265
7e892bbc2f9093e6ea3899715b53105db05324f3
402
py
Python
community/migrations/0013_auto_20191108_0918.py
akarakoc/Communityverse
73ecf51eae3f96cca865e0d7cc526b92c8ad6b5e
[ "MIT" ]
null
null
null
community/migrations/0013_auto_20191108_0918.py
akarakoc/Communityverse
73ecf51eae3f96cca865e0d7cc526b92c8ad6b5e
[ "MIT" ]
22
2019-11-09T23:23:11.000Z
2019-12-23T09:38:29.000Z
community/migrations/0013_auto_20191108_0918.py
akarakoc/CommunityVerse
73ecf51eae3f96cca865e0d7cc526b92c8ad6b5e
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-08 09:18 from django.db import migrations, models
21.157895
53
0.614428
7e894bd8c2abebfa353b32928132bd335cf2f437
3,870
py
Python
tests/test_api.py
gilbsgilbs/cruft
cc6571e0816bc5149e24ed7d23d90bdb9de8d65e
[ "MIT" ]
null
null
null
tests/test_api.py
gilbsgilbs/cruft
cc6571e0816bc5149e24ed7d23d90bdb9de8d65e
[ "MIT" ]
null
null
null
tests/test_api.py
gilbsgilbs/cruft
cc6571e0816bc5149e24ed7d23d90bdb9de8d65e
[ "MIT" ]
null
null
null
import json import os from pathlib import Path from subprocess import run import pytest from examples import verify_and_test_examples from git import Repo import cruft from cruft import exceptions from cruft._commands.utils import get_cruft_file
31.463415
92
0.701034
7e89cb57b76e7e255d355d36bbaa26056332ada5
4,303
py
Python
analysis_engine/prepare_history_dataset.py
virdesai/stock-analysis-engine
0ca501277c632150717ca499121a34f8f8c71ccb
[ "Apache-2.0" ]
819
2018-09-16T20:33:11.000Z
2022-03-30T21:18:23.000Z
analysis_engine/prepare_history_dataset.py
gvpathi/stock-analysis-engine
0ca501277c632150717ca499121a34f8f8c71ccb
[ "Apache-2.0" ]
14
2018-09-16T20:52:25.000Z
2020-09-06T12:36:36.000Z
analysis_engine/prepare_history_dataset.py
gvpathi/stock-analysis-engine
0ca501277c632150717ca499121a34f8f8c71ccb
[ "Apache-2.0" ]
226
2018-09-16T20:04:32.000Z
2022-03-31T01:41:14.000Z
""" Helper for loading a ``Trading History`` dataset """ import json import zlib import pandas as pd import analysis_engine.consts as ae_consts import spylunking.log.setup_logging as log_utils log = log_utils.build_colorized_logger(name=__name__) def prepare_history_dataset( data, compress=False, ...
29.472603
77
0.595631
7e8a45c72fe260a3444e4ee7e5fcd4dbca175324
935
py
Python
scripts/count_git_changes.py
ShankarNara/shogun
8ab196de16b8d8917e5c84770924c8d0f5a3d17c
[ "BSD-3-Clause" ]
2,753
2015-01-02T11:34:13.000Z
2022-03-25T07:04:27.000Z
scripts/count_git_changes.py
ShankarNara/shogun
8ab196de16b8d8917e5c84770924c8d0f5a3d17c
[ "BSD-3-Clause" ]
2,404
2015-01-02T19:31:41.000Z
2022-03-09T10:58:22.000Z
scripts/count_git_changes.py
ShankarNara/shogun
8ab196de16b8d8917e5c84770924c8d0f5a3d17c
[ "BSD-3-Clause" ]
1,156
2015-01-03T01:57:21.000Z
2022-03-26T01:06:28.000Z
import os import sys insertions=0 deletions=0 files=0 FROMVER="" if len(sys.argv)>1: FROMVER=sys.argv[1] TOVER="" if len(sys.argv)>2: TOVER=sys.argv[2] TMPNAME=os.tmpnam() VER="" if len(FROMVER)>0: VER=FROMVER+'..' if len(TOVER)>0: if len(VER)==0: VER='..' VER=VER+TOVER os.system('git log --oneline --shortstat...
20.777778
65
0.628877
7e8d50185ec0ee4eb697f713cf041be29429c89b
439
py
Python
pysaintcoinach/ex/language.py
icykoneko/saintcoinach-py
66898385e1198203a7ec9da83787427bf6fe5c83
[ "MIT" ]
7
2019-11-20T17:24:49.000Z
2022-03-29T04:17:53.000Z
pysaintcoinach/ex/language.py
icykoneko/saintcoinach-py
66898385e1198203a7ec9da83787427bf6fe5c83
[ "MIT" ]
7
2019-04-08T07:36:46.000Z
2022-01-17T22:51:54.000Z
pysaintcoinach/ex/language.py
icykoneko/saintcoinach-py
66898385e1198203a7ec9da83787427bf6fe5c83
[ "MIT" ]
3
2019-04-08T08:24:22.000Z
2021-06-27T22:19:15.000Z
from enum import Enum
18.291667
31
0.523918
7e908ee2b8fb406fe3a6030c978abed370619859
929
py
Python
Python_lxf/Python_Basic_Operation/Python_Basic/basicValueAndFunc/Filter.py
QAlexBall/Learning_Py
8a5987946928a9d86f6807555ed435ac604b2c44
[ "MIT" ]
2
2019-01-24T15:06:59.000Z
2019-01-25T07:34:45.000Z
Python_lxf/Python_Basic_Operation/Python_Basic/basicValueAndFunc/Filter.py
QAlexBall/Learning_Py
8a5987946928a9d86f6807555ed435ac604b2c44
[ "MIT" ]
1
2019-12-23T09:45:11.000Z
2019-12-23T09:45:11.000Z
Python_lxf/Python_Basic_Operation/Python_Basic/basicValueAndFunc/Filter.py
QAlexBall/Learning_Py
8a5987946928a9d86f6807555ed435ac604b2c44
[ "MIT" ]
1
2019-07-18T14:21:35.000Z
2019-07-18T14:21:35.000Z
a = list(filter(is_odd, [1, 2, 4, 5, 6, 7, 8])) a = list(filter(lambda n : n % 2 == 1, [1, 2, 4, 5, 6, 7, 8, 9])) b = list(filter(not_empty, ['A', '' , 'B', None, 'C', ' '])) # filter Iterator, print(a, b) for n in primes(): if n < 30: print(n) else: break func = _not_divisible(9) # _not_divisible(9) (x % 9 ...
21.113636
104
0.592034
7e9106857781db3212367ee35a3b48eb586b45ed
40,855
py
Python
toolcraft/storage/__base__.py
SpikingNeurons/toolcraft
7290fa70a5d2680ebacf1bc421efaf09545f7c7e
[ "BSD-3-Clause" ]
6
2021-04-06T09:27:48.000Z
2021-12-17T02:13:11.000Z
toolcraft/storage/__base__.py
SpikingNeurons/toolcraft
7290fa70a5d2680ebacf1bc421efaf09545f7c7e
[ "BSD-3-Clause" ]
57
2021-03-19T07:33:13.000Z
2022-03-30T18:59:29.000Z
toolcraft/storage/__base__.py
SpikingNeurons/toolcraft
7290fa70a5d2680ebacf1bc421efaf09545f7c7e
[ "BSD-3-Clause" ]
2
2021-04-08T18:24:36.000Z
2021-04-08T22:40:50.000Z
""" Holds the base classes for storage module. These are special hashables whose state can be serialized on disk. """ import typing as t import pathlib import datetime import dataclasses import abc from .. import util, logger, settings from .. import marshalling as m from .. import error as e from . import state # n...
39.819688
80
0.538465
7e92ae2753098633b02262fd0da3be3a5595b241
1,951
py
Python
scripts/pulp_test.py
rajiv256/cs531_proj_2
4fa4628da06e3558b9f8c2917c0e87d9c5287690
[ "MIT" ]
null
null
null
scripts/pulp_test.py
rajiv256/cs531_proj_2
4fa4628da06e3558b9f8c2917c0e87d9c5287690
[ "MIT" ]
null
null
null
scripts/pulp_test.py
rajiv256/cs531_proj_2
4fa4628da06e3558b9f8c2917c0e87d9c5287690
[ "MIT" ]
null
null
null
import pulp as pl def create_constraint(coeffs, var_names, sense, rhs): """Creates a constraint based on the args Args: coeffs: coefficients of the constraints vars: Names of the vars sense: +1, 0, -1 based on >=, ==, <= respectively. Or we can use pl.LpConstraintLE rhs: nume...
28.275362
103
0.654024
7e935ec5d2ebb9f636c96a59cc60b230513b416f
3,434
py
Python
apps/user_app/models.py
lightless233/npiss
8338f50d971600fe2b2366836ca2fb543f2276d5
[ "MIT" ]
1
2016-11-22T13:25:02.000Z
2016-11-22T13:25:02.000Z
apps/user_app/models.py
LiGhT1EsS/npiss
8338f50d971600fe2b2366836ca2fb543f2276d5
[ "MIT" ]
4
2020-06-05T17:28:20.000Z
2022-03-11T23:15:49.000Z
apps/user_app/models.py
lightless233/npiss
8338f50d971600fe2b2366836ca2fb543f2276d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # coding: utf8 from __future__ import unicode_literals from django.db import models from django.contrib.auth.hashers import make_password, check_password __author__ = 'lightless' __email__ = 'root@lightless.me'
31.796296
101
0.689284
7e95766c342499bfa038fc67107c66bd872341ac
24
py
Python
src/models/__init__.py
WorqHat/Stanford-MRnet-Challenge
0a8a7438f55503307d5b6b0ddaaa3c50fa4d692b
[ "MIT" ]
1
2021-06-27T18:22:57.000Z
2021-06-27T18:22:57.000Z
src/models/__init__.py
WorqHat/Stanford-MRnet-Challenge
0a8a7438f55503307d5b6b0ddaaa3c50fa4d692b
[ "MIT" ]
null
null
null
src/models/__init__.py
WorqHat/Stanford-MRnet-Challenge
0a8a7438f55503307d5b6b0ddaaa3c50fa4d692b
[ "MIT" ]
2
2020-05-28T07:30:39.000Z
2021-06-27T18:22:59.000Z
from .MRnet import MRnet
24
24
0.833333
7e97e798b9acfb3c7359d3f9ef7c17e46c59fef5
398
py
Python
storage/models/production_data.py
aagarwal1999/194-web-app
362efd32d964d780f213b4e5a97fd14b080329ba
[ "Apache-2.0" ]
null
null
null
storage/models/production_data.py
aagarwal1999/194-web-app
362efd32d964d780f213b4e5a97fd14b080329ba
[ "Apache-2.0" ]
null
null
null
storage/models/production_data.py
aagarwal1999/194-web-app
362efd32d964d780f213b4e5a97fd14b080329ba
[ "Apache-2.0" ]
null
null
null
from storage.shared import db import datetime import uuid
24.875
87
0.731156
7e9894e1fe1b381787e323f05a879ce7b9f749fc
2,478
py
Python
nostrild/nostrild.py
nibalizer/galileo
f5d100adcfaa238d98ec2df93040eafc4d9e7420
[ "Apache-2.0" ]
1
2015-01-11T04:32:57.000Z
2015-01-11T04:32:57.000Z
nostrild/nostrild.py
nibalizer/galileo
f5d100adcfaa238d98ec2df93040eafc4d9e7420
[ "Apache-2.0" ]
1
2015-01-12T01:17:07.000Z
2015-01-12T01:17:07.000Z
nostrild/nostrild.py
nibalizer/galileo
f5d100adcfaa238d98ec2df93040eafc4d9e7420
[ "Apache-2.0" ]
2
2015-01-17T00:52:39.000Z
2017-09-09T05:42:18.000Z
# nostrild # authentication and user info daemon import getent import os import yaml import ldap from itsdangerous import TimestampSigner from flask import Flask, abort, request, jsonify from flask_cors import CORS app = Flask(__name__) app.config['CORS_HEADERS'] = 'Content-Type' cors = CORS(app) if __name...
22.324324
64
0.619048
7e98b2febab6aef339580ecaf31712e7927e5389
13,357
py
Python
P3/regression.py
alepalenc/Aprendizaje-Automatico
b2a6daa29bbed29b3d042a51bc0425b1e80152e6
[ "MIT" ]
null
null
null
P3/regression.py
alepalenc/Aprendizaje-Automatico
b2a6daa29bbed29b3d042a51bc0425b1e80152e6
[ "MIT" ]
null
null
null
P3/regression.py
alepalenc/Aprendizaje-Automatico
b2a6daa29bbed29b3d042a51bc0425b1e80152e6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split, GridSearchCV from sklearn.feature_selection import VarianceThreshold from sklearn.preprocessing import PolynomialFeatures, StandardScaler from sklearn import metrics from sklearn.bas...
36.002695
147
0.589204
7e99f08d361c9ea4cb38904ff75221d141f1e187
1,838
py
Python
Line_Bot_Server/LineUsers.py
STU-Idichi-Syoya/Linebot_
54941ec0baee40ac21eeed77a0e1d0da02631aea
[ "MIT" ]
null
null
null
Line_Bot_Server/LineUsers.py
STU-Idichi-Syoya/Linebot_
54941ec0baee40ac21eeed77a0e1d0da02631aea
[ "MIT" ]
null
null
null
Line_Bot_Server/LineUsers.py
STU-Idichi-Syoya/Linebot_
54941ec0baee40ac21eeed77a0e1d0da02631aea
[ "MIT" ]
null
null
null
from Line_Bot_Server.LineBot import line_bot_api ##### STATE #####
28.276923
63
0.605005
7e99f6ca30156fb9b0a9d2f84235cc68fb4723a3
841
py
Python
wx/stc/mixins/DrawColumnEndMixin.py
dejbug/dejan7
0e3d9f4068cd7b39a3a992f4b21fa5042c88227b
[ "MIT" ]
null
null
null
wx/stc/mixins/DrawColumnEndMixin.py
dejbug/dejan7
0e3d9f4068cd7b39a3a992f4b21fa5042c88227b
[ "MIT" ]
null
null
null
wx/stc/mixins/DrawColumnEndMixin.py
dejbug/dejan7
0e3d9f4068cd7b39a3a992f4b21fa5042c88227b
[ "MIT" ]
null
null
null
import wx import wx.stc from dejan7.async.DelayedCall import * from dejan7.wx.stc import GetRowWidths
22.72973
71
0.668252
7e9a6ec65ac1ad83068e34348790df72fdb98a91
177
py
Python
Userful_Script/decimal_to_binary.py
abc907558136/Pytorch-learning
24c3da7eb134e0b9058a6f8329a311196cbc528b
[ "Apache-2.0" ]
1
2019-12-19T04:49:57.000Z
2019-12-19T04:49:57.000Z
Userful_Script/decimal_to_binary.py
abc907558136/Pytorch-Learning
24c3da7eb134e0b9058a6f8329a311196cbc528b
[ "Apache-2.0" ]
null
null
null
Userful_Script/decimal_to_binary.py
abc907558136/Pytorch-Learning
24c3da7eb134e0b9058a6f8329a311196cbc528b
[ "Apache-2.0" ]
null
null
null
import numpy as np # Represent each input by an array of its binary digits.
35.4
66
0.700565
7e9da2cb9c09decd20d0f9df4db1a688df669596
884
py
Python
tools/telemetry/telemetry/core/platform/power_monitor/android_ds2784_power_monitor_unittest.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
231
2015-01-08T09:04:44.000Z
2021-12-30T03:03:10.000Z
tools/telemetry/telemetry/core/platform/power_monitor/android_ds2784_power_monitor_unittest.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2017-02-14T21:55:58.000Z
2017-02-14T21:55:58.000Z
tools/telemetry/telemetry/core/platform/power_monitor/android_ds2784_power_monitor_unittest.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
268
2015-01-21T05:53:28.000Z
2022-03-25T22:09:01.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from telemetry.core.platform.power_monitor import android_ds2784_power_monitor
35.36
78
0.636878
7e9db911f3ba28aac3dc562f5cd602f52c2d9c10
1,231
py
Python
apps/common/lookups.py
gis4dis/poster_new
cee983bfcfc90f581b18712d558bc9d8a83a400a
[ "BSD-3-Clause" ]
4
2017-10-17T10:52:27.000Z
2020-08-30T10:13:46.000Z
apps/common/lookups.py
gis4dis/poster_new
cee983bfcfc90f581b18712d558bc9d8a83a400a
[ "BSD-3-Clause" ]
138
2017-10-13T09:09:02.000Z
2020-06-05T18:55:33.000Z
apps/common/lookups.py
gis4dis/poster_new
cee983bfcfc90f581b18712d558bc9d8a83a400a
[ "BSD-3-Clause" ]
2
2018-01-21T19:44:51.000Z
2018-02-15T11:27:39.000Z
from django.contrib.postgres.fields import DateTimeRangeField from django.db.models import Lookup from psycopg2.extras import NumericRange
38.46875
115
0.665313
7e9fa3c475c35098becd66c211b5ef3ab43f253f
21,450
py
Python
lib/pecoff/Executable.py
arizvisa/syringe
9f8691d3e70b34d52ce83c8ea33be52d0887f0d6
[ "BSD-2-Clause" ]
25
2015-04-14T21:53:46.000Z
2022-03-30T19:15:24.000Z
lib/pecoff/Executable.py
arizvisa/syringe
9f8691d3e70b34d52ce83c8ea33be52d0887f0d6
[ "BSD-2-Clause" ]
5
2020-03-23T20:19:59.000Z
2021-05-24T19:38:31.000Z
lib/pecoff/Executable.py
arizvisa/syringe
9f8691d3e70b34d52ce83c8ea33be52d0887f0d6
[ "BSD-2-Clause" ]
7
2015-07-31T13:26:37.000Z
2021-03-05T19:35:37.000Z
import logging, operator, functools, itertools, array, ptypes from ptypes import * from .headers import * from . import portable ### What file format the next header is ### What file format the data is ## Portable Executable (PE) Portable = IMAGE_NT_HEADERS64 = IMAGE_NT_HEADERS ### FileBase class File(pstruct.type...
34.210526
214
0.58634
7ea13c2421a842ac77b2ae86ea0d9775b78d7084
955
py
Python
test/test_utils.py
undecidedzogvisrainbowvitalispotent-360/i2plib
6edf51cd5d21cc745aa7e23cb98c582144884fa8
[ "MIT" ]
25
2018-09-05T16:44:05.000Z
2022-02-16T18:32:32.000Z
test/test_utils.py
undecidedzogvisvitalispotent8stars360/i2plib
6edf51cd5d21cc745aa7e23cb98c582144884fa8
[ "MIT" ]
2
2018-10-24T19:57:16.000Z
2019-01-26T14:30:40.000Z
test/test_utils.py
undecidedzogvisvitalispotent8stars360/i2plib
6edf51cd5d21cc745aa7e23cb98c582144884fa8
[ "MIT" ]
5
2018-10-24T18:01:46.000Z
2020-12-15T18:16:14.000Z
import unittest import os import i2plib.sam import i2plib.utils
28.939394
77
0.66178
7ea185e9e7bf9f8a9049b8e9ecc9f23bee356df7
2,156
py
Python
arm64/conditional.py
c01db33f/reil
3deec3a3bb69aae51cc0d728d5f83156cfba2ab6
[ "Apache-2.0" ]
27
2015-03-16T13:28:00.000Z
2021-08-02T02:58:23.000Z
arm64/conditional.py
c01db33f/pyreil
3deec3a3bb69aae51cc0d728d5f83156cfba2ab6
[ "Apache-2.0" ]
2
2015-02-23T12:18:53.000Z
2015-03-15T20:31:16.000Z
arm64/conditional.py
c01db33f/reil
3deec3a3bb69aae51cc0d728d5f83156cfba2ab6
[ "Apache-2.0" ]
9
2016-03-22T18:59:12.000Z
2022-02-05T08:18:28.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Mark Brand - c01db33f (at) gmail.com # # 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....
25.666667
77
0.581169
7ea23da5c7684f08a14ea23938ae0d58c8dbefb9
2,830
py
Python
open_ocr/rpc_server_base.py
jpnewman/python_ocr_api
1063a03c273438a8df55d6296b87940bf143aa60
[ "MIT" ]
null
null
null
open_ocr/rpc_server_base.py
jpnewman/python_ocr_api
1063a03c273438a8df55d6296b87940bf143aa60
[ "MIT" ]
null
null
null
open_ocr/rpc_server_base.py
jpnewman/python_ocr_api
1063a03c273438a8df55d6296b87940bf143aa60
[ "MIT" ]
null
null
null
import logging import pika LOGGER = logging.getLogger(__name__)
36.282051
84
0.591166
7ea28e8e4d7addcc5853c2f95be5898c08fdb331
1,490
py
Python
s64da_benchmark_toolkit/dbconn.py
a-masterov/s64da-benchmark-toolkit
b1af60c6a1c7d4c62ae9fb5ce04e2c7b59002b0b
[ "MIT" ]
15
2020-03-27T09:40:12.000Z
2022-03-25T19:55:53.000Z
s64da_benchmark_toolkit/dbconn.py
a-masterov/s64da-benchmark-toolkit
b1af60c6a1c7d4c62ae9fb5ce04e2c7b59002b0b
[ "MIT" ]
43
2020-03-25T10:03:11.000Z
2021-06-02T01:15:17.000Z
s64da_benchmark_toolkit/dbconn.py
a-masterov/s64da-benchmark-toolkit
b1af60c6a1c7d4c62ae9fb5ce04e2c7b59002b0b
[ "MIT" ]
6
2020-10-08T11:32:40.000Z
2021-11-17T21:20:44.000Z
import logging import time import psycopg2 from psycopg2.extras import DictCursor LOG = logging.getLogger()
31.702128
109
0.624832
7ea4d785d48817245d9b222be270587ab13b327a
436
py
Python
examples/test_pos_boot_normal.py
zmdismai/tcf
3903e0a2f444c3aa14647a5147a0df76a49e4195
[ "Apache-2.0" ]
null
null
null
examples/test_pos_boot_normal.py
zmdismai/tcf
3903e0a2f444c3aa14647a5147a0df76a49e4195
[ "Apache-2.0" ]
null
null
null
examples/test_pos_boot_normal.py
zmdismai/tcf
3903e0a2f444c3aa14647a5147a0df76a49e4195
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python import tcfl.tc import tcfl.tl import tcfl.pos
20.761905
61
0.646789
7ea4f26b832f9d8e48b3a6b69e37f65806d63b1b
1,367
py
Python
ImGen.py
ibaranov-cp/ImGen_Circuit_Maker
50c328ec0f62a77908dc3179de8fbf123f38caec
[ "BSD-3-Clause" ]
null
null
null
ImGen.py
ibaranov-cp/ImGen_Circuit_Maker
50c328ec0f62a77908dc3179de8fbf123f38caec
[ "BSD-3-Clause" ]
null
null
null
ImGen.py
ibaranov-cp/ImGen_Circuit_Maker
50c328ec0f62a77908dc3179de8fbf123f38caec
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #BSD 3-Clause License #Copyright (c) 2017, Ilia Baranov ############################################# # CHANGE THESE VARS AS NEEDED size = 10 #size of squares in mils invert = False #Color invert the image image_name = "test.png" #name of the image, can be BMP, PNG or JPG #########...
23.982456
74
0.504755
7ea621576562b5fb32452a65b61e929a0460d182
13,564
py
Python
ckan/tests/functional/test_publisher_auth.py
dadosgovbr/ckan
f2ed9a03581c3229cf01209baa9a02a71642e0b6
[ "BSD-3-Clause" ]
2
2015-11-05T12:04:52.000Z
2017-08-09T11:29:11.000Z
ckan/tests/functional/test_publisher_auth.py
dadosgovbr/ckan
f2ed9a03581c3229cf01209baa9a02a71642e0b6
[ "BSD-3-Clause" ]
null
null
null
ckan/tests/functional/test_publisher_auth.py
dadosgovbr/ckan
f2ed9a03581c3229cf01209baa9a02a71642e0b6
[ "BSD-3-Clause" ]
null
null
null
import re from nose.tools import assert_equal import ckan.model as model from ckan.lib.create_test_data import CreateTestData from ckan.logic import NotAuthorized from ckan.tests import * from ckan.tests import setup_test_search_index from base import FunctionalTestCase from ckan.tests import search_related...
35.60105
122
0.603804
7ea6762aae019197866e6971cb35189f112a85c4
451
py
Python
py/__main__.py
social-learning/data-structures
84e9996150d14d7008e9d9d3cf37dcb586266802
[ "MIT" ]
2
2021-05-07T18:57:21.000Z
2021-05-09T18:19:32.000Z
py/__main__.py
social-learning/data-structures
84e9996150d14d7008e9d9d3cf37dcb586266802
[ "MIT" ]
3
2021-05-06T15:29:53.000Z
2021-05-07T17:03:22.000Z
py/__main__.py
social-learning/data-structures
84e9996150d14d7008e9d9d3cf37dcb586266802
[ "MIT" ]
null
null
null
import src.data_structures.heap from src.algorithms.misc import powerfulIntegers if __name__ == "__main__": x = powerfulIntegers(2,3,10) print(x) else: print("File one executed when imported")
21.47619
48
0.585366
7ea6ac2af6bb95e81265bf6707a8fafbd55ae5e0
1,121
py
Python
src/EDA/cleanAcceptedLoans.py
simon555/cs109-FinalProject
4a7c7b10c02150400fedb36a6c59da0ee06bbcce
[ "MIT" ]
2
2018-11-23T07:12:23.000Z
2018-11-27T22:13:51.000Z
src/EDA/cleanAcceptedLoans.py
simon555/cs109-FinalProject
4a7c7b10c02150400fedb36a6c59da0ee06bbcce
[ "MIT" ]
null
null
null
src/EDA/cleanAcceptedLoans.py
simon555/cs109-FinalProject
4a7c7b10c02150400fedb36a6c59da0ee06bbcce
[ "MIT" ]
1
2018-11-26T17:10:18.000Z
2018-11-26T17:10:18.000Z
# -*- coding: utf-8 -*- """ Created on Wed Nov 28 21:56:22 2018 @author: simon """ from src.EDA.clean_object import cleanObject from src.EDA.clean_numeric import cleanNumeric import pandas as pd def cleanForDemo(filename): """ input : location of the file output : fully cleaned dataset ...
21.557692
103
0.617306
7ea6b0f17a7cddaf370fa292780a167ed669fcc8
318
py
Python
answers/VanshBaijal/Day 6/Question1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
22
2021-03-16T14:07:47.000Z
2021-08-13T08:52:50.000Z
answers/VanshBaijal/Day 6/Question1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
174
2021-03-16T21:16:40.000Z
2021-06-12T05:19:51.000Z
answers/VanshBaijal/Day 6/Question1.py
arc03/30-DaysOfCode-March-2021
6d6e11bf70280a578113f163352fa4fa8408baf6
[ "MIT" ]
135
2021-03-16T16:47:12.000Z
2021-06-27T14:22:38.000Z
Candies = [int(x) for x in input("Enter the numbers with space: ").split()] extraCandies=int(input("Enter the number of extra candies: ")) Output=[ ] i=0 while(i<len(Candies)): if(Candies[i]+extraCandies>=max(Candies)): Output.append("True") else: Output.append("False") i+=1 print(Output)
26.5
75
0.644654
7ea9cd90fdf10c43d54fa675ea898cdb76225e1f
5,855
py
Python
tests/test_search.py
omaralvarez/trakt.py
93a6beb73cdd37ffb354d2e9c1892dc39d9c4baf
[ "MIT" ]
null
null
null
tests/test_search.py
omaralvarez/trakt.py
93a6beb73cdd37ffb354d2e9c1892dc39d9c4baf
[ "MIT" ]
null
null
null
tests/test_search.py
omaralvarez/trakt.py
93a6beb73cdd37ffb354d2e9c1892dc39d9c4baf
[ "MIT" ]
null
null
null
from tests.core.helpers import read from six.moves.urllib_parse import urlparse, parse_qsl from trakt import Trakt import responses
29.129353
91
0.554398
7ea9f178e2418d2c7e8986651448126d115fa230
4,828
py
Python
test.py
XiaoyongNI/hybrid-inference
c268e1ada019e08f62e3f02fc6d5059130ec5358
[ "MIT" ]
null
null
null
test.py
XiaoyongNI/hybrid-inference
c268e1ada019e08f62e3f02fc6d5059130ec5358
[ "MIT" ]
null
null
null
test.py
XiaoyongNI/hybrid-inference
c268e1ada019e08f62e3f02fc6d5059130ec5358
[ "MIT" ]
null
null
null
from utils import generic_utils as g_utils import torch import evaluation as eval import torch.nn.functional as F import losses from datasets import nclt from datasets import synthetic from datasets import lorenz import numpy as np from utils import generic_utils as g_utils import time
36.854962
107
0.615369
7eab2e9233141229915ea54e3a9ad3980ec8ae2f
1,418
py
Python
nlt/debug/dataset.py
isabella232/neural-light-transport
04acc39713be464e74e0393315c71416f67a3ef3
[ "Apache-2.0" ]
176
2020-08-13T02:31:07.000Z
2022-03-24T05:50:55.000Z
nlt/debug/dataset.py
isabella232/neural-light-transport
04acc39713be464e74e0393315c71416f67a3ef3
[ "Apache-2.0" ]
7
2020-11-16T05:07:08.000Z
2022-02-07T04:19:44.000Z
nlt/debug/dataset.py
isabella232/neural-light-transport
04acc39713be464e74e0393315c71416f67a3ef3
[ "Apache-2.0" ]
30
2020-08-13T07:03:34.000Z
2022-03-23T18:55:26.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.541667
79
0.727786
7eab677ffe16ca51d58be0908854da05e1f26c5f
1,928
py
Python
safirnotification/api.py
byrxiaochun/safir_notification_service
adc7e3ab2b61906480e50264bab0cccd47483189
[ "Apache-2.0" ]
1
2017-07-14T07:36:22.000Z
2017-07-14T07:36:22.000Z
safirnotification/api.py
byrxiaochun/safir_notification_service
adc7e3ab2b61906480e50264bab0cccd47483189
[ "Apache-2.0" ]
null
null
null
safirnotification/api.py
byrxiaochun/safir_notification_service
adc7e3ab2b61906480e50264bab0cccd47483189
[ "Apache-2.0" ]
2
2017-10-21T12:16:18.000Z
2019-07-19T05:31:07.000Z
from __future__ import print_function from flask import Flask from flask import request import argparse import json import sys from safirnotification.alarm.alarm_handler import AlarmHandler from safirnotification.utils import log from safirnotification.utils.opts import ConfigOpts LOG = log.get_logger() Flask.get ...
27.942029
73
0.608921
7eabea74e332a66d58fe03d710b978a1be03e172
4,259
py
Python
slack_primitive_cli/command/chat.py
yuji38kwmt/slack-primitive-cli
12e942d6ace6b71b874f0648bb3b6b5ac6c590a4
[ "MIT" ]
null
null
null
slack_primitive_cli/command/chat.py
yuji38kwmt/slack-primitive-cli
12e942d6ace6b71b874f0648bb3b6b5ac6c590a4
[ "MIT" ]
50
2020-06-29T06:17:23.000Z
2022-03-28T15:01:33.000Z
slack_primitive_cli/command/chat.py
yuji38kwmt/slack-primitive-cli
12e942d6ace6b71b874f0648bb3b6b5ac6c590a4
[ "MIT" ]
null
null
null
import logging import click import slack_sdk from slack_primitive_cli.common.utils import TOKEN_ENVVAR, TOKEN_HELP_MESSAGE, set_logger logger = logging.getLogger(__name__)
36.401709
119
0.702043
7eac896f2fd732187498b92ce5df251097f85bad
340
py
Python
codewars/7 kyu/convert-number-to-string.py
sirken/coding-practice
9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab
[ "MIT" ]
null
null
null
codewars/7 kyu/convert-number-to-string.py
sirken/coding-practice
9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab
[ "MIT" ]
null
null
null
codewars/7 kyu/convert-number-to-string.py
sirken/coding-practice
9c5e23b2c24f525a89a5e1d15ce3aec3ad1a01ab
[ "MIT" ]
null
null
null
from Test import Test, Test as test ''' We need a function that can transform a number into a string. What ways of achieving this do you know? Examples: number_to_string(123) /* returns '123' */ number_to_string(999) /* returns '999' */ ''' test.assert_equals(number_to_string(67), '67');
21.25
61
0.723529
7eae404b9ffdd90228dcb56445e0fd056fc2c5bc
4,255
py
Python
hummingbot/connector/derivative/binance_perpetual/binance_perpetual_utils.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
2
2022-03-03T10:00:27.000Z
2022-03-08T13:57:56.000Z
hummingbot/connector/derivative/binance_perpetual/binance_perpetual_utils.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
6
2022-01-31T15:44:54.000Z
2022-03-06T04:27:12.000Z
hummingbot/connector/derivative/binance_perpetual/binance_perpetual_utils.py
BGTCapital/hummingbot
2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242
[ "Apache-2.0" ]
1
2022-03-31T07:04:49.000Z
2022-03-31T07:04:49.000Z
import os import socket from typing import Any, Dict, Optional import hummingbot.connector.derivative.binance_perpetual.constants as CONSTANTS from hummingbot.client.config.config_var import ConfigVar from hummingbot.client.config.config_methods import using_exchange from hummingbot.core.utils.tracking_nonce import g...
37.324561
108
0.725969
7eae90d3c01eaa4dde6516942f1304a7d7bfc497
1,247
py
Python
Curso Udemy 2022/Curso_Luiz_Otavio/aula_75_ex.py
Matheusfarmaceutico/Exercicios-Python
d1821bd9d11ea0707074c5fe11dead2e85476ebd
[ "MIT" ]
null
null
null
Curso Udemy 2022/Curso_Luiz_Otavio/aula_75_ex.py
Matheusfarmaceutico/Exercicios-Python
d1821bd9d11ea0707074c5fe11dead2e85476ebd
[ "MIT" ]
null
null
null
Curso Udemy 2022/Curso_Luiz_Otavio/aula_75_ex.py
Matheusfarmaceutico/Exercicios-Python
d1821bd9d11ea0707074c5fe11dead2e85476ebd
[ "MIT" ]
null
null
null
""" Considerando duas listas de inteiros ou floats (lista A e lista B) Some os valores nas listas retornando uma nova lista com os valores somados: Se uma lista for maior que a outra, a soma s vai considerar o tamanho da menor. Exemplo: lista_a = [1, 2, 3, 4, 5, 6, 7] lista_b = [1, 2, 3, 4]""" separador() #Minh...
26.531915
122
0.690457
7eaf36bdb4bd0189fe015e24c185548232a56d8e
4,740
py
Python
Functions_in_Python.py
sichkar-valentyn/Functions_in_Python
896fdf6fbe186fe319f5ccaddf4d3952d78c32b0
[ "MIT" ]
1
2021-05-13T20:31:37.000Z
2021-05-13T20:31:37.000Z
Functions_in_Python.py
sichkar-valentyn/Functions_in_Python
896fdf6fbe186fe319f5ccaddf4d3952d78c32b0
[ "MIT" ]
null
null
null
Functions_in_Python.py
sichkar-valentyn/Functions_in_Python
896fdf6fbe186fe319f5ccaddf4d3952d78c32b0
[ "MIT" ]
null
null
null
# File: Functions_in_Python.py # Description: Creating functions in Python # Environment: Spyder IDE in Anaconda environment # # MIT License # Copyright (c) 2018 Valentyn N Sichkar # github.com/sichkar-valentyn # # Reference to: # [1] Valentyn N Sichkar. Creating functions in Python // GitHub platform [Electronic resou...
41.946903
186
0.611181
7eb022ba017c96463108c7ec8dbea1b02a79b2bf
1,571
py
Python
jaseci_serv/jaseci_serv/base/admin.py
Gorgeous-Patrick/jaseci
b423165fefbbc9574cd4467ee05728add7f47e5a
[ "MIT" ]
6
2021-10-30T03:35:36.000Z
2022-02-10T02:06:18.000Z
jaseci_serv/jaseci_serv/base/admin.py
Gorgeous-Patrick/jaseci
b423165fefbbc9574cd4467ee05728add7f47e5a
[ "MIT" ]
85
2021-10-29T22:47:39.000Z
2022-03-31T06:11:52.000Z
jaseci_serv/jaseci_serv/base/admin.py
Gorgeous-Patrick/jaseci
b423165fefbbc9574cd4467ee05728add7f47e5a
[ "MIT" ]
12
2021-11-03T17:29:22.000Z
2022-03-30T16:01:53.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from jaseci_serv.base import models admin.site.register(models.User, UserAdmin) admin.site.register(models.JaseciObject, JaseciObjectAdmin) admin.site.register(mo...
24.936508
86
0.551878
7eb19e8b95185663f63c59aabd713e0c10af913c
1,551
py
Python
app.py
CoDeRgAnEsh/Rent-flask
1a796196ebe613c7cea77ad6ac96ca91ca98070f
[ "MIT" ]
3
2018-10-21T08:18:16.000Z
2019-05-20T19:43:23.000Z
app.py
CoDeRgAnEsh/Rent-flask
1a796196ebe613c7cea77ad6ac96ca91ca98070f
[ "MIT" ]
null
null
null
app.py
CoDeRgAnEsh/Rent-flask
1a796196ebe613c7cea77ad6ac96ca91ca98070f
[ "MIT" ]
null
null
null
#!/usr/bin env python import numpy as np import pandas as pd from flask import Flask, abort, jsonify, request import pickle # from flask_accept import accept from flask_cors import CORS with open('model.pkl', 'rb') as model: xgb_model = pickle.load(model) features = ['longitude', 'latitude', 'gym', 'lift', 'swi...
26.741379
96
0.638298
7eb2e5d8b39a38645fd5ca261b5ad38bc6b3a64e
17,580
py
Python
deploy.py
NASA-PDS/planetarydata.org
16731a251c22408b433117f7f01e29d004f11467
[ "Apache-2.0" ]
null
null
null
deploy.py
NASA-PDS/planetarydata.org
16731a251c22408b433117f7f01e29d004f11467
[ "Apache-2.0" ]
5
2021-03-19T21:41:19.000Z
2022-02-11T14:55:14.000Z
deploy.py
NASA-PDS/planetarydata.org
16731a251c22408b433117f7f01e29d004f11467
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # Copyright 2014 California Institute of Technology. ALL RIGHTS # RESERVED. U.S. Government Sponsorship acknowledged. # # deploy.py - Deploy the IPDA site into operations import argparse, sys, logging, os, os.path, re, subprocess, pwd, urllib2, contextlib, tempfile, tarfile, str...
46.141732
121
0.659158
7eb37405a08b46272d97b80f6cb1504d1a02dffc
884
py
Python
aoc2020/4/d4_2.py
kewbish/ka-algorithms
7a893fdaebd99530eaf0d9633c2721763707e92f
[ "MIT" ]
null
null
null
aoc2020/4/d4_2.py
kewbish/ka-algorithms
7a893fdaebd99530eaf0d9633c2721763707e92f
[ "MIT" ]
null
null
null
aoc2020/4/d4_2.py
kewbish/ka-algorithms
7a893fdaebd99530eaf0d9633c2721763707e92f
[ "MIT" ]
null
null
null
from re import match with open("input.txt") as x: lines = x.read().strip().split("\n\n") lines = [line.replace("\n", " ") for line in lines] valid = 0 fields = { 'byr': lambda x: 1920 <= int(x) <= 2002, 'iyr': lambda x: 2010 <= int(x) <= 2020, 'eyr': lambda x: 2020 <= int(x) <= 2030, ...
35.36
120
0.519231
7eb4d2c3850b1b1666b3b1e3ca926f8da835b076
1,321
py
Python
test_inference.py
ilyes64/DenseNet-TF2
0081ec8823bd6af46a2948f3dc837e1302a8db73
[ "MIT" ]
null
null
null
test_inference.py
ilyes64/DenseNet-TF2
0081ec8823bd6af46a2948f3dc837e1302a8db73
[ "MIT" ]
null
null
null
test_inference.py
ilyes64/DenseNet-TF2
0081ec8823bd6af46a2948f3dc837e1302a8db73
[ "MIT" ]
null
null
null
"""Test ImageNet pretrained DenseNet""" import cv2 import numpy as np from tensorflow.keras.optimizers import SGD import tensorflow.keras.backend as K # We only test DenseNet-121 in this script for demo purpose from densenet121 import DenseNet im = cv2.resize(cv2.imread('resources/cat.jpg'), (224, 224)).astype(np.f...
32.219512
83
0.718395
7eb546f1428e9e46c412c95c4b290bb93627a3b7
713
py
Python
global_id/tests/utils/callers/guid_caller.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
global_id/tests/utils/callers/guid_caller.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
global_id/tests/utils/callers/guid_caller.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
from django.urls.base import reverse from rest_framework import status from global_id.urls import app_name from core.tests.utils import BaseCaller from ..creators import create_guid
31
63
0.678822
7eb5995e03f60c1e708787551eef79b2faedc457
132
py
Python
Neural Network/NNToyFx/python/activations.py
stormy-ua/MachineLearning
e03a50e4c9fab8c7c4232ae0c305f6e7b48134bf
[ "MIT" ]
null
null
null
Neural Network/NNToyFx/python/activations.py
stormy-ua/MachineLearning
e03a50e4c9fab8c7c4232ae0c305f6e7b48134bf
[ "MIT" ]
null
null
null
Neural Network/NNToyFx/python/activations.py
stormy-ua/MachineLearning
e03a50e4c9fab8c7c4232ae0c305f6e7b48134bf
[ "MIT" ]
null
null
null
from simulation import *
22
48
0.704545
7eb6be94d7cf79345f60800447c7a1dfb1e58dc6
1,126
py
Python
dev/umm-exploration-has-calculator.py
fangohr/oommf-python
9c9f617c4efe4b488f01703186c1126070ea5d3f
[ "BSD-2-Clause" ]
7
2016-01-25T09:36:46.000Z
2021-09-03T01:42:19.000Z
dev/umm-exploration-has-calculator.py
fangohr/oommf-python
9c9f617c4efe4b488f01703186c1126070ea5d3f
[ "BSD-2-Clause" ]
1
2016-03-07T17:11:44.000Z
2016-03-07T17:11:44.000Z
dev/umm-exploration-has-calculator.py
fangohr/oommf-python
9c9f617c4efe4b488f01703186c1126070ea5d3f
[ "BSD-2-Clause" ]
9
2015-09-30T10:53:06.000Z
2021-05-12T20:21:52.000Z
#a = AbstractMicromagneticModell('simulation-name', 10) #print(a) #a.hysteresis([10, 20]) ocalc = OOMMFC() o = MicromagneticModell(name='test', Ms=42, calc=ocalc) print(o) o.relax() #f = FIDIMAGC(name='fidimag-simulation', Ms=8e6) #print(o) #f.relax() #o.relax() #o.hysteresis([10, 20, 30])
21.245283
72
0.617229
7eb7565f96b0068b9fddd9b40e2803cbd414b282
7,225
py
Python
Tools/Converters/tetgen2ply.py
dbungert/opensurgsim
bd30629f2fd83f823632293959b7654275552fa9
[ "Apache-2.0" ]
24
2015-01-19T16:18:59.000Z
2022-03-13T03:29:11.000Z
Tools/Converters/tetgen2ply.py
dbungert/opensurgsim
bd30629f2fd83f823632293959b7654275552fa9
[ "Apache-2.0" ]
3
2018-12-21T14:54:08.000Z
2022-03-14T12:38:07.000Z
Tools/Converters/tetgen2ply.py
dbungert/opensurgsim
bd30629f2fd83f823632293959b7654275552fa9
[ "Apache-2.0" ]
8
2015-04-10T19:45:36.000Z
2022-02-02T17:00:59.000Z
#!/usr/bin/python # This file is a part of the OpenSurgSim project. # Copyright 2012-2015, SimQuest Solutions Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
43.005952
139
0.695779
7eb76c71fc078ebcda0b4348976ac428e72ebba9
2,848
py
Python
movie/App/forms/user.py
caoluyang8/movie
6f655706c2f50e21bdd34d210393e842fd2b26ba
[ "BSD-2-Clause" ]
null
null
null
movie/App/forms/user.py
caoluyang8/movie
6f655706c2f50e21bdd34d210393e842fd2b26ba
[ "BSD-2-Clause" ]
null
null
null
movie/App/forms/user.py
caoluyang8/movie
6f655706c2f50e21bdd34d210393e842fd2b26ba
[ "BSD-2-Clause" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField,PasswordField,SubmitField,BooleanField from flask_wtf.file import FileAllowed,FileRequired,FileField from wtforms.validators import DataRequired,Length,EqualTo,Email,ValidationError from App.models import User from App.extensions import file
59.333333
221
0.726475
0e18ce228904236db3f530d334423f0fcfc1bd83
443
py
Python
doc/source/user/examples/cleanup-servers.py
noironetworks/shade
e46878bae44e7daebf32c0aeaeffea0011542525
[ "Apache-2.0" ]
96
2015-01-29T20:12:08.000Z
2019-01-28T22:17:13.000Z
doc/source/user/examples/cleanup-servers.py
noironetworks/shade
e46878bae44e7daebf32c0aeaeffea0011542525
[ "Apache-2.0" ]
7
2015-08-14T18:47:28.000Z
2019-02-18T16:32:36.000Z
doc/source/user/examples/cleanup-servers.py
noironetworks/shade
e46878bae44e7daebf32c0aeaeffea0011542525
[ "Apache-2.0" ]
88
2015-05-11T17:20:52.000Z
2019-04-04T03:23:30.000Z
import shade # Initialize and turn on debug logging shade.simple_logging(debug=True) for cloud_name, region_name in [ ('my-vexxhost', 'ca-ymq-1'), ('my-citycloud', 'Buf1'), ('my-internap', 'ams01')]: # Initialize cloud cloud = shade.openstack_cloud(cloud=cloud_name, region_name=region_...
31.642857
76
0.683973
0e18f19e2f26af45d020c41ca5247b1bdd969657
151
py
Python
abacus_tpot/tpot_config.py
workforce-data-initiative/tpot-abacus
a5abf4af544693e0c58f7891785718e7bc606ed6
[ "Apache-2.0" ]
1
2019-09-09T20:52:49.000Z
2019-09-09T20:52:49.000Z
abacus_tpot/tpot_config.py
workforce-data-initiative/tpot-abacus
a5abf4af544693e0c58f7891785718e7bc606ed6
[ "Apache-2.0" ]
43
2018-02-11T11:24:18.000Z
2022-02-22T05:32:16.000Z
abacus_tpot/tpot_config.py
workforce-data-initiative/tpot-abacus
a5abf4af544693e0c58f7891785718e7bc606ed6
[ "Apache-2.0" ]
null
null
null
# eventually we will have a proper config ANONYMIZATION_THRESHOLD = 10 WAREHOUSE_URI = 'postgres://localhost' WAGE_RECORD_URI = 'postgres://localhost'
30.2
41
0.794702
0e1b5fee094ee42b7bc8cc6dd1d5a713200d6a4a
837
py
Python
tileServer/scripts/exportZoomLevels.py
greenhalos/tile-server
cc88f50839e70eeed359dfa09a63386e8c06b9e7
[ "Apache-2.0" ]
null
null
null
tileServer/scripts/exportZoomLevels.py
greenhalos/tile-server
cc88f50839e70eeed359dfa09a63386e8c06b9e7
[ "Apache-2.0" ]
null
null
null
tileServer/scripts/exportZoomLevels.py
greenhalos/tile-server
cc88f50839e70eeed359dfa09a63386e8c06b9e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json import yaml result = {} with open('app/static/greenhalos-style.json') as json_file: data = json.load(json_file) for layer in data['layers']: if 'source-layer' in layer: minzoom = layer.get('minzoom', 0) maxzoom = layer.get('maxzoom', 24) ...
31
59
0.537634
0e1b623930809e5794e5e6725bf4a73e58a166cd
14,203
py
Python
formats/dcc_parser.py
C3RV1/LaytonEditor
51e1a9a372a8acdaa4183ae008235a721dc56cdc
[ "Unlicense" ]
6
2019-12-24T00:18:54.000Z
2022-02-28T17:09:22.000Z
formats/dcc_parser.py
C3RV1/LaytonEditor
51e1a9a372a8acdaa4183ae008235a721dc56cdc
[ "Unlicense" ]
1
2021-08-18T11:10:35.000Z
2021-08-18T17:32:21.000Z
formats/dcc_parser.py
C3RV1/LaytonEditor
51e1a9a372a8acdaa4183ae008235a721dc56cdc
[ "Unlicense" ]
2
2021-01-17T10:42:48.000Z
2021-08-18T11:10:54.000Z
# Data and Code Container (DCC) format by Cervi import typing """if __name__ == "__main__": file = open("event_example.dcc") code = file.read() file.close() parser = Parser() parser.parse(code) # parser.serialize() # parser.parse() print(parser.code)"""
37.376316
104
0.472224
0e1b7b2ebbd9b954f9c3ccf6192469e079ab9373
4,245
py
Python
flock/__init__.py
fishface60/python-flock
320fcc630c58852fa02653dbcc9cd80ff1304b46
[ "0BSD" ]
null
null
null
flock/__init__.py
fishface60/python-flock
320fcc630c58852fa02653dbcc9cd80ff1304b46
[ "0BSD" ]
null
null
null
flock/__init__.py
fishface60/python-flock
320fcc630c58852fa02653dbcc9cd80ff1304b46
[ "0BSD" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2015, Richard Maw # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO...
28.877551
81
0.725324
0e1c11840edfb52bafea761c6a2698a9114b7c8c
10,333
py
Python
uqtie/UqtStylesheet.py
langrind/UQtie
032693695117083cdd715beb2a679e4ccee060d8
[ "MIT" ]
null
null
null
uqtie/UqtStylesheet.py
langrind/UQtie
032693695117083cdd715beb2a679e4ccee060d8
[ "MIT" ]
null
null
null
uqtie/UqtStylesheet.py
langrind/UQtie
032693695117083cdd715beb2a679e4ccee060d8
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Class that manages a UQtie application's stylesheet There are advantages and disadvantages to Qt stylesheets, Qt settings, and Qt Style. They aren't mutually exclusive, and they don't all play together either. This module attempts to make it possible to use a stylesheet w...
36.512367
112
0.635246
0e1e160e8d90a3c603ba44d2101e9bfc5828fd10
7,104
py
Python
clickmodel-experiments/scripts/model/ClickModelExperiment.py
nut-hatch/LOVBench
365ea4ad0d6258b840439506ce97acb3827c39e6
[ "Apache-2.0" ]
null
null
null
clickmodel-experiments/scripts/model/ClickModelExperiment.py
nut-hatch/LOVBench
365ea4ad0d6258b840439506ce97acb3827c39e6
[ "Apache-2.0" ]
1
2021-08-09T20:59:22.000Z
2021-08-09T20:59:22.000Z
clickmodel-experiments/scripts/model/ClickModelExperiment.py
nut-hatch/LOVBench
365ea4ad0d6258b840439506ce97acb3827c39e6
[ "Apache-2.0" ]
null
null
null
__author__ = 'Anonymous' import time import csv import os.path import pyclick from pyclick.utils.YandexRelPredChallengeParser import YandexRelPredChallengeParser from pyclick.utils.Utils import Utils from pyclick.click_models.Evaluation import LogLikelihood, Perplexity from pyclick.click_models.UBM import UBM from py...
48.326531
265
0.6692
0e1e867c79f973710511eae3645a7ccaa06989d8
242
py
Python
archive/2016/week5/homework/even.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
6
2017-11-08T14:04:39.000Z
2019-03-24T22:11:04.000Z
archive/2016/week5/homework/even.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
null
null
null
archive/2016/week5/homework/even.py
YAtOff/python0
b5af5004131d64dd52d42746eddb72b6c43a13c7
[ "Apache-2.0" ]
7
2015-10-27T09:04:58.000Z
2019-03-03T14:18:26.000Z
""" `is_even`, `True` `False` . >>> is_even(4) True >>> is_even(5) False """
18.615385
79
0.652893
0e1f37ae758638a4fc7ba5ee3a4f94668d053d38
2,165
py
Python
piws/views/actions.py
neurospin/piws
4ec6f60c6343623a82761c90c74642b4b372ffd1
[ "CECILL-B" ]
null
null
null
piws/views/actions.py
neurospin/piws
4ec6f60c6343623a82761c90c74642b4b372ffd1
[ "CECILL-B" ]
9
2015-05-18T09:04:35.000Z
2017-03-24T10:47:23.000Z
piws/views/actions.py
neurospin/piws
4ec6f60c6343623a82761c90c74642b4b372ffd1
[ "CECILL-B" ]
17
2015-03-16T08:27:47.000Z
2017-08-04T16:26:29.000Z
########################################################################## # NSAp - Copyright (C) CEA, 2013 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ##########...
28.116883
79
0.627714
0e1f4a5b7788dcd9e9439809509e149a2ed438c4
505
py
Python
events/migrations/0043_remove_premium_restrictions.py
alysivji/GetTogether
403d9945fff019701de41d081ad4452e771e1ce1
[ "BSD-2-Clause" ]
446
2018-01-21T09:22:41.000Z
2022-03-25T17:46:12.000Z
events/migrations/0043_remove_premium_restrictions.py
alysivji/GetTogether
403d9945fff019701de41d081ad4452e771e1ce1
[ "BSD-2-Clause" ]
272
2018-01-03T16:55:39.000Z
2022-03-11T23:12:30.000Z
events/migrations/0043_remove_premium_restrictions.py
alysivji/GetTogether
403d9945fff019701de41d081ad4452e771e1ce1
[ "BSD-2-Clause" ]
100
2018-01-27T02:04:15.000Z
2021-09-09T09:02:21.000Z
# Generated by Django 2.0 on 2018-08-25 14:19 from django.db import migrations
31.5625
74
0.710891
0e1fd30efaef6619653d82bc4e1ec4b62cc2fe4c
1,904
py
Python
examples/Utopia2_planning_single_node_DN/tutorial2.py
AAmedeo/Hypatia
22e14bc9bbb043c4d7dbf5b881d9dadbce6c0de1
[ "Apache-2.0" ]
5
2021-12-17T15:16:12.000Z
2022-03-24T10:42:33.000Z
examples/Utopia2_planning_single_node_DN/tutorial2.py
AAmedeo/Hypatia
22e14bc9bbb043c4d7dbf5b881d9dadbce6c0de1
[ "Apache-2.0" ]
10
2022-01-11T09:44:52.000Z
2022-03-30T12:29:50.000Z
examples/Utopia2_planning_single_node_DN/tutorial2.py
AAmedeo/Hypatia
22e14bc9bbb043c4d7dbf5b881d9dadbce6c0de1
[ "Apache-2.0" ]
3
2021-12-17T15:30:12.000Z
2022-03-23T15:37:42.000Z
from hypatia import Model,Plotter #%% utopia = Model( path = 'sets', mode = 'Planning' ) #%% #utopia.create_data_excels( # path = r'parameters' #) #%% utopia.read_input_data( path = r'parameters' ) #%% utopia.run( solver = 'scipy', verbosity = True, ) #%% utopia.to_csv(path='results') #%% #uto...
25.052632
131
0.719013
0e224344c163f81deb574207f38b8233548b28f8
119
bzl
Python
test/com/facebook/buck/parser/testdata/disable_implicit_native_rules/skylark/implicit_in_extension_bzl/extension.bzl
Unknoob/buck
2dfc734354b326f2f66896dde7746a11965d5a13
[ "Apache-2.0" ]
8,027
2015-01-02T05:31:44.000Z
2022-03-31T07:08:09.000Z
test/com/facebook/buck/parser/testdata/disable_implicit_native_rules/skylark/implicit_in_extension_bzl/extension.bzl
Unknoob/buck
2dfc734354b326f2f66896dde7746a11965d5a13
[ "Apache-2.0" ]
2,355
2015-01-01T15:30:53.000Z
2022-03-30T20:21:16.000Z
test/com/facebook/buck/parser/testdata/disable_implicit_native_rules/skylark/implicit_in_extension_bzl/extension.bzl
Unknoob/buck
2dfc734354b326f2f66896dde7746a11965d5a13
[ "Apache-2.0" ]
1,280
2015-01-09T03:29:04.000Z
2022-03-30T15:14:14.000Z
""" Example module """ def java_maker(*args, **kwargs): """ Make you a java """ java_library(*args, **kwargs)
19.833333
33
0.588235
0e22d4557755570980a88c3dd6efa6cf9f1ddd9e
3,600
py
Python
backend/config/settings/base.py
r0tii/process-status-viewer
6c94a7a6f5e37f37f63d6140c806a0b6fc49ae1c
[ "MIT" ]
null
null
null
backend/config/settings/base.py
r0tii/process-status-viewer
6c94a7a6f5e37f37f63d6140c806a0b6fc49ae1c
[ "MIT" ]
null
null
null
backend/config/settings/base.py
r0tii/process-status-viewer
6c94a7a6f5e37f37f63d6140c806a0b6fc49ae1c
[ "MIT" ]
null
null
null
""" Base settings to build other settings files upon. """ from pathlib import Path import environ env = environ.Env() # GENERAL # ------------------------------------------------------------------------- BASE_DIR = Path(__file__).resolve(strict=True).parent.parent.parent PROJECT_NAME = "process_status_monitoring" ...
30.252101
99
0.536667
0e24145bbea1ff58122f48a87e0382857109d106
2,039
py
Python
virtual_agent.py
kavimathi26-2001/virtual-agent-built.
df553a16ef4e7e32a93b35a3d55e6891f21ac98d
[ "Apache-2.0" ]
23
2021-10-01T13:10:29.000Z
2021-10-30T07:57:32.000Z
virtual_agent.py
kavimathi26-2001/virtual-agent-built.
df553a16ef4e7e32a93b35a3d55e6891f21ac98d
[ "Apache-2.0" ]
null
null
null
virtual_agent.py
kavimathi26-2001/virtual-agent-built.
df553a16ef4e7e32a93b35a3d55e6891f21ac98d
[ "Apache-2.0" ]
28
2021-09-13T05:41:56.000Z
2021-10-30T07:31:46.000Z
#import all the libraries required import csv, pickle, numpy as np, os from sentence_transformers import SentenceTransformer, util #Virtual Agent Model
49.731707
115
0.62972
0e2735db31e23d6ef2afd7530322a682fcd103d9
2,703
py
Python
hyperloglog/hashfunctions.py
mlkra/various-algorithms
9cb2d21fe9ec0613c88e70f70e0ff1d471e43079
[ "MIT" ]
2
2021-12-04T16:12:03.000Z
2021-12-25T06:57:27.000Z
mincount/hashfunctions.py
mlkra/various-algorithms
9cb2d21fe9ec0613c88e70f70e0ff1d471e43079
[ "MIT" ]
null
null
null
mincount/hashfunctions.py
mlkra/various-algorithms
9cb2d21fe9ec0613c88e70f70e0ff1d471e43079
[ "MIT" ]
null
null
null
from typing import Callable import hashlib import zlib hash_functions = { "md5": md5, "sha1": sha1, "sha224": sha224, "sha256": sha256, "sha384": sha384, "sha512": sha512, "blake2b": blake2b, "blake2s": blake2s, "sha3_224": sha3_224, "sha3_256": sha3_256, ...
22.525
101
0.594895
0e282455991d9cc519b5a1a793207bc93c3d9068
793
py
Python
data_loaders/data_loader_interface.py
jennis0/pdf2vtt
4aad37ef3dfce4d83f3a2744856879598cd4446f
[ "MIT" ]
null
null
null
data_loaders/data_loader_interface.py
jennis0/pdf2vtt
4aad37ef3dfce4d83f3a2744856879598cd4446f
[ "MIT" ]
null
null
null
data_loaders/data_loader_interface.py
jennis0/pdf2vtt
4aad37ef3dfce4d83f3a2744856879598cd4446f
[ "MIT" ]
null
null
null
import abc from typing import List from utils.datatypes import Source
36.045455
93
0.706179
0e28d4b2f8c651a0637bb6e71017d6d807b4a977
247
py
Python
Learn/30-Days-Of-Code/Day 28/regexdb.py
Adriel-M/HackerRank
0f361bb7eaa3d2db3dd96de511c4b7fa02efa8c5
[ "MIT" ]
1
2021-11-24T16:43:10.000Z
2021-11-24T16:43:10.000Z
Learn/30-Days-Of-Code/Day 28/regexdb.py
Adriel-M/HackerRank
0f361bb7eaa3d2db3dd96de511c4b7fa02efa8c5
[ "MIT" ]
null
null
null
Learn/30-Days-Of-Code/Day 28/regexdb.py
Adriel-M/HackerRank
0f361bb7eaa3d2db3dd96de511c4b7fa02efa8c5
[ "MIT" ]
null
null
null
N = int(input().strip()) names = [] for _ in range(N): name,email = input().strip().split(' ') name,email = [str(name),str(email)] if email.endswith("@gmail.com"): names.append(name) names.sort() for n in names: print(n)
19
43
0.578947
0e2930d0e963e50e57e9afabe5382cdd9bed7229
4,176
py
Python
dbglang/dbp.py
thautwarm/dbg-lang
22b5230bc1658494b93a2741aab3ef63a06fdee3
[ "MIT" ]
1
2018-04-09T11:43:52.000Z
2018-04-09T11:43:52.000Z
dbglang/dbp.py
thautwarm/dbg-lang
22b5230bc1658494b93a2741aab3ef63a06fdee3
[ "MIT" ]
null
null
null
dbglang/dbp.py
thautwarm/dbg-lang
22b5230bc1658494b93a2741aab3ef63a06fdee3
[ "MIT" ]
1
2019-06-21T08:33:24.000Z
2019-06-21T08:33:24.000Z
from Ruikowa.ObjectRegex.Node import Ref, AstParser, SeqParser, LiteralParser, CharParser, MetaInfo, DependentAstParser try: from .etoken import token except: from etoken import token import re namespace = globals() recurSearcher = set() PrimaryDefList = AstParser([Ref('FieldDef'), SeqParser([LiteralParser(',...
64.246154
120
0.608477
0e2afcb852554bb61271877076847899b292fc37
4,128
py
Python
App/components/combEntrada.py
Alexfm101/automata
a39760a04d384ef96ce49cac2517d7248380bd72
[ "MIT" ]
null
null
null
App/components/combEntrada.py
Alexfm101/automata
a39760a04d384ef96ce49cac2517d7248380bd72
[ "MIT" ]
null
null
null
App/components/combEntrada.py
Alexfm101/automata
a39760a04d384ef96ce49cac2517d7248380bd72
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * data_edoSiguiente = [[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4], [1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4], [1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4],[1, 2, 3, 4], [1, 2, 3, 4],[1...
33.024
83
0.428052
0e2b1e0932a1e36d8ff5f038e7d31ff803df6266
1,794
py
Python
pythonAlgorithm/datastrcture/Kth Smallest Number in Sorted Matrix.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
1
2020-09-15T07:58:55.000Z
2020-09-15T07:58:55.000Z
pythonAlgorithm/datastrcture/Kth Smallest Number in Sorted Matrix.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
null
null
null
pythonAlgorithm/datastrcture/Kth Smallest Number in Sorted Matrix.py
Sky-zzt/lintcodePractice
d6436b296c5865d85e55c8ad4fcdbb0165d4ebb1
[ "MIT" ]
null
null
null
import heapq
23.92
70
0.544593
0e2c27724ea07da3d95021b9be790ef2004472e6
2,158
py
Python
thriftpy2/contrib/aio/transport/framed.py
JonnoFTW/thriftpy2
3b4d28d611a752f8796604ee274f03c517670a43
[ "MIT" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
thriftpy2/contrib/aio/transport/framed.py
JonnoFTW/thriftpy2
3b4d28d611a752f8796604ee274f03c517670a43
[ "MIT" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
thriftpy2/contrib/aio/transport/framed.py
JonnoFTW/thriftpy2
3b4d28d611a752f8796604ee274f03c517670a43
[ "MIT" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import struct import asyncio from io import BytesIO from .base import TAsyncTransportBase, readall from .buffered import TAsyncBufferedTransport def getvalue(self): return self._trans.getvalue() class TAsyncFramedTransportFactory(object):...
28.773333
79
0.647822
0e2d0a35bac66187f607550adfc8a5821291ee5b
3,493
py
Python
test/test-funders.py
yurivict/habanero
857897a88811153f7460472219fd78d4e68bdc12
[ "MIT" ]
null
null
null
test/test-funders.py
yurivict/habanero
857897a88811153f7460472219fd78d4e68bdc12
[ "MIT" ]
1
2015-10-07T02:20:24.000Z
2015-10-07T02:20:24.000Z
test/test-funders.py
yurivict/habanero
857897a88811153f7460472219fd78d4e68bdc12
[ "MIT" ]
null
null
null
import pytest import os import requests from habanero import exceptions, Crossref from requests.exceptions import HTTPError cr = Crossref()
26.263158
87
0.681363
0e2d51cb9fe9bb1546fc7bbea2cb77d09472d09a
812
py
Python
geomagio/api/ws/algorithms.py
alejandrodelcampillo/geomag-algorithms
43a734d63a8eb2a696f14237e0054e21d36de7c3
[ "CC0-1.0" ]
1
2021-02-22T23:45:22.000Z
2021-02-22T23:45:22.000Z
geomagio/api/ws/algorithms.py
alejandrodelcampillo/geomag-algorithms
43a734d63a8eb2a696f14237e0054e21d36de7c3
[ "CC0-1.0" ]
1
2021-09-08T03:42:52.000Z
2021-09-08T03:42:52.000Z
geomagio/api/ws/algorithms.py
alejandrodelcampillo/geomag-algorithms
43a734d63a8eb2a696f14237e0054e21d36de7c3
[ "CC0-1.0" ]
null
null
null
from fastapi import APIRouter, Depends from starlette.responses import Response from ... import TimeseriesFactory from ...algorithm import DbDtAlgorithm from .DataApiQuery import DataApiQuery from .data import format_timeseries, get_data_factory, get_data_query, get_timeseries router = APIRouter()
29
85
0.748768
0e2d851e83694bcead0aaa245c930030f6827cc1
1,478
py
Python
lesson3/stage3/src/jvm/udacity/storm/resources/urltext.py
haitanle/storm-twitter
b68c90129d31eb11808922ec56ac9ac6535fdab2
[ "MIT" ]
null
null
null
lesson3/stage3/src/jvm/udacity/storm/resources/urltext.py
haitanle/storm-twitter
b68c90129d31eb11808922ec56ac9ac6535fdab2
[ "MIT" ]
null
null
null
lesson3/stage3/src/jvm/udacity/storm/resources/urltext.py
haitanle/storm-twitter
b68c90129d31eb11808922ec56ac9ac6535fdab2
[ "MIT" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.190476
105
0.699594
0e2e642553f3d2eca725be5123dcabd2612e0fef
598
py
Python
ncl/property.py
MichaelBittencourt/NCL-Generator-API
8eecf2ea4948354fae9f64b68da2f24ad0663d60
[ "MIT" ]
1
2020-06-26T09:59:27.000Z
2020-06-26T09:59:27.000Z
ncl/property.py
MichaelBittencourt/NCL-Generator-API
8eecf2ea4948354fae9f64b68da2f24ad0663d60
[ "MIT" ]
null
null
null
ncl/property.py
MichaelBittencourt/NCL-Generator-API
8eecf2ea4948354fae9f64b68da2f24ad0663d60
[ "MIT" ]
1
2020-01-07T23:16:11.000Z
2020-01-07T23:16:11.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright 2019 Michael Bittencourt <mchl.bittencourt@gmail.com> # # Distributed under terms of the MIT license. """ """ from ncl.abstractelement import AbstractElement
23.92
73
0.633779
0e2f13b1e7a11523bafcf1c9ffaaf118b159dadf
372
py
Python
DSTK/Timeseries/recurrence_plots.py
jotterbach/dstk
d371262ca09527fb8279f066b564abf5a1fe28df
[ "MIT" ]
12
2017-01-10T19:50:32.000Z
2020-03-30T20:28:31.000Z
DSTK/Timeseries/recurrence_plots.py
jotterbach/dstk
d371262ca09527fb8279f066b564abf5a1fe28df
[ "MIT" ]
7
2016-10-12T16:21:58.000Z
2016-12-01T00:34:54.000Z
DSTK/Timeseries/recurrence_plots.py
jotterbach/dstk
d371262ca09527fb8279f066b564abf5a1fe28df
[ "MIT" ]
8
2016-08-22T11:23:12.000Z
2020-03-13T23:18:39.000Z
import _recurrence_map import numpy as np
23.25
54
0.725806
0e2f2f3cf1a3df42e62c08dda70b278f740b11d2
2,755
py
Python
preprocess.py
costagreg/mnist-handwritten-ml
c3e26eb7ab653afa6f9e9dc91f5a438026b64329
[ "MIT" ]
null
null
null
preprocess.py
costagreg/mnist-handwritten-ml
c3e26eb7ab653afa6f9e9dc91f5a438026b64329
[ "MIT" ]
1
2019-06-23T16:41:26.000Z
2019-08-12T09:54:52.000Z
preprocess.py
costagreg/mnist-handwritten-ml
c3e26eb7ab653afa6f9e9dc91f5a438026b64329
[ "MIT" ]
1
2019-08-12T06:38:35.000Z
2019-08-12T06:38:35.000Z
import cv2 import math import numpy as np import os import matplotlib.pyplot as plt from scipy import ndimage from utils import ValueInvert # TO-DO: Refactor this with np.nonzero??
26.490385
77
0.56951