hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
c0d6359b632149f00571f180c2d19ef4ae5f51d3
1,130
py
Python
tests/test_multiple_quality.py
pantlavanya/nem-reader
5405a5cba4bb8ebdad05c28455d12bb34a6d3ce5
[ "MIT" ]
null
null
null
tests/test_multiple_quality.py
pantlavanya/nem-reader
5405a5cba4bb8ebdad05c28455d12bb34a6d3ce5
[ "MIT" ]
null
null
null
tests/test_multiple_quality.py
pantlavanya/nem-reader
5405a5cba4bb8ebdad05c28455d12bb34a6d3ce5
[ "MIT" ]
null
null
null
""" Test Suite """ import pytest import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import nemreader as nr def test_correct_records(): meter_data = nr.read_nem_file( 'examples/unzipped/Example_NEM12_multiple_quality.csv') readings =...
33.235294
79
0.692035
2b0c9be7a10ee868d73ae3f68821581ff74dbeeb
1,724
py
Python
wesay/sikuli/examples/test_and_log/yattag/__init__.py
rrmhearts/sikuli
63151fe306a0a86d24b5f4c1845ccbeee5c53939
[ "MIT" ]
null
null
null
wesay/sikuli/examples/test_and_log/yattag/__init__.py
rrmhearts/sikuli
63151fe306a0a86d24b5f4c1845ccbeee5c53939
[ "MIT" ]
null
null
null
wesay/sikuli/examples/test_and_log/yattag/__init__.py
rrmhearts/sikuli
63151fe306a0a86d24b5f4c1845ccbeee5c53939
[ "MIT" ]
null
null
null
""" The SimpleDoc class generates xml or html documents using context managers (`with` blocks). The Doc class extends the SimpleDoc class. It adds the capability to render html forms with defaults values and errors. These two classes can be used to define html templates in a web application. Basic example -----------...
27.365079
91
0.587587
e384378fa5787776bccbd86ae3c0880c28077d54
1,330
py
Python
088NumberOfWaysToTraverseGraph/numberOfWaysToTraverseGraph.py
GitProfAn/100DaysOfAlgo
966b2b45e46ddcace4d7e374eb0ab9a03f1787c0
[ "MIT" ]
null
null
null
088NumberOfWaysToTraverseGraph/numberOfWaysToTraverseGraph.py
GitProfAn/100DaysOfAlgo
966b2b45e46ddcace4d7e374eb0ab9a03f1787c0
[ "MIT" ]
null
null
null
088NumberOfWaysToTraverseGraph/numberOfWaysToTraverseGraph.py
GitProfAn/100DaysOfAlgo
966b2b45e46ddcace4d7e374eb0ab9a03f1787c0
[ "MIT" ]
1
2021-05-15T19:42:15.000Z
2021-05-15T19:42:15.000Z
# Solution 1 # O(2^(n + m)) time / O(n + m) space def numberOfWaysToTraverseGraph(width, height): if width == 1 or height == 1: return 1 return numberOfWaysToTraverseGraph(width - 1, height) + numberOfWaysToTraverseGraph(width, height - 1) # Solution 2 # O(n * m) time / O(n * m) space def numberOfW...
28.297872
106
0.63985
5f54da973a71ded66d1adbcfb9a33e5b83b96154
5,208
py
Python
project1/adjust_results4_isadog.py
Bluecipher1/udacity-ai-programming-with-python
155232530fb43df08a62c5d7c64def7abbcbd573
[ "MIT" ]
null
null
null
project1/adjust_results4_isadog.py
Bluecipher1/udacity-ai-programming-with-python
155232530fb43df08a62c5d7c64def7abbcbd573
[ "MIT" ]
null
null
null
project1/adjust_results4_isadog.py
Bluecipher1/udacity-ai-programming-with-python
155232530fb43df08a62c5d7c64def7abbcbd573
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # */AIPND-revision/intropyproject-classify-pet-images/adjust_results4_isadog.py # # PROGRAMMER: # DATE CREATED: # REVISED DATE: # PURPOSE: Create a function adju...
54.25
83
0.602727
ef8c63d6bcb88620f09ae0271ffb547c6469df2d
22,677
py
Python
test/dialect/mssql/test_query.py
lelit/sqlalchemy
55f930ef3d4e60bed02a2dad16e331fe42cfd12b
[ "MIT" ]
null
null
null
test/dialect/mssql/test_query.py
lelit/sqlalchemy
55f930ef3d4e60bed02a2dad16e331fe42cfd12b
[ "MIT" ]
null
null
null
test/dialect/mssql/test_query.py
lelit/sqlalchemy
55f930ef3d4e60bed02a2dad16e331fe42cfd12b
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 from sqlalchemy import and_ from sqlalchemy import Column from sqlalchemy import DDL from sqlalchemy import desc from sqlalchemy import event from sqlalchemy import ForeignKey from sqlalchemy import func from sqlalchemy import Integer from sqlalchemy import MetaData from sqlalchemy import or_ from...
32.675793
79
0.555276
2009f0aa7a4c004604904e7c25d94e1c51d0ace7
1,732
py
Python
front.py
chirag127/Fake_News_Detection
eb86527471402325e412e548d67ae1dfafa85e3c
[ "MIT" ]
null
null
null
front.py
chirag127/Fake_News_Detection
eb86527471402325e412e548d67ae1dfafa85e3c
[ "MIT" ]
null
null
null
front.py
chirag127/Fake_News_Detection
eb86527471402325e412e548d67ae1dfafa85e3c
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request import pandas as pd import sklearn import itertools import numpy as np import seaborn as sb import re import nltk import pickle from sklearn.feature_extraction.text import TfidfVectorizer from matplotlib import pyplot as plt from sklearn.linear_model import P...
29.862069
80
0.689954
c676a37968615bf69f3004cdb3103a2c86ba9c66
4,728
py
Python
SST_files/train_discriminator.py
pranjalg96/Stylized-Image-captioning
e95111f36e3eed83478c990fdd70c5b9604bf57a
[ "BSD-3-Clause" ]
null
null
null
SST_files/train_discriminator.py
pranjalg96/Stylized-Image-captioning
e95111f36e3eed83478c990fdd70c5b9604bf57a
[ "BSD-3-Clause" ]
null
null
null
SST_files/train_discriminator.py
pranjalg96/Stylized-Image-captioning
e95111f36e3eed83478c990fdd70c5b9604bf57a
[ "BSD-3-Clause" ]
null
null
null
import math import os import torch import torch.nn as nn import torch.nn.functional as F import torch.autograd as autograd import torch.optim as optim import numpy as np from torch.autograd import Variable from ctextgen.dataset import * from ctextgen.model import RNN_VAE import argparse from tqdm import tqdm parse...
27.017143
93
0.645516
e608ef00e26e1b43afdfcfec5085617c131ac24f
14,573
py
Python
tests/components/hue/test_light_v2.py
EuleMitKeule/core
3af54d96c7dcc3f7087d1196e6ab0db029301ee7
[ "Apache-2.0" ]
3
2022-02-18T14:03:39.000Z
2022-03-26T20:26:55.000Z
tests/components/hue/test_light_v2.py
EuleMitKeule/core
3af54d96c7dcc3f7087d1196e6ab0db029301ee7
[ "Apache-2.0" ]
87
2020-07-15T13:43:35.000Z
2022-03-23T07:43:10.000Z
tests/components/hue/test_light_v2.py
EuleMitKeule/core
3af54d96c7dcc3f7087d1196e6ab0db029301ee7
[ "Apache-2.0" ]
2
2020-06-06T21:55:32.000Z
2022-03-06T04:18:21.000Z
"""Philips Hue lights platform tests for V2 bridge/api.""" from homeassistant.components.light import COLOR_MODE_COLOR_TEMP, COLOR_MODE_XY from homeassistant.helpers import entity_registry as er from .conftest import setup_platform from .const import FAKE_DEVICE, FAKE_LIGHT, FAKE_ZIGBEE_CONNECTIVITY async def test_...
40.935393
94
0.700679
fa2f9ddb5598a570cf634f2c0c284439aa2b7d31
672
py
Python
server/musicroom/api/friendsList.py
asrient/musicroom
5b19e4a958fb856551f8be5616bc7b01e2f6dc07
[ "BSD-3-Clause" ]
1
2021-01-09T14:36:39.000Z
2021-01-09T14:36:39.000Z
server/musicroom/api/friendsList.py
asrient/musicroom
5b19e4a958fb856551f8be5616bc7b01e2f6dc07
[ "BSD-3-Clause" ]
null
null
null
server/musicroom/api/friendsList.py
asrient/musicroom
5b19e4a958fb856551f8be5616bc7b01e2f6dc07
[ "BSD-3-Clause" ]
2
2021-01-25T05:54:21.000Z
2022-03-14T23:40:24.000Z
from django.http import HttpResponse from django.shortcuts import render, redirect from django.views.decorators.http import require_http_methods from django.contrib.auth import authenticate, login from musicroom.common import apiRespond from musicroom.models import User @require_http_methods(["GET"]) def main(reques...
32
61
0.72619
95ad9d8592dc3bbc239e17bc85a56a495f0f7cc3
9,818
py
Python
napari/_tests/test_magicgui.py
napari/napari-gui
9beb1a0b797890718e1c4f372cbd6256747f9101
[ "BSD-3-Clause" ]
null
null
null
napari/_tests/test_magicgui.py
napari/napari-gui
9beb1a0b797890718e1c4f372cbd6256747f9101
[ "BSD-3-Clause" ]
2
2019-03-02T01:19:41.000Z
2019-03-02T01:22:18.000Z
napari/_tests/test_magicgui.py
napari/napari-gui
9beb1a0b797890718e1c4f372cbd6256747f9101
[ "BSD-3-Clause" ]
null
null
null
import contextlib import sys import time from typing import List import numpy as np import pytest from magicgui import magicgui from napari import Viewer, layers, types from napari._tests.utils import layer_test_data from napari.layers import Image, Labels, Layer from napari.utils._proxies import PublicOnlyProxy from...
33.394558
85
0.700143
d56a7c55b516204a11ae540dfb890826790cd54e
6,816
py
Python
tools/harness/machines/qemu.py
mslovy/barrelfish
780bc02cfbc3594b0ae46ca3a921d183557839be
[ "MIT" ]
null
null
null
tools/harness/machines/qemu.py
mslovy/barrelfish
780bc02cfbc3594b0ae46ca3a921d183557839be
[ "MIT" ]
null
null
null
tools/harness/machines/qemu.py
mslovy/barrelfish
780bc02cfbc3594b0ae46ca3a921d183557839be
[ "MIT" ]
null
null
null
########################################################################## # Copyright (c) 2009, 2010, 2011, ETH Zurich. # All rights reserved. # # This file is distributed under the terms in the attached LICENSE file. # If you do not find this file, copies can be found by writing to: # ETH Zurich D-INFK, Haldeneggstei...
30.428571
94
0.624413
abf215e968cd0bfe690eea74e5567c0e92a456ec
7,373
py
Python
felica/reader.py
justlaputa/felicatool
6e4f7292e15209b0ebb94e93921be607be49bc3e
[ "MIT" ]
1
2019-09-29T06:01:22.000Z
2019-09-29T06:01:22.000Z
felica/reader.py
justlaputa/felicatool
6e4f7292e15209b0ebb94e93921be607be49bc3e
[ "MIT" ]
null
null
null
felica/reader.py
justlaputa/felicatool
6e4f7292e15209b0ebb94e93921be607be49bc3e
[ "MIT" ]
1
2019-09-29T06:21:29.000Z
2019-09-29T06:21:29.000Z
# -*- coding: utf-8 -*- import errno import logging import io import itertools import nfc import os import threading import time from config import Config from .record import BalanceRecord, HistoryRecord FELICA_SERVICE_BALANCE = 0x008b FELICA_SERVICE_HISTORY = 0x090f FELICA_SERVICE_IN_OUT = 0x108f BUFFER_SIZE = 1024 ...
35.277512
122
0.557711
8976fc67fe52b596ad731fc964a32be4498a22a9
709
py
Python
mysite/urls.py
babraham123/mysite
76a792b18bc6404bec1281bc7c2d69b738aa03d1
[ "MIT" ]
null
null
null
mysite/urls.py
babraham123/mysite
76a792b18bc6404bec1281bc7c2d69b738aa03d1
[ "MIT" ]
null
null
null
mysite/urls.py
babraham123/mysite
76a792b18bc6404bec1281bc7c2d69b738aa03d1
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.views.generic.base import * #from django.views.generic.simple import * from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^$', TemplateView.as_view(template_name='index3.html')), url(r'^project/', include('pro...
35.45
70
0.662906
1b41b22e142362ac45683decfc5141c395d3f952
6,233
py
Python
srunner/scenarios/signalized_junction_left_turn.py
matthewcoyle-cpc/scenario_runner
a6062ac05b908c748688eb770acd78e0d4769edd
[ "MIT" ]
6
2020-03-22T09:39:30.000Z
2021-04-12T12:01:44.000Z
srunner/scenarios/signalized_junction_left_turn.py
matthewcoyle-cpc/scenario_runner
a6062ac05b908c748688eb770acd78e0d4769edd
[ "MIT" ]
9
2020-09-25T22:35:07.000Z
2022-03-12T00:20:21.000Z
srunner/scenarios/signalized_junction_left_turn.py
matthewcoyle-cpc/scenario_runner
a6062ac05b908c748688eb770acd78e0d4769edd
[ "MIT" ]
2
2020-12-20T12:59:14.000Z
2021-05-25T06:28:50.000Z
#!/usr/bin/env python # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ Collection of traffic scenarios where the ego vehicle (hero) is making a left turn """ from six.moves.queue import Queue # pylint: disable=relative-import import py_trees...
40.212903
119
0.664367
5651dbabc3ad8e198eec0a77e3b3630734c238c4
5,198
py
Python
third_party/buildbot_8_4p1/buildbot/changes/filter.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
third_party/buildbot_8_4p1/buildbot/changes/filter.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
null
null
null
third_party/buildbot_8_4p1/buildbot/changes/filter.py
bopopescu/build
4e95fd33456e552bfaf7d94f7d04b19273d1c534
[ "BSD-3-Clause" ]
1
2020-07-23T11:05:06.000Z
2020-07-23T11:05:06.000Z
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
44.050847
87
0.620239
5a23fcbc29b5e54b9a08266ad10e1597fff09b21
10,584
py
Python
funcs/topoflow/topoflow/utils/midpoints.py
raunaqtri1/MINT-Transformation
cdb95ff3ee05b109e5f2a1016d52702819691701
[ "MIT" ]
1
2020-09-29T15:27:52.000Z
2020-09-29T15:27:52.000Z
funcs/topoflow/topoflow/utils/midpoints.py
raunaqtri1/MINT-Transformation
cdb95ff3ee05b109e5f2a1016d52702819691701
[ "MIT" ]
19
2020-05-01T21:16:39.000Z
2021-06-09T19:42:59.000Z
funcs/topoflow/topoflow/utils/midpoints.py
raunaqtri1/MINT-Transformation
cdb95ff3ee05b109e5f2a1016d52702819691701
[ "MIT" ]
3
2020-05-04T22:44:54.000Z
2020-05-06T23:16:35.000Z
## Copyright (c) 2001-2009, Scott D. Peckham ## November 2009 (converted from IDL) #----------------------------------------------------------------------- # Notes: Use the random midpoint displacement method to create # a fractal surface/landscape (due to Mandelbrot). # This can be used as initial s...
37.8
91
0.356104
d9a983f47215da76b52a8dd00cea74e32cce6cdc
4,568
py
Python
watchman/integration/test_name.py
0xgpapad/watchman
71ae8281ca0d583db7c2c8f057a489a86eded406
[ "MIT" ]
3
2022-02-10T10:48:36.000Z
2022-02-21T23:18:10.000Z
watchman/integration/test_name.py
0xgpapad/watchman
71ae8281ca0d583db7c2c8f057a489a86eded406
[ "MIT" ]
null
null
null
watchman/integration/test_name.py
0xgpapad/watchman
71ae8281ca0d583db7c2c8f057a489a86eded406
[ "MIT" ]
1
2022-02-06T10:29:46.000Z
2022-02-06T10:29:46.000Z
# vim:ts=4:sw=4:et: # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # no unicode literals import os import pywatchman import WatchmanTestCase @WatchmanTestCase.expand_matrix class Test...
30.864865
88
0.484457
f13f4baac7d2c50342d1cca582f953373f06e965
1,905
py
Python
examples/matlab2_demo.py
sammympie/scitools
776c5bbfb0752ef20f242a8d0ecaa66d9141282c
[ "BSD-3-Clause" ]
null
null
null
examples/matlab2_demo.py
sammympie/scitools
776c5bbfb0752ef20f242a8d0ecaa66d9141282c
[ "BSD-3-Clause" ]
null
null
null
examples/matlab2_demo.py
sammympie/scitools
776c5bbfb0752ef20f242a8d0ecaa66d9141282c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from scitools.std import * # We start with a simple example using the plot command: x = linspace(-2,2,5) plot(x,x**2,'b-s',title='Simple plot') print get_script() # As we can see, the result is no output. This is because the _replot method # has not been called yet. However, we don't need to c...
34.017857
76
0.733858
a673e35adc8552b5b91ac019137bde636212a9bb
6,643
py
Python
utils/training_utils.py
Hax7/PoseidonML
e9eeb2f314901ec54f250ab8670838c7e14d0815
[ "Apache-2.0" ]
null
null
null
utils/training_utils.py
Hax7/PoseidonML
e9eeb2f314901ec54f250ab8670838c7e14d0815
[ "Apache-2.0" ]
null
null
null
utils/training_utils.py
Hax7/PoseidonML
e9eeb2f314901ec54f250ab8670838c7e14d0815
[ "Apache-2.0" ]
null
null
null
''' Contains utilities required for parsing pcaps into model training features ''' import json import logging import os import numpy as np from sklearn.decomposition import PCA from sklearn.linear_model import LogisticRegression from sklearn.linear_model import RandomizedLogisticRegression from sklearn.model_selection...
31.784689
90
0.631341
b673d59ed351baa5f68bdce28c3f2ff7ecd6e9dc
114,585
py
Python
altair/vegalite/v2/schema/channels.py
ellisonbg/altair
60c7bfa0a73ccd8bf115b8d9dcda27d855ea62a2
[ "BSD-3-Clause" ]
1,134
2015-09-19T05:38:36.000Z
2021-09-21T15:15:11.000Z
altair/vegalite/v2/schema/channels.py
ellisonbg/altair
60c7bfa0a73ccd8bf115b8d9dcda27d855ea62a2
[ "BSD-3-Clause" ]
165
2015-09-19T05:09:33.000Z
2018-10-08T19:42:28.000Z
altair/vegalite/v2/schema/channels.py
ellisonbg/altair
60c7bfa0a73ccd8bf115b8d9dcda27d855ea62a2
[ "BSD-3-Clause" ]
75
2015-09-19T03:30:25.000Z
2018-11-19T05:37:38.000Z
# -*- coding: utf-8 -*- # # The contents of this file are automatically written by # tools/generate_schema_wrapper.py. Do not modify directly. import six from . import core import pandas as pd from altair.utils.schemapi import Undefined from altair.utils import parse_shorthand class FieldChannelMixin(object): de...
57.812815
104
0.631348
e3006e127e8b5b3c9d8e1acfbe8c0d706965ffb8
51,487
py
Python
pytests/memcapable.py
mhocouchbase/testrunner
10faf6955a905dee9a254daf90352881d4687735
[ "Apache-2.0" ]
null
null
null
pytests/memcapable.py
mhocouchbase/testrunner
10faf6955a905dee9a254daf90352881d4687735
[ "Apache-2.0" ]
null
null
null
pytests/memcapable.py
mhocouchbase/testrunner
10faf6955a905dee9a254daf90352881d4687735
[ "Apache-2.0" ]
null
null
null
import os import random from threading import Thread import unittest from TestInput import TestInputSingleton import mc_bin_client import time import uuid import logger import logging import datetime from membase.api.rest_client import RestConnection, RestHelper from membase.helper.rebalance_helper import RebalanceHelp...
44.156947
196
0.612135
cbea41e597d6334191d192f57a8c79b053e01067
8,916
py
Python
src/lane_detect/src/slidewindow.py
young43/ISCC_2020
2a7187410bceca901bd87b753a91fd35b73ca036
[ "MIT" ]
3
2020-11-13T04:59:27.000Z
2021-04-02T06:36:03.000Z
src/lane_detect/src/slidewindow.py
yongbeomkwak/ISCC_2021
7e7e5a8a14b9ed88e1cfbe2ee585fe24e4701015
[ "MIT" ]
null
null
null
src/lane_detect/src/slidewindow.py
yongbeomkwak/ISCC_2021
7e7e5a8a14b9ed88e1cfbe2ee585fe24e4701015
[ "MIT" ]
5
2020-09-13T09:06:16.000Z
2021-06-19T02:31:23.000Z
import numpy as np import cv2 from scipy.interpolate import * from matplotlib.pyplot import * from sklearn.linear_model import LinearRegression import math class SlideWindow: def __init__(self): self.left_fit = None self.right_fit = None self.leftx = None self.rightx = None def...
42.056604
259
0.604419
ff90229f3e5b2aa2772ca769e44a2121cc80a4a4
9,835
py
Python
tests/test_logger.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
4
2018-08-26T09:11:36.000Z
2019-05-24T12:01:02.000Z
tests/test_logger.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
52
2018-08-24T12:51:22.000Z
2020-12-28T04:59:42.000Z
tests/test_logger.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
1
2018-10-11T07:57:55.000Z
2018-10-11T07:57:55.000Z
# pylint: skip-file # type: ignore # -*- coding: utf-8 -*- # # tests.test_utilities.py is part of The RAMSTK Project # # All rights reserved. # Copyright 2007 - 2017 Doyle Rowland doyle.rowland <AT> reliaqual <DOT> com """Test class for testing the Utilities module algorithms and models.""" # Standard Library Im...
34.268293
87
0.624809
ba5c93a07a15c72d8c4e3b5fd16189984665f6c4
615
py
Python
stores/migrations/0002_auto_20181127_0612.py
thgazis/django-oscar-stores
373f45a9f7d18f5ffaec06580fbe7ecf8edc27df
[ "BSD-3-Clause" ]
83
2015-01-21T14:33:38.000Z
2021-11-08T11:30:18.000Z
stores/migrations/0002_auto_20181127_0612.py
thgazis/django-oscar-stores
373f45a9f7d18f5ffaec06580fbe7ecf8edc27df
[ "BSD-3-Clause" ]
113
2015-01-04T22:56:23.000Z
2022-02-01T11:05:09.000Z
stores/migrations/0002_auto_20181127_0612.py
thgazis/django-oscar-stores
373f45a9f7d18f5ffaec06580fbe7ecf8edc27df
[ "BSD-3-Clause" ]
50
2015-06-09T18:13:48.000Z
2021-09-08T14:36:37.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2018-11-27 06:12 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('stores', '0001_initial'), ] operations = [ migrations.AlterField( ...
29.285714
217
0.604878
c41604802a45e8c139f0d7e0139dfcf3859e6241
128
py
Python
distance/api/paginations.py
DeepinSC/Pikachu-Housing
453201e19812e356106c071bbf9a306931d14fa7
[ "Apache-2.0" ]
1
2019-03-23T18:49:31.000Z
2019-03-23T18:49:31.000Z
distance/api/paginations.py
DeepinSC/Pikachu-Housing
453201e19812e356106c071bbf9a306931d14fa7
[ "Apache-2.0" ]
null
null
null
distance/api/paginations.py
DeepinSC/Pikachu-Housing
453201e19812e356106c071bbf9a306931d14fa7
[ "Apache-2.0" ]
null
null
null
from rest_framework.pagination import PageNumberPagination class DistancePagination(PageNumberPagination): page_size = 10
21.333333
58
0.84375
38cbd6b4082c9e8296c1ac322bd9f3fee2dd990e
25
py
Python
myven/lib/python3.8/site-packages/ansible/modules/cloud/ovirt/_ovirt_datacenters_facts.py
baltham/dne-dna-code
4a13309a790a670d2f07e635c9264a0c29976c6a
[ "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
ansible/modules/cloud/ovirt/_ovirt_datacenters_facts.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
ansible/modules/cloud/ovirt/_ovirt_datacenters_facts.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
ovirt_datacenter_facts.py
25
25
0.96
ae93d606be924a376d248e3f6b380d62aeb7e657
6,676
py
Python
Robotics/Assignment4/AutoGrade_ur5.py
dadaluoyu/Robotics-and-Robot-Learning
f4f57738f17d86bf3358b5fcfd8c310682b26412
[ "MIT" ]
1
2019-09-06T03:27:38.000Z
2019-09-06T03:27:38.000Z
Robotics/Assignment4/AutoGrade_ur5.py
dadaluoyu/Robotics-and-Robot-Learning
f4f57738f17d86bf3358b5fcfd8c310682b26412
[ "MIT" ]
null
null
null
Robotics/Assignment4/AutoGrade_ur5.py
dadaluoyu/Robotics-and-Robot-Learning
f4f57738f17d86bf3358b5fcfd8c310682b26412
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys sys.path.append(".") import numpy import geometry_msgs.msg #from interactive_markers.interactive_marker_server import * #from interactive_markers.menu_handler import * import trajectory_msgs.msg #import moveit_commander import moveit_msgs.srv import rospy import sensor_msgs.msg import ...
36.086486
97
0.611893
1bae2aeb1fe604de8b7db0a516166ad92f601661
1,149
py
Python
scripts/cpu_info.py
Revsol/blinkt
58743f4711f295de81f01a02e9db242750e944a5
[ "MIT" ]
null
null
null
scripts/cpu_info.py
Revsol/blinkt
58743f4711f295de81f01a02e9db242750e944a5
[ "MIT" ]
null
null
null
scripts/cpu_info.py
Revsol/blinkt
58743f4711f295de81f01a02e9db242750e944a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import time import psutil from subprocess import PIPE, Popen import blinkt mode = os.environ['Mode'] if mode not in ['Mixed', 'Temp', 'Load']: raise ValueError('Mode not recognized.') blinkt.set_clear_on_exit() blinkt.set_brightness(0.05) def get_cpu_temperature(): process =...
20.517857
62
0.597911
32bbfbe70415d2a97d410ea09746b306e044d7ca
430
py
Python
app/core/migrations/0005_recipe_image.py
paccy-ops/recipe-app-api
2b902fafeaa6ee31d64497daa34e2f721c5cccca
[ "MIT" ]
null
null
null
app/core/migrations/0005_recipe_image.py
paccy-ops/recipe-app-api
2b902fafeaa6ee31d64497daa34e2f721c5cccca
[ "MIT" ]
null
null
null
app/core/migrations/0005_recipe_image.py
paccy-ops/recipe-app-api
2b902fafeaa6ee31d64497daa34e2f721c5cccca
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-05 05:36 import core.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0004_recipe'), ] operations = [ migrations.AddField( model_name='recipe', name='image', ...
21.5
93
0.62093
49169e28c117a2fce40a4df8067bf009dd2cea6f
8,835
py
Python
autolens/pipeline/phase/imaging/analysis.py
jonathanfrawley/PyAutoLens_copy
00801a32b452af6d9f77d3847b72de2efda4de6d
[ "MIT" ]
null
null
null
autolens/pipeline/phase/imaging/analysis.py
jonathanfrawley/PyAutoLens_copy
00801a32b452af6d9f77d3847b72de2efda4de6d
[ "MIT" ]
null
null
null
autolens/pipeline/phase/imaging/analysis.py
jonathanfrawley/PyAutoLens_copy
00801a32b452af6d9f77d3847b72de2efda4de6d
[ "MIT" ]
null
null
null
from autoconf import conf import autofit as af from autoarray.inversion import pixelizations as pix from autoarray.exc import PixelizationException, InversionException, GridException from autofit.exc import FitException from autogalaxy.pipeline.phase.dataset import analysis as ag_analysis from autolens.fit import...
35.625
102
0.61528
c6f24388b49c6d46314f71ae42e364d83a2a2d94
3,196
py
Python
moto/__init__.py
JohnVonNeumann/moto
4081ece2ea97f401139879a5c6d81d9b21cb7b48
[ "Apache-2.0" ]
null
null
null
moto/__init__.py
JohnVonNeumann/moto
4081ece2ea97f401139879a5c6d81d9b21cb7b48
[ "Apache-2.0" ]
null
null
null
moto/__init__.py
JohnVonNeumann/moto
4081ece2ea97f401139879a5c6d81d9b21cb7b48
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import logging # logging.getLogger('boto').setLevel(logging.CRITICAL) __title__ = 'moto' __version__ = '1.3.3' from .acm import mock_acm # flake8: noqa from .apigateway import mock_apigateway, mock_apigateway_deprecated # flake8: noqa from .autoscaling import mock_autoscaling...
55.103448
116
0.811952
700de0f204fccee8c07554adfbc5911328854ea6
6,716
py
Python
RecoTracker/MkFit/python/customizeInitialStepOnly.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoTracker/MkFit/python/customizeInitialStepOnly.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoTracker/MkFit/python/customizeInitialStepOnly.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms def removePath(process, pname): if hasattr(process, pname): process.schedule.remove(getattr(process, pname)) delattr(process, pname) def customizeInitialStepOnly(process): # Customize reconstruction process.trackerClusterCheck.PixelClusterCollection...
45.687075
123
0.757594
fdd1fb696862d998e0d377f3451b8a3a248dbe08
5,711
py
Python
saleor/payment/gateways/razorpay/plugin.py
manolaz/saleor
57f3e0a6054c4ecc6d52cbba56a308140964d969
[ "CC-BY-4.0" ]
null
null
null
saleor/payment/gateways/razorpay/plugin.py
manolaz/saleor
57f3e0a6054c4ecc6d52cbba56a308140964d969
[ "CC-BY-4.0" ]
15
2020-03-24T18:29:42.000Z
2022-03-12T00:26:14.000Z
saleor/payment/gateways/razorpay/plugin.py
manolaz/saleor
57f3e0a6054c4ecc6d52cbba56a308140964d969
[ "CC-BY-4.0" ]
null
null
null
from typing import TYPE_CHECKING from django.utils.translation import pgettext_lazy from saleor.extensions import ConfigurationTypeField from saleor.extensions.base_plugin import BasePlugin from . import GatewayConfig, capture, create_form, process_payment, refund GATEWAY_NAME = "Razorpay" if TYPE_CHECKING: fr...
36.375796
86
0.608475
03a03413aaf2777f7627ed40018478e1d46bb4b1
11,742
py
Python
Instagram Bots/schedme/schedme.py
akamilkhan/Social-Media-Automation
23979e259774454fc487d1efab5c5259dde0f07c
[ "MIT" ]
null
null
null
Instagram Bots/schedme/schedme.py
akamilkhan/Social-Media-Automation
23979e259774454fc487d1efab5c5259dde0f07c
[ "MIT" ]
null
null
null
Instagram Bots/schedme/schedme.py
akamilkhan/Social-Media-Automation
23979e259774454fc487d1efab5c5259dde0f07c
[ "MIT" ]
null
null
null
#!/usr/bin/python # Schedme v1.0 # Coded by: github.com/thelinuxchoice/schedme # Image upload/resize adapted from: github.com/b3nab/instapy-cli import requests import random from random import randint import hmac import hashlib import uuid import json import time import os import datetime from PIL import Image import ...
40.770833
259
0.573752
636bec4eda402d75585db908d33a533a1704c8c8
3,681
py
Python
tensorflow_datasets/core/tfrecords_writer_test.py
perfmjs/datasets
62c8714f5bf732e6db69c149cb541e6c5c1ab066
[ "Apache-2.0" ]
1
2019-07-13T07:08:12.000Z
2019-07-13T07:08:12.000Z
tensorflow_datasets/core/tfrecords_writer_test.py
rky0930/tensorflow_datasets
37ee19376e6f95bac48d52ac47157c2e0d704ee8
[ "Apache-2.0" ]
1
2019-04-09T07:50:49.000Z
2019-04-09T07:51:10.000Z
tensorflow_datasets/core/tfrecords_writer_test.py
perfmjs/datasets
62c8714f5bf732e6db69c149cb541e6c5c1ab066
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
32.008696
76
0.688128
0f50d957f04a0c3fd0a2c4f15756f62007f94e3e
11,811
py
Python
tcex/api/tc/v3/cases/case_model.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tcex/api/tc/v3/cases/case_model.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tcex/api/tc/v3/cases/case_model.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
"""Case / Cases Model""" # pylint: disable=no-member,no-self-argument,no-self-use,wrong-import-position # standard library from datetime import datetime from typing import List, Optional # third-party from pydantic import BaseModel, Extra, Field, PrivateAttr, validator # first-party from tcex.api.tc.v3.v3_model_abc i...
28.948529
98
0.604945
b30230062988d5d14d47fd3338c3c82b47e630df
3,044
py
Python
rainbow/2-DoubleDQN/train.py
g6ling/Pytorch-Cartpole
ecb7b622cfefe825ac95388cceb6752413d90a2a
[ "MIT" ]
116
2019-01-08T02:35:42.000Z
2022-03-16T07:24:06.000Z
rainbow/2-DoubleDQN/train.py
g6ling/Pytorch-Cartpole-Example
ecb7b622cfefe825ac95388cceb6752413d90a2a
[ "MIT" ]
3
2019-10-24T17:34:38.000Z
2021-07-09T06:22:20.000Z
rainbow/2-DoubleDQN/train.py
g6ling/Pytorch-Cartpole-Example
ecb7b622cfefe825ac95388cceb6752413d90a2a
[ "MIT" ]
21
2019-01-29T11:14:45.000Z
2021-09-13T15:38:18.000Z
import os import sys import gym import random import argparse import numpy as np import torch import torch.optim as optim import torch.nn.functional as F from model import DoubleDQNet from memory import Memory from tensorboardX import SummaryWriter from config import env_name, gamma, initial_exploration, batch_size, u...
28.990476
144
0.633049
c5db3affce94a390a9519b6f97d35d9130e6e3d3
336
py
Python
moiprezsite/urls.py
mxpxgx/moiprez.com
8af2bc8ff676b67b5dd773b93721a5e457f89c16
[ "MIT" ]
null
null
null
moiprezsite/urls.py
mxpxgx/moiprez.com
8af2bc8ff676b67b5dd773b93721a5e457f89c16
[ "MIT" ]
null
null
null
moiprezsite/urls.py
mxpxgx/moiprez.com
8af2bc8ff676b67b5dd773b93721a5e457f89c16
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin from home.views import HomeView urlpatterns = [ # Examples: # url(r'^$', 'home.views.HomeView', name='home'), url(r'^$', HomeView.as_view(), name='home'), # url(r'^home/', include('home.urls')), url(r'^admin/', include(admi...
25.846154
53
0.642857
ea79b76c688a9dfb49065b58b2f63c3fcded8893
286
py
Python
setup.py
vtsyryuk/HackerRank-Python
ca364b6fdf1bc390187c084c6d1405905e9bdd4c
[ "MIT" ]
null
null
null
setup.py
vtsyryuk/HackerRank-Python
ca364b6fdf1bc390187c084c6d1405905e9bdd4c
[ "MIT" ]
null
null
null
setup.py
vtsyryuk/HackerRank-Python
ca364b6fdf1bc390187c084c6d1405905e9bdd4c
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='HackerRank-Python', version='1.0.0', packages=[''], package_dir={'': 'hacker_rank'}, url='https://github.com/vtsyryuk/HackerRank-Python', license='', author='black.m1rr0r', author_email='', description='' )
20.428571
56
0.622378
497daccacecbcd5b65ec270469d6b2011628cce5
21,791
py
Python
Basic/Python/QiPy/Python3/program.py
pirogovsky/Qi-Samples
be691f0eb5bf6c19907a91e50af9635d073d8673
[ "Apache-2.0" ]
null
null
null
Basic/Python/QiPy/Python3/program.py
pirogovsky/Qi-Samples
be691f0eb5bf6c19907a91e50af9635d073d8673
[ "Apache-2.0" ]
null
null
null
Basic/Python/QiPy/Python3/program.py
pirogovsky/Qi-Samples
be691f0eb5bf6c19907a91e50af9635d073d8673
[ "Apache-2.0" ]
null
null
null
from qipy import * import configparser import datetime import time import math import inspect import collections #returns a type that represents the WaveData data def getWaveDataType(sampleTypeId): if sampleTypeId is None or not isinstance(sampleTypeId, str): raise TypeError("sampleTypeId is not...
39.910256
178
0.614428
35cebf2b4301c9a0027c1641b0da1beb5b653a13
326
py
Python
venv/Lib/site-packages/pandas/core/window/__init__.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/core/window/__init__.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/core/window/__init__.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
from pandas.core.window.ewm import ( # noqa:F401 ExponentialMovingWindow, ExponentialMovingWindowGroupby, ) from pandas.core.window.expanding import ( # noqa:F401 Expanding, ExpandingGroupby, ) from pandas.core.window.rolling import ( # noqa:F401 Rolling, RollingGroupby, Window...
23.285714
56
0.693252
74e4f754fd3498610da8208c884db2952db61a02
290
py
Python
backend/text_recognition/main.py
przemyslawjanpietrzak/munch
3cd6e830ed93a333f78f02f0e353d116e52c0b36
[ "MIT" ]
null
null
null
backend/text_recognition/main.py
przemyslawjanpietrzak/munch
3cd6e830ed93a333f78f02f0e353d116e52c0b36
[ "MIT" ]
null
null
null
backend/text_recognition/main.py
przemyslawjanpietrzak/munch
3cd6e830ed93a333f78f02f0e353d116e52c0b36
[ "MIT" ]
null
null
null
from rasa_nlu.model import Interpreter from rasa_nlu.config import RasaNLUConfig config = RasaNLUConfig('text_recognition/config.json') interpreter = Interpreter.load('text_recognition/models/default/model/', config) def parse_question(question): return interpreter.parse(question)
26.363636
80
0.817241
7a9ad82b52c2204d0113af5064bb7e739da71cf4
1,548
py
Python
NPASS_DeepDTA.py
rjd55/DeepPurpose
c50c9ee5510d80f5731d819919218a2776a0d161
[ "BSD-3-Clause" ]
1
2021-08-25T11:44:09.000Z
2021-08-25T11:44:09.000Z
NPASS_DeepDTA.py
rjd55/DeepPurpose
c50c9ee5510d80f5731d819919218a2776a0d161
[ "BSD-3-Clause" ]
null
null
null
NPASS_DeepDTA.py
rjd55/DeepPurpose
c50c9ee5510d80f5731d819919218a2776a0d161
[ "BSD-3-Clause" ]
null
null
null
import os os.chdir('../') import DeepPurpose.DTI as models from DeepPurpose.utils import * from DeepPurpose.dataset import * from DeepPurpose import utils, dataset import DeepPurpose.DTI as models from time import time t1 = time() path_to_text_file = '/content/drive/MyDrive/Colab Notebooks/data/NPASS_for_DeepPurpose...
31.591837
95
0.602713
78364a028beb3a5df16601b92a9944a297e5e8b3
831
py
Python
Scripts/JudgeBase.py
MaowMan/pyjudge
ac3ab2d1da796326cec251feb3f4b558a3939c70
[ "MIT" ]
null
null
null
Scripts/JudgeBase.py
MaowMan/pyjudge
ac3ab2d1da796326cec251feb3f4b558a3939c70
[ "MIT" ]
null
null
null
Scripts/JudgeBase.py
MaowMan/pyjudge
ac3ab2d1da796326cec251feb3f4b558a3939c70
[ "MIT" ]
null
null
null
import json as json from tkinter import * class JudgeObj(object): def __init__(self): with open("./Config/MainConfig.json","r") as reader: self.MainConfig=json.loads(reader.read()) self.Container=[] def __iter__(self): self.Counter=-1 return self def __next__(sel...
30.777778
69
0.614922
df12dde9dac2bcd86dfd2551678faa5d18caea5e
4,529
py
Python
cohesity_management_sdk/models/aggregated_subtree_info.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
1
2019-11-07T23:19:32.000Z
2019-11-07T23:19:32.000Z
cohesity_management_sdk/models/aggregated_subtree_info.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
cohesity_management_sdk/models/aggregated_subtree_info.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class AggregatedSubtreeInfo(object): """Implementation of the 'AggregatedSubtreeInfo' model. Aggregated information about a node subtree. Attributes: environment (EnvironmentAggregatedSubtreeInfoEnum): Specifies the environment ...
44.841584
81
0.668139
1146a69cd0835e826ca31e6b87adcce340ea7536
4,382
py
Python
main.py
yoongi0428/Kor-Sentence-Similarity
dff57624cb70356fd69add6d51d8c39995e6d836
[ "MIT" ]
4
2020-06-30T09:41:11.000Z
2020-12-04T09:10:40.000Z
main.py
yoongi0428/Kor-Sentence-Similarity
dff57624cb70356fd69add6d51d8c39995e6d836
[ "MIT" ]
null
null
null
main.py
yoongi0428/Kor-Sentence-Similarity
dff57624cb70356fd69add6d51d8c39995e6d836
[ "MIT" ]
3
2018-11-04T17:11:02.000Z
2020-12-04T07:55:43.000Z
import argparse import datetime import numpy as np import tensorflow as tf from util.Dataset import Dataset from models.CNN import Char_CNN from models.MLP import MLP def _batch_loader(iterable, n=1): length = len(iterable) for n_idx in range(0, length, n): yield iterable[n_idx:min(n_idx + n, length)...
34.503937
114
0.592652
9f231d2b68882d9067fb12738aa5484919394aaa
5,103
py
Python
Utils/github_workflow_scripts/handle_external_pr.py
MattHulse/content
b07cec3a80a7068418238b3692c2d283ad08fb99
[ "MIT" ]
null
null
null
Utils/github_workflow_scripts/handle_external_pr.py
MattHulse/content
b07cec3a80a7068418238b3692c2d283ad08fb99
[ "MIT" ]
null
null
null
Utils/github_workflow_scripts/handle_external_pr.py
MattHulse/content
b07cec3a80a7068418238b3692c2d283ad08fb99
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import json from typing import List import urllib3 from blessings import Terminal from github import Github from github.Repository import Repository from utils import get_env_var, timestamped_print urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) print = timestamped_print ...
43.991379
120
0.715266
691f3970b56da5289e37e79796aa9e64e8a7e36b
4,344
py
Python
contrib/testgen/gen_base58_test_vectors.py
ShinDaniel/Donate
e244f1c8ffd184537364aee79b20bab3db5bdf4d
[ "MIT" ]
null
null
null
contrib/testgen/gen_base58_test_vectors.py
ShinDaniel/Donate
e244f1c8ffd184537364aee79b20bab3db5bdf4d
[ "MIT" ]
null
null
null
contrib/testgen/gen_base58_test_vectors.py
ShinDaniel/Donate
e244f1c8ffd184537364aee79b20bab3db5bdf4d
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Generate valid and invalid base58 address and private key test vectors. Usage: gen_base58_test_vectors.py valid 50 > ../../src/test/data/base58_keys_valid.json gen_base58_test_vectors.py invalid 50 > ../../src/test/data/base58_keys_invalid.json ''' # 2012 Wladimir J. van der Laan # R...
34.204724
97
0.607044
42e727d7372f2caa1b7fd5a479967c36d236a105
5,054
py
Python
Project 3/layout.py
kacperlsky/Artificial-Intelligence
7d0bb4949f3bd83b613731ff09a528bc95618235
[ "BSD-4-Clause-UC" ]
null
null
null
Project 3/layout.py
kacperlsky/Artificial-Intelligence
7d0bb4949f3bd83b613731ff09a528bc95618235
[ "BSD-4-Clause-UC" ]
null
null
null
Project 3/layout.py
kacperlsky/Artificial-Intelligence
7d0bb4949f3bd83b613731ff09a528bc95618235
[ "BSD-4-Clause-UC" ]
null
null
null
from util import manhattanDistance from game import Grid import os import random VISIBILITY_MATRIX_CACHE = {} class Layout: """ A Layout manages the static information about the game board. """ def __init__(self, layoutText): self.width = len(layoutText[0]) self.height= len(layoutText...
37.437037
166
0.566284
f12d3afdc15b2c955395d58bd462857156d23144
1,220
py
Python
tutorial/buildAndUseClassifier.py
wasimaftab/kindred
bb737006843ad1ab4062e5b26864ccda1efd7216
[ "MIT" ]
null
null
null
tutorial/buildAndUseClassifier.py
wasimaftab/kindred
bb737006843ad1ab4062e5b26864ccda1efd7216
[ "MIT" ]
null
null
null
tutorial/buildAndUseClassifier.py
wasimaftab/kindred
bb737006843ad1ab4062e5b26864ccda1efd7216
[ "MIT" ]
null
null
null
import kindred import argparse import os if __name__ == '__main__': parser = argparse.ArgumentParser(description='Use annotated sentences to build a Kindred classifer and apply to unannotated sentences') parser.add_argument('--dataToBuildModel',required=True,type=str,help='Sentences with relations') parser.add_argu...
36.969697
136
0.778689
dc6c37925efaf3544e012f341505cc56d25eacb0
602,829
py
Python
python/paddle/fluid/layers/nn.py
jeng1220/Paddle
b2c305edac2407e63b53d4f8f59a89737e2a32d0
[ "Apache-2.0" ]
1
2020-11-03T04:51:14.000Z
2020-11-03T04:51:14.000Z
python/paddle/fluid/layers/nn.py
jeng1220/Paddle
b2c305edac2407e63b53d4f8f59a89737e2a32d0
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/layers/nn.py
jeng1220/Paddle
b2c305edac2407e63b53d4f8f59a89737e2a32d0
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39.978049
946
0.582845
a15b008e9e0e41d68bb0a4dc8699d798304d89b7
1,005
py
Python
typeform_feedback/helpers.py
exolever/django-typeform-feedback
5784523b880e4890172b9f61d848187f5c24237e
[ "MIT" ]
null
null
null
typeform_feedback/helpers.py
exolever/django-typeform-feedback
5784523b880e4890172b9f61d848187f5c24237e
[ "MIT" ]
15
2019-03-22T09:04:53.000Z
2019-12-13T08:15:10.000Z
typeform_feedback/helpers.py
exolever/django-typeform-feedback
5784523b880e4890172b9f61d848187f5c24237e
[ "MIT" ]
null
null
null
import json import random import string from django.conf import settings class SimpleUserFeedback: pk = None url = None status = None object = None def __init__(self, id, url, status, user_object=None): self.pk = id self.url = url self.status = status self.object ...
22.840909
101
0.652736
8f8f319cf60c75c6fd86eb19b1e34a843df37405
611
py
Python
opentech/apply/users/migrations/0008_add_staff_permissions.py
JakabGy/hypha
32634080ba1cb369f07f27f6616041e4eca8dbf2
[ "BSD-3-Clause" ]
null
null
null
opentech/apply/users/migrations/0008_add_staff_permissions.py
JakabGy/hypha
32634080ba1cb369f07f27f6616041e4eca8dbf2
[ "BSD-3-Clause" ]
null
null
null
opentech/apply/users/migrations/0008_add_staff_permissions.py
JakabGy/hypha
32634080ba1cb369f07f27f6616041e4eca8dbf2
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.9 on 2019-01-10 09:28 from django.contrib.auth.models import Group, Permission from django.db import migrations from opentech.apply.users.groups import STAFF_GROUP_NAME class Migration(migrations.Migration): def add_permissions(apps, schema_editor): staff_group = Group.objects...
26.565217
72
0.721768
c1ebe86a46844eaa3e73a0198ea1b215596417f0
16,050
py
Python
qiskit_ibm_runtime/runtime_job.py
daka1510/qiskit-ibm-runtime
a0d606eafd2d069a9185236ef3b30cc0844b2c6a
[ "Apache-2.0" ]
null
null
null
qiskit_ibm_runtime/runtime_job.py
daka1510/qiskit-ibm-runtime
a0d606eafd2d069a9185236ef3b30cc0844b2c6a
[ "Apache-2.0" ]
null
null
null
qiskit_ibm_runtime/runtime_job.py
daka1510/qiskit-ibm-runtime
a0d606eafd2d069a9185236ef3b30cc0844b2c6a
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
34.665227
95
0.62
434a73f1e65a378c4dd945c9cdf37cf993cc1a38
233
py
Python
setup.py
Dead-Ded/cyclelist
9bcd9bdd628c9dcfb82636f127067b020cd27ac7
[ "MIT" ]
null
null
null
setup.py
Dead-Ded/cyclelist
9bcd9bdd628c9dcfb82636f127067b020cd27ac7
[ "MIT" ]
null
null
null
setup.py
Dead-Ded/cyclelist
9bcd9bdd628c9dcfb82636f127067b020cd27ac7
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='loopedlist', version='0.0.1', description='Adds looped containers to Python 3.x', packages=['loopedlist'], author_email='musailov2004@mail.ru', zip_safe=False)
23.3
57
0.669528
27912c5dcfec6a68797aa84bb378be8723698f2c
3,408
py
Python
simpdom/pack_data.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
simpdom/pack_data.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
simpdom/pack_data.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.087379
77
0.678697
14610808665adf73e761b9004a9fa38aaebb94b2
6,012
py
Python
pw_console/py/pw_console/plugin_mixin.py
octml/pigweed
e273d46024ef7b5a7c7ec584e4aaada41c541fc4
[ "Apache-2.0" ]
86
2021-03-09T23:49:40.000Z
2022-03-30T08:14:51.000Z
pw_console/py/pw_console/plugin_mixin.py
octml/pigweed
e273d46024ef7b5a7c7ec584e4aaada41c541fc4
[ "Apache-2.0" ]
4
2021-07-27T20:32:03.000Z
2022-03-08T10:39:07.000Z
pw_console/py/pw_console/plugin_mixin.py
octml/pigweed
e273d46024ef7b5a7c7ec584e4aaada41c541fc4
[ "Apache-2.0" ]
22
2021-03-11T15:15:47.000Z
2022-02-09T06:16:36.000Z
# Copyright 2021 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
41.178082
80
0.666667
97c123340e292955f2577a306bd6e725c5f19c56
1,859
py
Python
Ene-Jun-2018/Juan Sleiman/Primer Parcial/parte2.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ene-Jun-2018/Juan Sleiman/Primer Parcial/parte2.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ene-Jun-2018/Juan Sleiman/Primer Parcial/parte2.py
Arbupa/DAS_Sistemas
52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
"""Suponga que se está construyendo una librería de clases para representar componentes de GUI. Se ha decidido que en vez de que un programador defina la posición de los componentes GUI (Button, List, Dialog, etcétera) sobre una ventana, se incluyan manejadores de disposición de componentes (layout manager), cada uno d...
43.232558
124
0.71759
0ab95ef7b9d2bdbffe445ef9d03c39c50deaf456
6,558
py
Python
sdk/python/pulumi_azure_nextgen/apimanagement/v20190101/certificate.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/apimanagement/v20190101/certificate.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/apimanagement/v20190101/certificate.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
45.541667
791
0.65584
1921eb33a96a1de98f0b21846ce9282fb37384e1
583
py
Python
store/store/asgi.py
davidkaggulire/storemanager-django
55f07ec21b34f42a15c4f61c6991183a715e2570
[ "MIT" ]
null
null
null
store/store/asgi.py
davidkaggulire/storemanager-django
55f07ec21b34f42a15c4f61c6991183a715e2570
[ "MIT" ]
null
null
null
store/store/asgi.py
davidkaggulire/storemanager-django
55f07ec21b34f42a15c4f61c6991183a715e2570
[ "MIT" ]
null
null
null
""" ASGI config for store project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application # noqa configuration = os.getenv('ENV...
26.5
78
0.785592
d8d5feee5831675df1393a98ba786240031a63ec
534
py
Python
backend/utils.py
chriamue/flask-unchained-react-spa
610e099f3ece508f4c8a62d3704e4cc49f869194
[ "MIT" ]
5
2018-10-15T15:33:32.000Z
2021-01-13T23:03:48.000Z
backend/utils.py
chriamue/flask-unchained-react-spa
610e099f3ece508f4c8a62d3704e4cc49f869194
[ "MIT" ]
15
2018-10-15T20:14:21.000Z
2022-03-15T19:15:09.000Z
backend/utils.py
chriamue/flask-unchained-react-spa
610e099f3ece508f4c8a62d3704e4cc49f869194
[ "MIT" ]
4
2018-10-15T15:59:25.000Z
2020-04-11T17:48:35.000Z
from datetime import datetime, timezone # alias dateutil.parser.parse here to a sensible name from dateutil.parser import parse as parse_datetime def timestamp_to_datetime(seconds, tz=None): """Returns a datetime.datetime of `seconds` in UTC :param seconds: timestamp relative to the epoch :param tz: tim...
25.428571
54
0.722846
d108b18c015e58ed89409429cd6d27775f4466ae
588
py
Python
setup.py
ktok07b6/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
83
2015-11-30T09:59:13.000Z
2021-08-03T09:12:28.000Z
setup.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
4
2017-02-10T01:43:11.000Z
2020-07-14T03:52:25.000Z
setup.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
11
2016-11-18T14:39:15.000Z
2021-02-23T10:05:20.000Z
import setuptools from polyphony import __version__ setuptools.setup( name='polyphony', version=__version__, packages=setuptools.find_packages(), author="Hiroaki Kataoka", author_email="kataoka@sinby.com", description="Python based High Level Synthesis compiler", long_description=open('READ...
34.588235
85
0.729592
72d0891de102358a5d926582971371bae11078dd
370
py
Python
TuPlanazo/tucamon/detalle/items.py
jesuscuesta/Python
50c36567b3742fbdbf09ad00d2bff0b3cf8797d3
[ "MIT" ]
null
null
null
TuPlanazo/tucamon/detalle/items.py
jesuscuesta/Python
50c36567b3742fbdbf09ad00d2bff0b3cf8797d3
[ "MIT" ]
null
null
null
TuPlanazo/tucamon/detalle/items.py
jesuscuesta/Python
50c36567b3742fbdbf09ad00d2bff0b3cf8797d3
[ "MIT" ]
null
null
null
# Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/topics/items.html from scrapy.item import Item, Field class DetalleItem(Item): titulo = Field() foto = Field() fecha = Field() hora = Field() lugar = Field() descripcion = Field() precio = Fie...
21.764706
47
0.643243
1e91016249ceac1a33d2f04b8145a19bd7ed4b6c
2,406
py
Python
experiment/build/test_docker_images.py
sears-s/fuzzbench
fbed13638497cec46da66d7b0cebe294e0e01ff5
[ "Apache-2.0" ]
800
2020-03-02T18:14:07.000Z
2022-03-29T05:04:46.000Z
experiment/build/test_docker_images.py
sears-s/fuzzbench
fbed13638497cec46da66d7b0cebe294e0e01ff5
[ "Apache-2.0" ]
995
2020-03-02T19:21:51.000Z
2022-03-31T13:52:59.000Z
experiment/build/test_docker_images.py
sears-s/fuzzbench
fbed13638497cec46da66d7b0cebe294e0e01ff5
[ "Apache-2.0" ]
292
2020-03-02T19:07:30.000Z
2022-03-30T09:38:12.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, ...
43.745455
79
0.701164
349efac64c7bdfd8f57d9d0830094fab0ec5e7af
3,807
py
Python
tests/zenora/test_utils.py
orikalinski/zenora
5c942c94ef3e95f060f2cdeafc93679ef14599ef
[ "MIT" ]
null
null
null
tests/zenora/test_utils.py
orikalinski/zenora
5c942c94ef3e95f060f2cdeafc93679ef14599ef
[ "MIT" ]
null
null
null
tests/zenora/test_utils.py
orikalinski/zenora
5c942c94ef3e95f060f2cdeafc93679ef14599ef
[ "MIT" ]
null
null
null
# Copyright (c) 2021 K.M Ahnaf Zamil # 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, merge, publish, dist...
32.262712
110
0.716575
f00f06297c7f379bf2d088b1d8b1fece71a610f1
2,184
py
Python
test/functional/p2p_leak_tx.py
cedicoin/cedicoin
b75eec0512455ea80d98d72e2fca2e74572a568a
[ "MIT" ]
null
null
null
test/functional/p2p_leak_tx.py
cedicoin/cedicoin
b75eec0512455ea80d98d72e2fca2e74572a568a
[ "MIT" ]
null
null
null
test/functional/p2p_leak_tx.py
cedicoin/cedicoin
b75eec0512455ea80d98d72e2fca2e74572a568a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Cedicoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test that we don't leak txs to inbound peers that we haven't yet announced to""" from test_framework....
37.655172
98
0.66163
7a002d4a38fb097a0d844f628aee1bbc5852a1a0
3,402
py
Python
modnet/ext_data.py
fnaccarato/modnet
a79e227a2c8948afc168c3afa0556f1ca6d92015
[ "MIT" ]
null
null
null
modnet/ext_data.py
fnaccarato/modnet
a79e227a2c8948afc168c3afa0556f1ca6d92015
[ "MIT" ]
null
null
null
modnet/ext_data.py
fnaccarato/modnet
a79e227a2c8948afc168c3afa0556f1ca6d92015
[ "MIT" ]
null
null
null
# coding: utf-8 # Distributed under the terms of the MIT License. """This module defines some remote datasets that can be downloaded into the user's installation. """ import os from collections import namedtuple from enum import Enum, auto from pathlib import Path from typing import Union from modnet.utils import L...
32.711538
112
0.655203
b0b74a82dac6da839b2ce00c641051dc5d83f609
3,109
py
Python
basic/completed/wordcount.py
campbelllssoup/google-python-exercises
33d1e558b8cb6fd5e22c61b15681625c6523d162
[ "Apache-2.0" ]
null
null
null
basic/completed/wordcount.py
campbelllssoup/google-python-exercises
33d1e558b8cb6fd5e22c61b15681625c6523d162
[ "Apache-2.0" ]
null
null
null
basic/completed/wordcount.py
campbelllssoup/google-python-exercises
33d1e558b8cb6fd5e22c61b15681625c6523d162
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # COMPLETED !!! # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Wordcount exercise Google's Python class The main() below is already...
26.57265
79
0.688646
e51e6dd62b011d64f99a0bc2ba5b22c0d5d053c0
28,833
py
Python
mars/tests/core.py
xccheng/mars
8146d1b7d3f3bc2a652c414a336a2f884a06a108
[ "Apache-2.0" ]
null
null
null
mars/tests/core.py
xccheng/mars
8146d1b7d3f3bc2a652c414a336a2f884a06a108
[ "Apache-2.0" ]
null
null
null
mars/tests/core.py
xccheng/mars
8146d1b7d3f3bc2a652c414a336a2f884a06a108
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
39.335607
117
0.62425
b17f8822eafce49e1f5e4457bbea8b9c17a884ca
644
py
Python
backend/courses/migrations/0014_auto_20190518_1641.py
pennlabs/penn-courses
6fd16c151e34a9660e883a41458a72cef6c1f8cd
[ "MIT" ]
32
2019-04-02T19:02:48.000Z
2022-03-05T17:32:52.000Z
backend/courses/migrations/0014_auto_20190518_1641.py
pennlabs/penn-courses
6fd16c151e34a9660e883a41458a72cef6c1f8cd
[ "MIT" ]
281
2019-05-20T01:19:38.000Z
2022-03-31T08:17:13.000Z
backend/courses/migrations/0014_auto_20190518_1641.py
pennlabs/penn-courses
6fd16c151e34a9660e883a41458a72cef6c1f8cd
[ "MIT" ]
2
2020-04-27T20:53:02.000Z
2021-09-26T16:40:28.000Z
# Generated by Django 2.2.1 on 2019-05-18 16:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("courses", "0013_auto_20190517_0313"), ] operations = [ migrations.AlterField( model_name="requirement", name="school...
25.76
89
0.548137
cfcb7e6eef7b76c737815adbdefa6b151b77bd0c
27,181
py
Python
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/completers/cpp/flags.py
liutongliang/myVim
6c7ab36f25f4a5e2e1daeab8c43509975eb031e3
[ "MIT" ]
null
null
null
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/completers/cpp/flags.py
liutongliang/myVim
6c7ab36f25f4a5e2e1daeab8c43509975eb031e3
[ "MIT" ]
null
null
null
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/completers/cpp/flags.py
liutongliang/myVim
6c7ab36f25f4a5e2e1daeab8c43509975eb031e3
[ "MIT" ]
null
null
null
# Copyright (C) 2011-2019 ycmd contributors # # This file is part of ycmd. # # ycmd is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # #...
38.391243
128
0.667967
87159c319f10027db5f0775dc7913dfd04c65e32
868
py
Python
DataLake_Conn.py
CentralArizonaSupply/Infor-Datalake-JDBC-Example
8e40ff65f65bc21315116c8f6f8dc545b76feff1
[ "CC0-1.0" ]
null
null
null
DataLake_Conn.py
CentralArizonaSupply/Infor-Datalake-JDBC-Example
8e40ff65f65bc21315116c8f6f8dc545b76feff1
[ "CC0-1.0" ]
null
null
null
DataLake_Conn.py
CentralArizonaSupply/Infor-Datalake-JDBC-Example
8e40ff65f65bc21315116c8f6f8dc545b76feff1
[ "CC0-1.0" ]
null
null
null
import jaydebeapi import csv query = input("Type your query:") query_file = input("Enter a file name to save your query to:") conn = jaydebeapi.connect("com.infor.idl.jdbc.Driver", "jdbc:infordatalake://<your_tenant>:.", {'user':'','pass':''}, ...
24.8
85
0.551843
0d96570c6d55f2ffc2b16dc16516b9659ee9a7a5
637
py
Python
DR.py
trustb/feature
885c2b3b458afc964ff9c49531ee5194c4df6567
[ "MIT" ]
null
null
null
DR.py
trustb/feature
885c2b3b458afc964ff9c49531ee5194c4df6567
[ "MIT" ]
null
null
null
DR.py
trustb/feature
885c2b3b458afc964ff9c49531ee5194c4df6567
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.preprocessing import LabelEncoder df_train=pd.read_csv ('G:/kaggle/DriverPrediction/train.csv', nrows=10 ) le=LabelEncoder () column_name=df_train.columns.values.tolist() feature_column_name=column_name[2:] for i ...
33.526316
86
0.649922
4d96f225a681aaedccb74685afd062eae97613d0
6,629
py
Python
src/preprocess_articles.py
markolalovic/longevity-research-exploration
cf1adf98c328bae82bc6d5ffd567c04e47cbd59d
[ "MIT" ]
5
2021-03-12T21:11:54.000Z
2022-03-12T21:05:18.000Z
src/preprocess_articles.py
markolalovic/longevity-research-exploration
cf1adf98c328bae82bc6d5ffd567c04e47cbd59d
[ "MIT" ]
5
2021-06-02T04:06:48.000Z
2022-03-12T00:55:01.000Z
src/preprocess_articles.py
markolalovic/longevity-research-exploration
cf1adf98c328bae82bc6d5ffd567c04e47cbd59d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' preprocess_articles.py - Preprocesses all articles, extracts and saves the records. ## Steps: - Load articles data from `../data/longevity_research.sql` and saves it to `../data/articles.pickle`; - Check for duplicates; - Preprocess articles and save the records to '../data/recor...
32.336585
108
0.618494
82f6fd8de2bc5ef2722ecad52fc6bac4360a4c0f
5,183
py
Python
lib/dataset/target_generators/target_generators.py
nguyenbaviet/DEKR
b3904a4a3861c912d07c8294530772af33bda578
[ "MIT" ]
269
2021-04-07T02:46:34.000Z
2022-03-31T14:10:16.000Z
lib/dataset/target_generators/target_generators.py
nguyenbaviet/DEKR
b3904a4a3861c912d07c8294530772af33bda578
[ "MIT" ]
34
2021-04-14T02:52:51.000Z
2022-03-26T10:57:52.000Z
lib/dataset/target_generators/target_generators.py
nguyenbaviet/DEKR
b3904a4a3861c912d07c8294530772af33bda578
[ "MIT" ]
58
2021-04-07T07:40:31.000Z
2022-03-31T04:51:18.000Z
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Ke Sun (sunk@mail.ustc.edu.cn). # ------------------------------------------------------------------------------ from __future__ import absolute_import from __future...
41.464
96
0.469226
214ef82c763d987ce48be64e585eedf40b62c663
2,513
py
Python
source/remediation_runbooks/scripts/EnableAutoScalingGroupELBHealthCheck_validate.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
129
2020-08-11T18:18:50.000Z
2021-10-04T20:00:35.000Z
source/remediation_runbooks/scripts/EnableAutoScalingGroupELBHealthCheck_validate.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
39
2020-08-11T18:07:58.000Z
2021-10-15T16:26:24.000Z
source/remediation_runbooks/scripts/EnableAutoScalingGroupELBHealthCheck_validate.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
35
2020-08-15T04:57:27.000Z
2021-09-21T06:23:17.000Z
#!/usr/bin/python ############################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License Version 2.0 (the "License"). Y...
42.59322
91
0.48269
a4a1a84c2cb24d47cd6bc3720cd65e30a4ed5944
2,946
py
Python
singlecellmultiomics/statistic/scchicligation.py
RubenVanEsch/SingleCellMultiOmics
60e3a9655952a419b63515c639f591cc12c6e60b
[ "MIT" ]
null
null
null
singlecellmultiomics/statistic/scchicligation.py
RubenVanEsch/SingleCellMultiOmics
60e3a9655952a419b63515c639f591cc12c6e60b
[ "MIT" ]
null
null
null
singlecellmultiomics/statistic/scchicligation.py
RubenVanEsch/SingleCellMultiOmics
60e3a9655952a419b63515c639f591cc12c6e60b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from matplotlib.ticker import MaxNLocator import matplotlib.pyplot as plt from .statistic import StatisticHistogram import singlecellmultiomics.pyutils as pyutils import collections import pandas as pd import matplotlib matplotlib.rcParams['figure.dpi'] = 160 m...
32.373626
76
0.558045
0c39319d8f28712c64acd97cba44c4b4496ad1bc
24,594
py
Python
test/functional/abc_rpc_avalancheproof.py
masteruah-RafaelRomeroDam/bitcoin-abc
442d3d11c1840f457c42ee86f07b0f3891b5722d
[ "MIT" ]
null
null
null
test/functional/abc_rpc_avalancheproof.py
masteruah-RafaelRomeroDam/bitcoin-abc
442d3d11c1840f457c42ee86f07b0f3891b5722d
[ "MIT" ]
null
null
null
test/functional/abc_rpc_avalancheproof.py
masteruah-RafaelRomeroDam/bitcoin-abc
442d3d11c1840f457c42ee86f07b0f3891b5722d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2021 The Bitcoin developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test building avalanche proofs and using them to add avalanche peers.""" import base64 from decimal import Decima...
43.917857
107
0.601448
1c1bfb47ec2951aa9735bb5b6e01df5c890db14b
4,957
py
Python
model/non_rg_metrics.py
wanghm92/rotowire_fg
67d7534f78368da8cb74bd222f311fc1a8906ba9
[ "MIT" ]
13
2019-11-11T12:03:15.000Z
2022-03-31T20:02:41.000Z
model/non_rg_metrics.py
wanghm92/rotowire_fg
67d7534f78368da8cb74bd222f311fc1a8906ba9
[ "MIT" ]
5
2020-07-21T03:15:16.000Z
2021-02-08T02:27:04.000Z
model/non_rg_metrics.py
wanghm92/rotowire_fg
67d7534f78368da8cb74bd222f311fc1a8906ba9
[ "MIT" ]
8
2019-11-12T10:38:20.000Z
2020-11-16T02:28:47.000Z
import sys from pyxdameraulevenshtein import normalized_damerau_levenshtein_distance from text2num import text2num full_names = ['Atlanta Hawks', 'Boston Celtics', 'Brooklyn Nets', 'Charlotte Hornets', 'Chicago Bulls', 'Cleveland Cavaliers', 'Detroit Pistons', 'Indiana Pacers', 'Miami Heat', 'Milwaukee Bucks', 'New ...
34.664336
94
0.614283
1369783657f92a9b8d00aeeeff9328271d9732bb
44,983
py
Python
pandas/tests/indexes/datetimes/test_timezones.py
streeck/pandas
da9d85122a5b36b89fffa8f86ef768db20fc64c0
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/indexes/datetimes/test_timezones.py
streeck/pandas
da9d85122a5b36b89fffa8f86ef768db20fc64c0
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/indexes/datetimes/test_timezones.py
streeck/pandas
da9d85122a5b36b89fffa8f86ef768db20fc64c0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Tests for DatetimeIndex timezone-related methods """ from datetime import datetime, timedelta, tzinfo, date, time from distutils.version import LooseVersion import pytest import pytz import dateutil from dateutil.tz import gettz, tzlocal import numpy as np import pandas.util.testing as tm ...
40.020463
79
0.567592
b13f47e827b8adedf0671a10eca6fb3c9f185c4a
5,665
py
Python
camera/face_detection/config.py
NgoJunHaoJason/CZ3002
2d6cf58652fc9ef9da93237ca00e9ca55b24ae23
[ "MIT" ]
2
2021-02-13T15:35:47.000Z
2021-02-15T02:55:37.000Z
camera/face_detection/config.py
SebastianLiando/CZ3002
b8cfefa81eee2efb49df6474ee947fe62528091f
[ "MIT" ]
13
2021-02-15T08:07:02.000Z
2021-04-08T08:24:09.000Z
camera/face_detection/config.py
NgoJunHaoJason/CZ3002
2d6cf58652fc9ef9da93237ca00e9ca55b24ae23
[ "MIT" ]
2
2021-03-06T02:20:21.000Z
2021-04-01T14:25:30.000Z
''' Configurations for LFFD ''' import sys import datetime import os import math import logging import mxnet ''' init logging ''' param_log_mode = 'w' param_log_file_path = '../log/%s_%s.log' % (os.path.basename(__file__)[:-3], datetime.datetime.now().strftime('%Y-%m-%d-%H-%M-%S')) ''' data setting ''' # pick fi...
30.456989
137
0.732392
055e476f52b2f948aaad3c158173539edbce4fca
6,196
py
Python
sdk/python/pulumi_equinix_metal/get_hardware_reservation.py
pulumi/pulumi-equinix-metal
79213497bddc7ae806d3b27c3f349fdff935a19f
[ "ECL-2.0", "Apache-2.0" ]
1
2021-01-08T21:57:33.000Z
2021-01-08T21:57:33.000Z
sdk/python/pulumi_equinix_metal/get_hardware_reservation.py
pulumi/pulumi-equinix-metal
79213497bddc7ae806d3b27c3f349fdff935a19f
[ "ECL-2.0", "Apache-2.0" ]
33
2020-12-23T21:37:39.000Z
2022-03-25T19:23:17.000Z
sdk/python/pulumi_equinix_metal/get_hardware_reservation.py
pulumi/pulumi-equinix-metal
79213497bddc7ae806d3b27c3f349fdff935a19f
[ "ECL-2.0", "Apache-2.0" ]
1
2021-01-08T21:24:44.000Z
2021-01-08T21:24:44.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
36.023256
170
0.64816
d102bcbc2d154058fa78f81a689578f82a80619e
4,621
py
Python
moldynplot/dataset/SAXSTimeSeriesDataset.py
KarlTDebiec/myplotspec_sim
f63ebf446ff6365857c544508931a21eb75e57e7
[ "BSD-3-Clause" ]
8
2016-07-20T16:26:18.000Z
2020-05-22T21:58:27.000Z
moldynplot/dataset/SAXSTimeSeriesDataset.py
KarlTDebiec/myplotspec_sim
f63ebf446ff6365857c544508931a21eb75e57e7
[ "BSD-3-Clause" ]
2
2016-07-23T17:17:16.000Z
2018-02-07T03:34:27.000Z
moldynplot/dataset/SAXSTimeSeriesDataset.py
KarlTDebiec/myplotspec_sim
f63ebf446ff6365857c544508931a21eb75e57e7
[ "BSD-3-Clause" ]
4
2016-07-20T16:26:29.000Z
2022-03-27T18:28:50.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # moldynplot.dataset.SAXSTimeSeriesDataset.py # # Copyright (C) 2015-2017 Karl T Debiec # All rights reserved. # # This software may be modified and distributed under the terms of the # BSD license. See the LICENSE file for details. """ Manages Small Angle X-ray Scatt...
36.674603
79
0.585155
b6b38c24431660460516cfc0394aab2e2779b6c4
519
py
Python
wowa/tracker/migrations/0017_realmitempriceondate_avg_price.py
arruda/wowa
225e53b8de167d4e7be9550edbbd8e1c0c47d039
[ "MIT" ]
null
null
null
wowa/tracker/migrations/0017_realmitempriceondate_avg_price.py
arruda/wowa
225e53b8de167d4e7be9550edbbd8e1c0c47d039
[ "MIT" ]
1
2015-01-12T02:11:10.000Z
2015-01-12T02:11:10.000Z
wowa/tracker/migrations/0017_realmitempriceondate_avg_price.py
arruda/wowa
225e53b8de167d4e7be9550edbbd8e1c0c47d039
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('tracker', '0016_auto_20141130_1542'), ] operations = [ migrations.AddField( model_name='realmitempriceondate', ...
24.714286
117
0.635838
950b77c06d5fb924e56d630d1bf40c1e75fd6dcf
2,875
py
Python
wicarproject/utilities/smsutil.py
todhm/wicarproject
5a3ea7b70ba6649af75d9e9bb49683eb6f94b570
[ "MIT" ]
1
2018-04-20T04:58:50.000Z
2018-04-20T04:58:50.000Z
wicarproject/utilities/smsutil.py
todhm/wicarproject
5a3ea7b70ba6649af75d9e9bb49683eb6f94b570
[ "MIT" ]
7
2021-02-08T20:24:49.000Z
2022-03-11T23:26:33.000Z
wicarproject/utilities/smsutil.py
todhm/wicarproject
5a3ea7b70ba6649af75d9e9bb49683eb6f94b570
[ "MIT" ]
null
null
null
import os, sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from flask import session,current_app import random import requests import json from settings import BLUEHOUSE_URL, BLUEHOUSE_APP_ID, BLUEHOUSE_SECRET_KEY import boto3 def send_confirmation_code(to_number): verification...
30.585106
101
0.562435
b3dd612d0caff6716448b66483ff311d2d3ce9fc
12,825
py
Python
numpy/lib/tests/test__iotools.py
numpy/numpy-refactor
6de313865ec3f49bcdd06ccbc879f27e65acf818
[ "BSD-3-Clause" ]
15
2015-03-23T09:40:07.000Z
2020-04-19T15:14:49.000Z
numpy/lib/tests/test__iotools.py
numpy/numpy-refactor
6de313865ec3f49bcdd06ccbc879f27e65acf818
[ "BSD-3-Clause" ]
5
2016-07-02T15:34:00.000Z
2020-09-01T06:45:13.000Z
numpy/lib/tests/test__iotools.py
numpy/numpy-refactor
6de313865ec3f49bcdd06ccbc879f27e65acf818
[ "BSD-3-Clause" ]
17
2015-02-12T21:33:40.000Z
2021-02-23T06:53:03.000Z
import sys if sys.version_info[0] >= 3: from io import BytesIO def StringIO(s=""): return BytesIO(asbytes(s)) else: from StringIO import StringIO from datetime import date import time import numpy as np from numpy.lib._iotools import LineSplitter, NameValidator, StringConverter, \ ...
40.714286
80
0.549552
6af7957b51d6f226b045e1842fb411955b150d73
16,129
py
Python
webrisk/google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client.py
Kami/google-cloud-python
a14ffbaa50f7823c2792e91413a37cbc3ce687f5
[ "Apache-2.0" ]
1
2019-06-14T10:11:59.000Z
2019-06-14T10:11:59.000Z
webrisk/google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client.py
Kami/google-cloud-python
a14ffbaa50f7823c2792e91413a37cbc3ce687f5
[ "Apache-2.0" ]
null
null
null
webrisk/google/cloud/webrisk_v1beta1/gapic/web_risk_service_v1_beta1_client.py
Kami/google-cloud-python
a14ffbaa50f7823c2792e91413a37cbc3ce687f5
[ "Apache-2.0" ]
1
2020-04-14T10:47:41.000Z
2020-04-14T10:47:41.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
43.474394
133
0.634137
5569c1d57c9910e0c2635e5cbd98b2aaece6eed3
861
py
Python
repos/system_upgrade/el7toel8/actors/checkcifs/libraries/checkcifs.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
21
2018-11-20T15:58:39.000Z
2022-03-15T19:57:24.000Z
repos/system_upgrade/el7toel8/actors/checkcifs/libraries/checkcifs.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
732
2018-11-21T18:33:26.000Z
2022-03-31T16:16:24.000Z
repos/system_upgrade/el7toel8/actors/checkcifs/libraries/checkcifs.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
85
2018-11-20T17:55:00.000Z
2022-03-29T09:40:31.000Z
from leapp import reporting from leapp.reporting import create_report def checkcifs(storage_info): for storage in storage_info: if any(entry.fs_vfstype == "cifs" for entry in storage.fstab): create_report([ reporting.Title("Use of CIFS detected. Upgrade can't proceed"), ...
43.05
100
0.59698
c3ebfcd6e4fd41e56d96bf51889faff9de209dd3
108,367
py
Python
ui/pypesvds/lib/extras/pdflib/glyphlist.py
onfire73/pypeskg
2171d0141e184999ba03c3e535ecc9bfddef10be
[ "Apache-2.0" ]
117
2015-02-28T15:38:11.000Z
2022-02-12T16:08:41.000Z
ui/pypesvds/lib/extras/pdflib/glyphlist.py
onfire73/pypeskg
2171d0141e184999ba03c3e535ecc9bfddef10be
[ "Apache-2.0" ]
1
2015-10-07T19:59:52.000Z
2015-10-07T19:59:52.000Z
ui/pypesvds/lib/extras/pdflib/glyphlist.py
onfire73/pypeskg
2171d0141e184999ba03c3e535ecc9bfddef10be
[ "Apache-2.0" ]
41
2015-06-11T09:32:14.000Z
2018-09-17T03:10:23.000Z
# -*- python -*- # # glyphlist.py - mappings from Adobe glyph name to unicode. # # The following data was taken from # http://www.adobe.com/devnet/opentype/archives/glyphlist.txt # ### BEGIN Verbatim copy of the license part ################################################################################### # C...
24.986627
85
0.716796
de00cf5476680a93021e63c039376e5e63a3f9c1
7,864
py
Python
EnteroTyper/bin/concatenate_sequences.py
BFSSI-Bioinformatics-Lab/EnterobaseTyper
2e0bd605ce65eaa13bc8d74bf1c11b91e31d2dd7
[ "MIT" ]
1
2019-08-21T16:16:36.000Z
2019-08-21T16:16:36.000Z
EnteroTyper/bin/concatenate_sequences.py
BFSSI-Bioinformatics-Lab/EnterobaseTyper
2e0bd605ce65eaa13bc8d74bf1c11b91e31d2dd7
[ "MIT" ]
1
2019-08-10T16:36:20.000Z
2019-08-10T16:36:20.000Z
EnteroTyper/bin/concatenate_sequences.py
BFSSI-Bioinformatics-Lab/EnteroTyper
2e0bd605ce65eaa13bc8d74bf1c11b91e31d2dd7
[ "MIT" ]
null
null
null
import os import logging import pandas as pd import multiprocessing from copy import deepcopy from tqdm import tqdm from pathlib import Path from EnteroTyper.bin.compare_sequences_types import call_sequence_comparison from EnteroTyper.bin.typer import get_database_files, generate_cgmlst_report from EnteroTyper.bin.acce...
37.270142
120
0.661241
ad9ee96de633beb63aaaad28244604428dced3c5
1,569
py
Python
studies/spar_design/spar_design.py
peterdsharpe/DawnDesignTool
7c8b87db33e151cf50e07da982f51494ef84d80a
[ "MIT" ]
3
2021-09-28T16:05:51.000Z
2021-12-29T01:08:24.000Z
studies/spar_design/spar_design.py
peterdsharpe/DawnDesignTool
7c8b87db33e151cf50e07da982f51494ef84d80a
[ "MIT" ]
1
2021-12-08T17:35:41.000Z
2021-12-08T17:35:41.000Z
studies/spar_design/spar_design.py
peterdsharpe/DawnDesignTool
7c8b87db33e151cf50e07da982f51494ef84d80a
[ "MIT" ]
null
null
null
from aerosandbox.structures.beams import TubeBeam1 import casadi as cas opti = cas.Opti() # initializes an optimization/design environment beam = TubeBeam1( opti=opti, length=49 / 2, points_per_point_load=50, diameter_guess=100, thickness = 0.70e-3, bending=True, torsion=False, ) lift_forc...
29.055556
106
0.692798
3e25c732cc267567406c564eabe4e5fdef73a214
3,925
py
Python
src/recommendationservice/recommendation_server.py
Shahroz16/goloco
1932d6f4cc4bd3f109ab1575cdc6effc635f9f13
[ "Apache-2.0" ]
null
null
null
src/recommendationservice/recommendation_server.py
Shahroz16/goloco
1932d6f4cc4bd3f109ab1575cdc6effc635f9f13
[ "Apache-2.0" ]
null
null
null
src/recommendationservice/recommendation_server.py
Shahroz16/goloco
1932d6f4cc4bd3f109ab1575cdc6effc635f9f13
[ "Apache-2.0" ]
null
null
null
import os import time from collections import ChainMap from concurrent import futures import geopy.distance import grpc from grpc_health.v1 import health_pb2_grpc from grpc_health.v1 import health_pb2 import goloco_pb2 import goloco_pb2_grpc from logger import get_json_logger logger = get_json_logger('recommendation...
43.131868
119
0.722548
3499ea9c59917341b20a1e48d646a03be2ce359f
8,413
py
Python
hexrd/ui/interactive_template.py
cjh1/hexrdgui
eb8968ba763cebbffce61164f1bda1e2cc622461
[ "BSD-3-Clause" ]
null
null
null
hexrd/ui/interactive_template.py
cjh1/hexrdgui
eb8968ba763cebbffce61164f1bda1e2cc622461
[ "BSD-3-Clause" ]
1
2020-10-29T14:34:42.000Z
2020-10-29T15:30:20.000Z
hexrd/ui/interactive_template.py
cjh1/hexrdgui
eb8968ba763cebbffce61164f1bda1e2cc622461
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from matplotlib import patches from matplotlib.path import Path from matplotlib.transforms import Affine2D from skimage.draw import polygon from hexrd.ui.create_hedm_instrument import create_hedm_instrument from hexrd.ui.hexrd_config import HexrdConfig from hexrd.ui import resource_loader class ...
31.74717
76
0.587068
c8f7a94e0da851401bd4288acaa8408fa7d2719c
3,587
py
Python
iwawo/unchi_detect.py
wbawakate/baby-unchi
1c904e7bdbf7773938d12cdbe21795ed17d3e042
[ "MIT" ]
1
2020-04-09T06:16:23.000Z
2020-04-09T06:16:23.000Z
iwawo/unchi_detect.py
wbawakate/baby-unchi
1c904e7bdbf7773938d12cdbe21795ed17d3e042
[ "MIT" ]
null
null
null
iwawo/unchi_detect.py
wbawakate/baby-unchi
1c904e7bdbf7773938d12cdbe21795ed17d3e042
[ "MIT" ]
null
null
null
#coding: utf-8 import argparse import numpy as np import chainer from chainer import cuda import chainer.functions as F from chainer import optimizers import time import pickle parser = argparse.ArgumentParser(description='Chainer example: MNIST') parser.add_argument('--gpu', '-gpu', default=-1, type=int, ...
26.182482
74
0.654307
75f8e8313822c88322c2896f04d8c799242fff02
14,616
py
Python
spinoffs/inference_gym/inference_gym/targets/plasma_spectroscopy.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
spinoffs/inference_gym/inference_gym/targets/plasma_spectroscopy.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
spinoffs/inference_gym/inference_gym/targets/plasma_spectroscopy.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Lint as: python3 # Copyright 2021 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
35.475728
80
0.707649
7097ca563adc4cad202e80a83d1496947b995be0
26,339
py
Python
corehq/apps/app_manager/tests/test_form_preparation_v2.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/app_manager/tests/test_form_preparation_v2.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/app_manager/tests/test_form_preparation_v2.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# coding=utf-8 from __future__ import absolute_import from __future__ import unicode_literals from corehq.apps.app_manager.exceptions import XFormException, XFormValidationError from corehq.apps.app_manager.models import ( AdvancedForm, AdvancedModule, AdvancedOpenCaseAction, Application, FormAction...
43.178689
112
0.662743
29368d331c9cb58c5d62536704fcbf225755595e
3,760
py
Python
termux-package.py
aburkivskyi/Trmx
5468f07bb49a4e49e6745a8c27f03f00bb622809
[ "Unlicense" ]
null
null
null
termux-package.py
aburkivskyi/Trmx
5468f07bb49a4e49e6745a8c27f03f00bb622809
[ "Unlicense" ]
null
null
null
termux-package.py
aburkivskyi/Trmx
5468f07bb49a4e49e6745a8c27f03f00bb622809
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 import os import time import sys os.system("clear") print('''\033[91m _____ ___ ___ __ __ _ ___ __ ___ _ ___ _ __ _ ___ ___ |_ _| __| _ \ \/ | | | \ \/ / | _ \/_\ / __| |/ / /_\ / __| __| | | | _|| / |\/| | |_| |> < | _/ _ \ (__| ' < / _ \ (_ | _| |_| |___|_|...
27.246377
222
0.526862
4e39fdf0bab520486a07f3e11c792b4bb43b6666
10,077
py
Python
plugins/slack/alerta_slack.py
sainivinit/alerta-contrib
69d271ef9fe6542727ec4aa39fc8e0f797f1e8b1
[ "MIT" ]
114
2015-02-05T00:22:16.000Z
2021-11-25T13:02:44.000Z
plugins/slack/alerta_slack.py
NeilOrley/alerta-contrib
69d271ef9fe6542727ec4aa39fc8e0f797f1e8b1
[ "MIT" ]
245
2016-01-09T22:29:09.000Z
2022-03-16T10:37:02.000Z
plugins/slack/alerta_slack.py
NeilOrley/alerta-contrib
69d271ef9fe6542727ec4aa39fc8e0f797f1e8b1
[ "MIT" ]
193
2015-01-30T21:22:49.000Z
2022-03-28T05:37:14.000Z
import json import logging import os import requests import traceback import ast LOG = logging.getLogger('alerta.plugins.slack') try: from jinja2 import Template except Exception as e: LOG.error('SLACK: ERROR - Jinja template error: %s, template functionality will be unavailable', e) try: from alerta.pl...
41.813278
200
0.603354
431bfc19497dc9c4a063aea36a6ff8117a67a7b8
2,477
py
Python
tests/keygen.py
tpoisot/tammy
0fbe0820c877fb06e1a95a38ab14099312b6a0cc
[ "BSD-2-Clause" ]
2
2015-09-20T05:14:14.000Z
2015-12-31T22:40:59.000Z
tests/keygen.py
tpoisot/tammy
0fbe0820c877fb06e1a95a38ab14099312b6a0cc
[ "BSD-2-Clause" ]
1
2015-08-21T16:54:58.000Z
2015-08-21T16:54:58.000Z
tests/keygen.py
tpoisot/tammy
0fbe0820c877fb06e1a95a38ab14099312b6a0cc
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python3 import sys, os import unittest import yaml import json sys.path.append(os.path.join(os.path.dirname(__file__), '..')) config_file = os.path.join(os.path.dirname(__file__), 'tammy.yaml') import tammy class Author(unittest.TestCase): @classmethod def setUp(self): self.lib = tamm...
34.402778
74
0.658458
45f181b2a64bc79a0113e68cca9434e24964a902
1,542
py
Python
adaptive_filter/fdaf.py
runngezhang/pyaec
4db53af0f418171a89a8e3a2dd26c28166b3aaae
[ "Apache-2.0" ]
2
2021-07-21T11:57:15.000Z
2021-07-23T08:33:19.000Z
adaptive_filter/fdaf.py
zqhy-bigtime/pyaec
ca2ae14eb1656bde7671cd6bc8b8865322a7ee5a
[ "Apache-2.0" ]
null
null
null
adaptive_filter/fdaf.py
zqhy-bigtime/pyaec
ca2ae14eb1656bde7671cd6bc8b8865322a7ee5a
[ "Apache-2.0" ]
1
2021-06-18T09:06:39.000Z
2021-06-18T09:06:39.000Z
# Copyright 2020 ewan xu<ewan_xu@outlook.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.0 # # Unless required by applicable law or agree...
28.555556
79
0.582361