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
934e01680c989249b519bc742c606a505e712464
813
py
Python
src/my_blog/autenticacao/migrations/0001_initial.py
luizsla/django-studies
8140428d2d64b86d7d5b44abcc79de59b2554846
[ "MIT" ]
null
null
null
src/my_blog/autenticacao/migrations/0001_initial.py
luizsla/django-studies
8140428d2d64b86d7d5b44abcc79de59b2554846
[ "MIT" ]
6
2021-03-30T13:53:29.000Z
2022-03-12T00:39:13.000Z
src/my_blog/autenticacao/migrations/0001_initial.py
luizsla/django-studies
8140428d2d64b86d7d5b44abcc79de59b2554846
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-07-01 20:11 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
30.111111
121
0.634686
d52ce0f0e95eca4851d8db8f945e3eb1d1ced8e1
1,526
py
Python
tests/basics/MainPrograms.py
RESP3CT88/Nuitka
0fcc25d9f00c4fc78c79a863c4b7987f573962e1
[ "Apache-2.0" ]
5,421
2018-09-24T08:04:06.000Z
2022-03-31T20:02:37.000Z
tests/basics/MainPrograms.py
ztessler/Nuitka
04c9a5471b702a0e5f28398f2661c93b83ab0d1a
[ "Apache-2.0" ]
1,348
2018-09-22T13:41:00.000Z
2022-03-31T22:33:40.000Z
tests/basics/MainPrograms.py
ztessler/Nuitka
04c9a5471b702a0e5f28398f2661c93b83ab0d1a
[ "Apache-2.0" ]
396
2018-09-28T15:37:03.000Z
2022-03-29T10:52:09.000Z
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
31.791667
81
0.669069
908b904eaa061ac9f507952279425598cccbfa64
11,755
py
Python
src/experiment.py
RobbinBouwmeester/LIT
0516a69fbf1b8e9976524e0c243f82de041df544
[ "Apache-2.0" ]
null
null
null
src/experiment.py
RobbinBouwmeester/LIT
0516a69fbf1b8e9976524e0c243f82de041df544
[ "Apache-2.0" ]
null
null
null
src/experiment.py
RobbinBouwmeester/LIT
0516a69fbf1b8e9976524e0c243f82de041df544
[ "Apache-2.0" ]
null
null
null
from pyteomics import mzml,mgf import matplotlib matplotlib.use('TkAgg') from matplotlib import pyplot as plt from search_engine import MS1_extracter import numpy as np import copy class Experiment(): def __init__(self,filename,delta_precursor=1,delta_rt=1,mgf=False): self.filename = filename self.ms1 = [] se...
35.194611
191
0.704977
6e5ecee2efce9062b3251b6995c3c11ea7a5ca28
11,158
py
Python
tests/test_mousebind.py
tiosgz/herbstluftwm
2f337ab3d73431b02f31e7d3cfee3a60fe77cdb9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_mousebind.py
tiosgz/herbstluftwm
2f337ab3d73431b02f31e7d3cfee3a60fe77cdb9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_mousebind.py
tiosgz/herbstluftwm
2f337ab3d73431b02f31e7d3cfee3a60fe77cdb9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import pytest import re import math # Note: For unknown reasons, mouse buttons 4 and 5 (scroll wheel) do not work # in Xvfb when running tests in the CI. Therefore, we maintain two lists of # buttons: MOUSE_BUTTONS_THAT_EXIST = [1, 2, 3, 4, 5] MOUSE_BUTTONS_THAT_WORK = [1, 2, 3] @pytest.mark.parametrize('method', ['...
37.442953
104
0.697975
4a5d2877020d204b5c83f6160fbafb13115d2cd6
4,544
py
Python
src/pfun/aio_trampoline.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
src/pfun/aio_trampoline.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
src/pfun/aio_trampoline.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from abc import ABC, abstractmethod from asyncio import iscoroutine from typing import (Awaitable, Callable, Generic, Iterable, List, TypeVar, Union, cast) from .immutable import Immutable from .monad import Monad A = TypeVar('A', covariant=True) B = TypeVar('B') C = TypeVar('C') class Trampolin...
28.759494
77
0.588468
854ea68c5cd426cf2e360918b78d6df59187692e
1,139
py
Python
shepherd/protos/text_pb2.py
pioneers/Shepherd
c76b70ca6cbe0db9e45bd55e1f87691a1f5cc3cd
[ "Apache-2.0" ]
1
2021-05-26T00:14:38.000Z
2021-05-26T00:14:38.000Z
shepherd/protos/text_pb2.py
pioneers/shepherd
c76b70ca6cbe0db9e45bd55e1f87691a1f5cc3cd
[ "Apache-2.0" ]
38
2020-06-17T05:57:30.000Z
2022-01-27T04:20:18.000Z
shepherd/protos/text_pb2.py
pioneers/Shepherd
c76b70ca6cbe0db9e45bd55e1f87691a1f5cc3cd
[ "Apache-2.0" ]
1
2021-06-17T18:47:12.000Z
2021-06-17T18:47:12.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: text.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google....
31.638889
153
0.785777
cdb9be1c239aef0572d33d6a107967ee79d4af5b
5,446
py
Python
test/functional/receivedby.py
PERSHYANCOIN/PERSHYANCOIN
bbadf90495732ecdbf5ab9a27e84e1dbdaff117d
[ "MIT" ]
1
2018-02-21T07:10:01.000Z
2018-02-21T07:10:01.000Z
test/functional/receivedby.py
pershyancoin/pershyancoin
bbadf90495732ecdbf5ab9a27e84e1dbdaff117d
[ "MIT" ]
2
2018-02-12T22:00:38.000Z
2018-02-12T22:01:03.000Z
test/functional/receivedby.py
PERSHYANCOIN/PERSHYANCOIN
bbadf90495732ecdbf5ab9a27e84e1dbdaff117d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Pershyancoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listreceivedbyaddress RPC.""" from decimal import Decimal from test_framework.test_frame...
45.008264
142
0.625964
ad6c6f70baf71916d5d89b05d88137afacfd7a4a
2,617
py
Python
testcube/urls.py
tobyqin/testcube
0a3e9a4ad61bd97ae46f878e188936f4725e1e49
[ "MIT" ]
28
2017-06-28T08:39:01.000Z
2022-01-24T11:47:41.000Z
testcube/urls.py
gunesmes/testcube
008740c278ad82e8b33cad7c069e3e8e086b389c
[ "MIT" ]
60
2017-06-06T04:06:46.000Z
2019-06-21T08:53:14.000Z
testcube/urls.py
gunesmes/testcube
008740c278ad82e8b33cad7c069e3e8e086b389c
[ "MIT" ]
10
2017-06-06T02:14:08.000Z
2022-02-07T14:43:28.000Z
"""testcube URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-b...
40.890625
84
0.710737
450116e83605118ec9192e31900610715c7a4afe
1,084
py
Python
glossy-gorillas/core/factories/trader.py
fliepeltje/summer-code-jam-2020
de1287b643b610d9c5df49778bfbeae5dd115df1
[ "MIT" ]
40
2020-08-02T07:38:22.000Z
2021-07-26T01:46:50.000Z
glossy-gorillas/core/factories/trader.py
fliepeltje/summer-code-jam-2020
de1287b643b610d9c5df49778bfbeae5dd115df1
[ "MIT" ]
134
2020-07-31T12:15:45.000Z
2020-12-13T04:42:19.000Z
glossy-gorillas/core/factories/trader.py
fliepeltje/summer-code-jam-2020
de1287b643b610d9c5df49778bfbeae5dd115df1
[ "MIT" ]
101
2020-07-31T12:00:47.000Z
2021-11-01T09:06:58.000Z
import factory from django.contrib.auth.models import User from core.models import Trader, InventoryRecord, QuantityType as QT from core.factories.product import ProductFactory class UserFactory(factory.DjangoModelFactory): username = factory.Sequence(lambda n: f"teabay_user_{n+1}") first_name = factory.Faker...
29.297297
94
0.72417
cc670a08f3a53b36ed67ccd4823f1cd82b90d3ee
639
py
Python
geoevents/taggit/tests/forms.py
ngageoint/geoevents
11d11b97033403f81934270c10d655b8e699c410
[ "MIT" ]
25
2015-01-06T15:37:31.000Z
2020-12-10T19:05:22.000Z
geoevents/taggit/tests/forms.py
ngageoint/geoevents
11d11b97033403f81934270c10d655b8e699c410
[ "MIT" ]
2
2015-01-31T02:36:58.000Z
2015-02-01T00:11:15.000Z
geoevents/taggit/tests/forms.py
ngageoint/geoevents
11d11b97033403f81934270c10d655b8e699c410
[ "MIT" ]
5
2016-01-01T15:04:49.000Z
2019-05-30T23:34:30.000Z
# This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and # is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012) from django import forms from taggit.tests.models import Food, DirectFood, CustomPKFood, OfficialFood class Fo...
26.625
104
0.735524
17ba785e8e96e79cd1c9f27627dad3dff9f74f3d
22,970
py
Python
corehq/apps/commtrack/tests/test_xml.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/commtrack/tests/test_xml.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/commtrack/tests/test_xml.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal from django.test.utils import override_settings from lxml import etree import os import random import uuid from datetime import datetime from casexml.apps.case.mock import CaseBlock from casexml.apps.case.xml import V2 from casexml.apps.phone.restore import RestoreConfig from casexml.apps.ph...
40.654867
116
0.657423
78bf93374fcc95e78fba6cdd501cc5368c079e0a
2,262
py
Python
venv/Lib/site-packages/qtpy/tests/test_qtlocation.py
BoxicaLion/BasicMathFormulas
4d9782f2c0c75ecccf4c0ea995f324f93e4fb6e2
[ "MIT" ]
1,520
2015-01-06T15:55:15.000Z
2022-03-31T21:50:23.000Z
qtpy/tests/test_qtlocation.py
phil65/qtpy
a228a667829be5822cf810fb06b53bf03a2b7b39
[ "MIT" ]
546
2015-01-02T07:59:42.000Z
2022-03-31T12:51:29.000Z
qtpy/tests/test_qtlocation.py
phil65/qtpy
a228a667829be5822cf810fb06b53bf03a2b7b39
[ "MIT" ]
328
2015-01-06T15:55:21.000Z
2022-03-28T22:07:25.000Z
from __future__ import absolute_import import pytest from qtpy import PYQT5, PYSIDE2 @pytest.mark.skipif(not (PYQT5 or PYSIDE2), reason="Only available in Qt5 bindings") def test_qtlocation(): """Test the qtpy.QtLocation namespace""" from qtpy import QtLocation assert QtLocation.QGeoCodeReply is not None ...
46.163265
84
0.799735
431d15cfe82c7eb45d49c4dd3bad452700397dfa
506
py
Python
Lib/site-packages/plotly/validators/histogram/marker/_reversescale.py
tytanya/my-first-blog
2b40adb0816c3546e90ad6ca1e7fb50d924c1536
[ "bzip2-1.0.6" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/histogram/marker/_reversescale.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/histogram/marker/_reversescale.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name='reversescale', parent_name='histogram.marker', **kwargs ): super(ReversescaleValidator, self).__init__( plotly_n...
26.631579
75
0.618577
c4a5ed74cbb767745cd033ab8a465df783ed3f9a
11,678
py
Python
nodeum_sdk/models/task_source_up.py
nodeum-io/nodeum-sdk-python
205536491bff507dea7be44af46202c17e7121d9
[ "MIT" ]
null
null
null
nodeum_sdk/models/task_source_up.py
nodeum-io/nodeum-sdk-python
205536491bff507dea7be44af46202c17e7121d9
[ "MIT" ]
null
null
null
nodeum_sdk/models/task_source_up.py
nodeum-io/nodeum-sdk-python
205536491bff507dea7be44af46202c17e7121d9
[ "MIT" ]
null
null
null
# coding: utf-8 """ Nodeum API The Nodeum API makes it easy to tap into the digital data mesh that runs across your organisation. Make requests to our API endpoints and we’ll give you everything you need to interconnect your business workflows with your storage. All production API requests are made to: http...
35.387879
2,886
0.631615
dcce2b8ecfa02b997eb3e1edc98ba6c8f90deefc
727
py
Python
MachineLearning/hw2_q2/Step 1/hw2.py
SeanSyue/SklearnReferences
a2770a7108947877e772f3525bc915c5de4114bb
[ "MIT" ]
null
null
null
MachineLearning/hw2_q2/Step 1/hw2.py
SeanSyue/SklearnReferences
a2770a7108947877e772f3525bc915c5de4114bb
[ "MIT" ]
null
null
null
MachineLearning/hw2_q2/Step 1/hw2.py
SeanSyue/SklearnReferences
a2770a7108947877e772f3525bc915c5de4114bb
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.tree import DecisionTreeClassifier ##Read csv file retreived from "https://www.kaggle.com/c/spooky-author-identification" csv = pd.read_csv("C:/Users/Sean/Downloads/sample_submission/sample_submission.csv") ##Train the decision tree tree = DecisionTreeClassifier(criterion='entr...
42.764706
112
0.748281
c3c45ccb00c5af4e0c2ad0e8ce5ea2892d21c0ab
1,960
py
Python
examples/augmentations.py
simleo/pyecvl
c044dc2ddf9bb69e93ffe06113de9365dc84e168
[ "MIT" ]
2
2020-04-29T13:17:15.000Z
2021-01-07T19:13:14.000Z
examples/augmentations.py
simleo/pyecvl
c044dc2ddf9bb69e93ffe06113de9365dc84e168
[ "MIT" ]
19
2020-01-16T11:55:07.000Z
2022-02-28T11:27:40.000Z
examples/augmentations.py
deephealthproject/pyecvl
3fb256a77ab6d7ff62219044d54b51d84471db6e
[ "MIT" ]
2
2020-01-20T13:47:05.000Z
2020-02-27T11:13:32.000Z
# Copyright (c) 2019-2021 CRS4 # # 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, distribut...
37.692308
79
0.729592
f8050d9c4283bfdf08f0c0a367086c6b43081de1
4,392
py
Python
networking_bgpvpn/tests/unit/extensions/test_bgpvpn_vni.py
sapcc/networking-bgpvpn
902f817dc49bb19dfbda51ba85b3d0702542e859
[ "Apache-2.0" ]
null
null
null
networking_bgpvpn/tests/unit/extensions/test_bgpvpn_vni.py
sapcc/networking-bgpvpn
902f817dc49bb19dfbda51ba85b3d0702542e859
[ "Apache-2.0" ]
null
null
null
networking_bgpvpn/tests/unit/extensions/test_bgpvpn_vni.py
sapcc/networking-bgpvpn
902f817dc49bb19dfbda51ba85b3d0702542e859
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Ericsson India Global Services Pvt Ltd. 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 ...
35.707317
78
0.643215
b7754813fb4035c4bfd1d0f6e35d307f87785f66
20,563
py
Python
app.py
Architkapoor13/EZY-BUY-SELL-E-Commerce
835defcc668a397a8c384ddf05f04856137bb78b
[ "MIT" ]
3
2021-04-25T00:11:16.000Z
2022-03-07T16:05:32.000Z
app.py
Architkapoor13/EZY-BUY-SELL-E-Commerce
835defcc668a397a8c384ddf05f04856137bb78b
[ "MIT" ]
null
null
null
app.py
Architkapoor13/EZY-BUY-SELL-E-Commerce
835defcc668a397a8c384ddf05f04856137bb78b
[ "MIT" ]
null
null
null
import os from cs50 import SQL from flask import Flask, flash, jsonify, redirect, render_template, request, session, url_for from flask_session import Session from tempfile import mkdtemp from werkzeug.exceptions import default_exceptions, HTTPException, InternalServerError from werkzeug.security import check_password...
43.938034
249
0.649808
e7bcf39a37a94fbcc1f06f478b46b28c60ba0c4b
2,363
py
Python
ptpython/entry_points/run_ptipython.py
vxgmichel/ptpython
89017ba158ed1d95319233fa5aedf3931c3b8b77
[ "BSD-3-Clause" ]
1
2020-03-12T06:46:32.000Z
2020-03-12T06:46:32.000Z
ptpython/entry_points/run_ptipython.py
vxgmichel/ptpython
89017ba158ed1d95319233fa5aedf3931c3b8b77
[ "BSD-3-Clause" ]
null
null
null
ptpython/entry_points/run_ptipython.py
vxgmichel/ptpython
89017ba158ed1d95319233fa5aedf3931c3b8b77
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import sys from .run_ptpython import create_parser, get_config_and_history_file def run(user_ns=None): a = create_parser().parse_args() config_file, history_file = get_config_and_history_file(a) # If IPython is not available, show message and exit here with error status ...
29.17284
81
0.578079
80ed5ee378535cc4ee77be814e666111fab97c25
444
py
Python
ecommerce/exceptions.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
32
2016-03-25T01:03:13.000Z
2022-01-15T19:35:42.000Z
ecommerce/exceptions.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
4,858
2016-03-03T13:48:30.000Z
2022-03-29T22:09:51.000Z
ecommerce/exceptions.py
umarmughal824/micromasters
ea92d3bcea9be4601150fc497302ddacc1161622
[ "BSD-3-Clause" ]
20
2016-08-18T22:07:44.000Z
2021-11-15T13:35:35.000Z
""" Exceptions for ecommerce """ class EcommerceException(Exception): """ General exception regarding ecommerce """ class EcommerceEdxApiException(Exception): """ Exception regarding edx_api_client """ class EcommerceModelException(Exception): """ Exception regarding ecommerce mode...
15.857143
61
0.693694
11d01787ef9b8d38605583892d2e3f3484a769c8
14,054
py
Python
python/pytagcloudLocal/__init__.py
jstraub/dpMM
538c432d5f98c040d5c1adb072e545e38f97fc69
[ "MIT-feh" ]
11
2015-04-27T15:14:01.000Z
2021-11-18T00:19:18.000Z
python/pytagcloudLocal/__init__.py
jstraub/dpMM
538c432d5f98c040d5c1adb072e545e38f97fc69
[ "MIT-feh" ]
null
null
null
python/pytagcloudLocal/__init__.py
jstraub/dpMM
538c432d5f98c040d5c1adb072e545e38f97fc69
[ "MIT-feh" ]
6
2015-07-02T12:46:20.000Z
2022-03-30T04:39:30.000Z
# -*- coding: utf-8 -*- from copy import copy from math import sin, cos, ceil from pygame import transform, font, mask, Surface, Rect, SRCALPHA, draw from pygame.sprite import Group, Sprite, collide_mask from random import randint, choice import colorsys import math import os import pygame import simplejson TAG_PADDI...
33.86506
128
0.534866
bb07f9bab1819334214ddcaefcab3a4f097f81ca
199
py
Python
examples/another_sync_example.py
Bs0Dd/KunAPIPy
1e729b150ba787c84fb37b7351c2da2264977440
[ "Unlicense" ]
6
2020-04-21T11:15:52.000Z
2022-02-05T06:42:07.000Z
examples/another_sync_example.py
Bs0Dd/KunAPIPy
1e729b150ba787c84fb37b7351c2da2264977440
[ "Unlicense" ]
2
2022-02-02T16:28:27.000Z
2022-02-25T14:28:20.000Z
examples/another_sync_example.py
Bs0Dd/KunAPIPy
1e729b150ba787c84fb37b7351c2da2264977440
[ "Unlicense" ]
null
null
null
from kunapipy.kundelik import kundelik login = "login" password = "password" with kundelik.KunAPI(login=login, password=password) as dn: print(dn.get_classmates()) print(dn.get_context())
19.9
59
0.738693
dabd44e515abfdda403b5fb8cfb9c0415d08e385
32,277
py
Python
dafi/random_field/field.py
cmichelenstrofer/DAFI
926c1fc009fbb92294b9f4c565ef2fc91979a8fa
[ "Apache-2.0" ]
24
2020-03-03T14:33:09.000Z
2022-03-14T00:11:26.000Z
dafi/random_field/field.py
cmichelenstrofer/DAFI
926c1fc009fbb92294b9f4c565ef2fc91979a8fa
[ "Apache-2.0" ]
null
null
null
dafi/random_field/field.py
cmichelenstrofer/DAFI
926c1fc009fbb92294b9f4c565ef2fc91979a8fa
[ "Apache-2.0" ]
19
2020-03-03T14:33:42.000Z
2022-03-28T11:42:34.000Z
""" Random fields representation and manipulation. These functions can be called directly from ``dafi.random_field``, e.g. .. code-block:: python >>> dafi.random_field.calc_kl_modes(*args) """ # standard library imports import warnings # third party imports import numpy as np from scipy import sparse as sp fro...
31.55132
79
0.608886
36711536321b96febc7e357452abee76ddf967f2
2,872
py
Python
examples/01_plotting/plot_overlay.py
ctw/nilearn
932eee9c69cd8fbf40ee6af5cee77f8f93b25da3
[ "BSD-2-Clause" ]
827
2015-01-30T23:11:42.000Z
2022-03-29T21:21:05.000Z
examples/01_plotting/plot_overlay.py
ctw/nilearn
932eee9c69cd8fbf40ee6af5cee77f8f93b25da3
[ "BSD-2-Clause" ]
2,845
2015-01-04T22:14:41.000Z
2022-03-31T20:28:09.000Z
examples/01_plotting/plot_overlay.py
ctw/nilearn
932eee9c69cd8fbf40ee6af5cee77f8f93b25da3
[ "BSD-2-Clause" ]
484
2015-02-03T10:58:19.000Z
2022-03-29T21:57:16.000Z
""" Visualizing a probabilistic atlas: the default mode in the MSDL atlas ===================================================================== Visualizing a probabilistic atlas requires visualizing the different maps that compose it. Here we represent the nodes constituting the default mode network in the `MSDL atla...
39.342466
126
0.588788
3ed999f20ceaec0707c6bc0cbe46a3fc10b04d26
3,820
py
Python
src/aux.py
MartaLopesGomes/KEGGScraper
94f9b63b89f0b45c9e3bf39b6d2e825637b3ca00
[ "MIT" ]
null
null
null
src/aux.py
MartaLopesGomes/KEGGScraper
94f9b63b89f0b45c9e3bf39b6d2e825637b3ca00
[ "MIT" ]
null
null
null
src/aux.py
MartaLopesGomes/KEGGScraper
94f9b63b89f0b45c9e3bf39b6d2e825637b3ca00
[ "MIT" ]
1
2020-03-17T06:29:20.000Z
2020-03-17T06:29:20.000Z
# -*- coding: utf-8 -*- """ """ from bs4 import BeautifulSoup as bs def parser_ids(file): res = [] with open(file, 'r') as f: lines = f.readlines() for line in lines: kID = line.strip().upper() if len(kID) > 0: res.append(kID) return res def check_ec(ecs): e...
24.025157
84
0.575916
ae8d2ac4c388f16af66f26814c4770f3ba5a8bcf
259
py
Python
old/pepper1/src/libpepper/vals/control_flow/__init__.py
andybalaam/pepper
f0d12379c7c6e2d82003c0c1d6130bfac685e1c3
[ "MIT" ]
2
2018-12-19T16:32:46.000Z
2019-01-10T09:00:33.000Z
old/pepper1/src/libpepper/vals/control_flow/__init__.py
andybalaam/pepper
f0d12379c7c6e2d82003c0c1d6130bfac685e1c3
[ "MIT" ]
null
null
null
old/pepper1/src/libpepper/vals/control_flow/__init__.py
andybalaam/pepper
f0d12379c7c6e2d82003c0c1d6130bfac685e1c3
[ "MIT" ]
null
null
null
# Copyright (C) 2012 Andy Balaam and The Pepper Developers # Released under the MIT License. See the file COPYING.txt for details. from pepfor import PepFor from peprange import PepRange from pepwhile import PepWhile from pepcodeblock import PepCodeBlock
25.9
72
0.810811
1fc0b9300e5455af40af83a938635562940d24aa
1,311
py
Python
interview/wepay/binary-tree-level-order-print.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
10
2019-09-15T00:23:57.000Z
2022-01-05T12:53:42.000Z
interview/wepay/binary-tree-level-order-print.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
3
2021-06-30T00:39:26.000Z
2021-08-01T07:13:59.000Z
interview/wepay/binary-tree-level-order-print.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
6
2020-02-08T02:55:22.000Z
2022-01-02T22:48:18.000Z
""" 1 2 3 4 5 print out should be 1 2 3 . 4 . 5 """ # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right from collections import deque class Solution: ...
22.220339
60
0.45614
0f10290691c418f80ff42cdb7ca66a15b2def894
481
py
Python
backend/config/mirror.py
sartography/star-drive
c0f33378d42913c3e677e07f74eb46d7b2b82a0a
[ "MIT" ]
null
null
null
backend/config/mirror.py
sartography/star-drive
c0f33378d42913c3e677e07f74eb46d7b2b82a0a
[ "MIT" ]
368
2018-12-18T14:43:20.000Z
2022-03-02T02:54:18.000Z
backend/config/mirror.py
sartography/star-drive
c0f33378d42913c3e677e07f74eb46d7b2b82a0a
[ "MIT" ]
2
2019-10-02T03:06:06.000Z
2020-10-05T16:53:48.000Z
MIRRORING = True SERVER_NAME = "localhost:5001" MASTER_URL = "http://localhost:5000" MASTER_EMAIL = "daniel.h.funk@gmail.com" MASTER_PASS = "dfunk7" SQLALCHEMY_DATABASE_URI = "postgresql://ed_user:ed_pass@localhost/stardrive_mirror" # Elastic Search ELASTIC_SEARCH = { "index_prefix": "stardrive_mirror", "host...
20.913043
83
0.679834
0c36e7dcdb51e8a31b837592e6156e115cfbc5f8
4,941
py
Python
docs/conf.py
pyenergyplus/witheppy
ea9d21976fc018261aa5f8464125df4bf866171a
[ "MIT" ]
8
2018-12-12T23:00:44.000Z
2021-12-12T05:41:45.000Z
docs/conf.py
pyenergyplus/witheppy
ea9d21976fc018261aa5f8464125df4bf866171a
[ "MIT" ]
27
2018-10-18T10:31:27.000Z
2021-12-15T05:56:21.000Z
docs/conf.py
pyenergyplus/witheppy
ea9d21976fc018261aa5f8464125df4bf866171a
[ "MIT" ]
2
2018-10-15T15:36:02.000Z
2020-12-30T00:17:02.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # witheppy documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # au...
29.586826
78
0.67456
388c11b0ac8cee5f8d5a9a41acd7a56fdf35ace4
2,081
py
Python
starboard/starboard_entry.py
glryanon/Trusty-cogs
1d5056ad166a7e7ee5039baa31748b1995ae81f6
[ "MIT" ]
1
2020-12-28T15:58:16.000Z
2020-12-28T15:58:16.000Z
starboard/starboard_entry.py
glryanon/Trusty-cogs
1d5056ad166a7e7ee5039baa31748b1995ae81f6
[ "MIT" ]
null
null
null
starboard/starboard_entry.py
glryanon/Trusty-cogs
1d5056ad166a7e7ee5039baa31748b1995ae81f6
[ "MIT" ]
1
2020-07-27T00:04:45.000Z
2020-07-27T00:04:45.000Z
class StarboardEntry: def __init__( self, name: str, channel: int, emoji: str, colour: str = "user", enabled: bool = True, selfstar: bool = False, blacklist_role: list = [], whitelist_role: list = [], messages: list = [], blackl...
29.728571
56
0.524748
e2c307238258053dd5f23f0c8f7c7f3954207bac
18,061
py
Python
nevergrad/functions/base.py
mathuvu/nevergrad
8e116190a8a29c238e655d728fc4816f7b4e0415
[ "MIT" ]
null
null
null
nevergrad/functions/base.py
mathuvu/nevergrad
8e116190a8a29c238e655d728fc4816f7b4e0415
[ "MIT" ]
null
null
null
nevergrad/functions/base.py
mathuvu/nevergrad
8e116190a8a29c238e655d728fc4816f7b4e0415
[ "MIT" ]
null
null
null
# 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. import inspect from pathlib import Path import numbers import numpy as np import nevergrad.common.typing as tp from nevergrad.common import ...
46.790155
131
0.665633
bfde06c5cc36c0bb7e4ce523a7c5f573da81586c
4,482
py
Python
mitmproxy/protocol/http_replay.py
jvillacorta/mitmproxy
3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5
[ "MIT" ]
1
2018-03-31T17:16:07.000Z
2018-03-31T17:16:07.000Z
mitmproxy/protocol/http_replay.py
jvillacorta/mitmproxy
3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5
[ "MIT" ]
null
null
null
mitmproxy/protocol/http_replay.py
jvillacorta/mitmproxy
3aa2d59f627e0fc95167fb76ffbe84330e3a5cc5
[ "MIT" ]
4
2018-04-18T13:17:01.000Z
2021-02-21T17:08:33.000Z
from __future__ import absolute_import, print_function, division import traceback import netlib.exceptions from mitmproxy import controller from mitmproxy import exceptions from mitmproxy import models from netlib.http import http1 from netlib import basethread # TODO: Doesn't really belong into mitmproxy.protocol....
42.283019
106
0.550424
4f219e99578270fa19c1394d075fae20ade11680
2,375
py
Python
aiven/service/postgres.py
abn/aiven-monitor-http
a519aa8b17ecd9f645243dda8f6e32690b93741e
[ "Apache-2.0" ]
1
2020-04-26T13:56:26.000Z
2020-04-26T13:56:26.000Z
aiven/service/postgres.py
abn/aiven-monitor-http
a519aa8b17ecd9f645243dda8f6e32690b93741e
[ "Apache-2.0" ]
null
null
null
aiven/service/postgres.py
abn/aiven-monitor-http
a519aa8b17ecd9f645243dda8f6e32690b93741e
[ "Apache-2.0" ]
2
2020-07-10T13:48:39.000Z
2021-05-24T10:09:24.000Z
import logging import os import ssl from contextlib import asynccontextmanager from dataclasses import dataclass, field from typing import AsyncGenerator, List, Optional import asyncpg import ujson logger = logging.getLogger(__name__) @dataclass class PostgresManager: url: str = field( default=os.enviro...
31.666667
87
0.596632
d4cb1bb632f63b7e6bd47776bdc7088cae09ef1c
430
py
Python
apps/accounts/migrations/0003_alter_profile_allow_nsfw.py
Visualway/Vitary
c7db9a25837fa7390b2177b9db48e73c6f1ab3c8
[ "BSD-3-Clause" ]
4
2021-12-24T16:07:44.000Z
2022-03-04T02:30:20.000Z
apps/accounts/migrations/0003_alter_profile_allow_nsfw.py
Visualway/Vitary
c7db9a25837fa7390b2177b9db48e73c6f1ab3c8
[ "BSD-3-Clause" ]
4
2021-12-30T13:32:56.000Z
2022-03-15T03:58:48.000Z
apps/accounts/migrations/0003_alter_profile_allow_nsfw.py
Visualway/Vitary
c7db9a25837fa7390b2177b9db48e73c6f1ab3c8
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 4.0.2 on 2022-05-04 06:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_profile_allow_nsfw'), ] operations = [ migrations.AlterField( model_name='profile', name='allow_nsf...
22.631579
88
0.623256
740864a7334ef28bda4562198f520548c049c6f8
5,872
py
Python
docs/conf.py
jbellevi/lumopt
c350a1a03b7e4e4df2af3435dadac4624258da29
[ "MIT" ]
101
2018-09-25T01:46:01.000Z
2022-03-22T23:15:13.000Z
docs/conf.py
irdiez/lumopt_04_04_2020
c350a1a03b7e4e4df2af3435dadac4624258da29
[ "MIT" ]
13
2018-10-16T00:04:57.000Z
2022-02-18T06:28:28.000Z
docs/conf.py
irdiez/lumopt_04_04_2020
c350a1a03b7e4e4df2af3435dadac4624258da29
[ "MIT" ]
62
2018-09-30T00:59:47.000Z
2022-03-08T16:27:31.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
30.42487
83
0.652759
0f86be2feb31a6a5eb3eceb86c70f94bc8511842
1,143
py
Python
tools/view_npy.py
rehohoho/coiltraine
c3ce77d13fdf8f96eed3de0dae4c01be65cb5656
[ "MIT" ]
204
2019-01-28T13:31:53.000Z
2022-03-23T23:57:18.000Z
tools/view_npy.py
rehohoho/coiltraine
c3ce77d13fdf8f96eed3de0dae4c01be65cb5656
[ "MIT" ]
39
2019-02-02T22:14:14.000Z
2022-01-30T08:21:51.000Z
tools/view_npy.py
rehohoho/coiltraine
c3ce77d13fdf8f96eed3de0dae4c01be65cb5656
[ "MIT" ]
64
2019-02-24T10:26:04.000Z
2022-03-04T12:49:59.000Z
import argparse from PIL import Image import numpy as np import os from shutil import copyfile if __name__ == "__main__": parser = argparse.ArgumentParser(description='NPY viewer') # parser.add_argument('model', type=str, help='Path to model definition json. Model weights should be on the same path.') ...
30.078947
125
0.649169
eff06a2e0b1e9e169a80801fdc11248190795b2a
1,992
py
Python
exercicios_python/Exercicio_068.py
GabsOrtega/logica-python
6f4e752d0796c9bf70be8f7108bc3bd49d877709
[ "MIT" ]
null
null
null
exercicios_python/Exercicio_068.py
GabsOrtega/logica-python
6f4e752d0796c9bf70be8f7108bc3bd49d877709
[ "MIT" ]
null
null
null
exercicios_python/Exercicio_068.py
GabsOrtega/logica-python
6f4e752d0796c9bf70be8f7108bc3bd49d877709
[ "MIT" ]
null
null
null
from random import randint from time import sleep num = soma = venceu = 0 cond = '' print('='*20) print('PAR OU ÍMPAR') print('='*20) while True: num = int(input('Digite o valor desejado: ')) cond = str(input('Você quer par ou impar? [P/I]').upper().strip()[0]) computador = randint(0, 10) ...
29.731343
74
0.461847
38cf9ce3f7b0a16fcec9fe642139d032ad5ce3ab
5,617
py
Python
asim/models/MXGSEventReport.py
garethcmurphy/mysite
21a8247dbed3d3196ab22c5cdd10b0c79dccb991
[ "MIT" ]
null
null
null
asim/models/MXGSEventReport.py
garethcmurphy/mysite
21a8247dbed3d3196ab22c5cdd10b0c79dccb991
[ "MIT" ]
null
null
null
asim/models/MXGSEventReport.py
garethcmurphy/mysite
21a8247dbed3d3196ab22c5cdd10b0c79dccb991
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.postgres.fields import ArrayField import datetime from django.contrib import admin class MXGSEventReport (models.Model): packet_length = models.IntegerField('Packet length') INFORMATION = "INF" ADVISORY = "...
56.737374
204
0.680612
bc4ada34d6493d74e12bd34eb5f6e18dc0f48d47
1,788
py
Python
data_tools/text/binary_classification.py
lopez86/DataTools
573419f3a40ddeb5e9eaf5ced8ea8dbf41c8a65e
[ "MIT" ]
null
null
null
data_tools/text/binary_classification.py
lopez86/DataTools
573419f3a40ddeb5e9eaf5ced8ea8dbf41c8a65e
[ "MIT" ]
null
null
null
data_tools/text/binary_classification.py
lopez86/DataTools
573419f3a40ddeb5e9eaf5ced8ea8dbf41c8a65e
[ "MIT" ]
null
null
null
import tensorflow as tf from ..tf.model_layers import ( concatenate, dense_layer, dropout, global_max_pool, simple_text_inputs, text_conv_layer, text_embedding_layer, ) def binary_text_classification_cnn( sentence_length, vocab_size, embedding_size, convolutions, ...
35.058824
81
0.599553
1f040de9d9be3fd82dbf02e98c96455aa8cda294
50
py
Python
app/web/views/__init__.py
saury2013/online_book
53cf56b6a8e088011224559e90be4d23b2f604f9
[ "MIT" ]
null
null
null
app/web/views/__init__.py
saury2013/online_book
53cf56b6a8e088011224559e90be4d23b2f604f9
[ "MIT" ]
5
2021-03-18T20:34:55.000Z
2022-03-11T23:24:30.000Z
app/web/views/__init__.py
saury2013/online_book
53cf56b6a8e088011224559e90be4d23b2f604f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import app.web.views.home
16.666667
25
0.62
a3e4bf84475c2b99406b685f732ef21ad14b10a2
3,216
py
Python
TermTk/TTkWidgets/TTkModelView/tree.py
UltraStudioLTD/pyTermTk
a1e96b0e7f43906b9fda0b16f19f427919a055c2
[ "MIT" ]
1
2022-02-28T16:33:25.000Z
2022-02-28T16:33:25.000Z
TermTk/TTkWidgets/TTkModelView/tree.py
UltraStudioLTD/pyTermTk
a1e96b0e7f43906b9fda0b16f19f427919a055c2
[ "MIT" ]
null
null
null
TermTk/TTkWidgets/TTkModelView/tree.py
UltraStudioLTD/pyTermTk
a1e96b0e7f43906b9fda0b16f19f427919a055c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2021 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> # # 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 restricti...
40.708861
83
0.711443
e3c45322b349ce7533e6ee1496b5825733595cf5
4,394
py
Python
20.py
xeno14/advent_of_code2018
87d0f4dc76ca9cd82d68618255709e446cf09b37
[ "MIT" ]
null
null
null
20.py
xeno14/advent_of_code2018
87d0f4dc76ca9cd82d68618255709e446cf09b37
[ "MIT" ]
null
null
null
20.py
xeno14/advent_of_code2018
87d0f4dc76ca9cd82d68618255709e446cf09b37
[ "MIT" ]
null
null
null
class Node: def __init__(self, val=""): self.parent = None self.children = [] self.val = val self.next = None def append(self, e): e.parent = self self.children.append(e) def print(self, level=0): print("{}{}".format(" "*(2*level), self.val)) ...
23.623656
97
0.491807
2f8aed7f846bb03fea2da1dd51c95ba46bd4fc9b
2,331
py
Python
asdac/optimizer/copy_pasta.py
Akuli/asda
041719849cb488c3ad625a851705677a9c4a1553
[ "MIT" ]
5
2018-12-01T22:41:42.000Z
2019-07-27T19:18:59.000Z
asdac/optimizer/copy_pasta.py
Akuli/asda
041719849cb488c3ad625a851705677a9c4a1553
[ "MIT" ]
7
2019-03-03T20:33:29.000Z
2019-07-12T15:49:15.000Z
asdac/optimizer/copy_pasta.py
Akuli/asda
041719849cb488c3ad625a851705677a9c4a1553
[ "MIT" ]
1
2019-07-07T22:54:51.000Z
2019-07-07T22:54:51.000Z
# if nodes c and d are "similar", this optimizes e.g. this... # # ... ... # | | # a b # | | # c d # \ / # e # # ...to this: # # ... ... # | | # a b # \ / # c # | # e # # currently this doesn't work without an 'e' node, but i think that's actually # good, bec...
29.1375
78
0.635779
c7ed25d809aa42dc84d4c3d80b4d519ef4d80d48
1,338
py
Python
examples/experiments/version_checking_.py
drammock/expyfun
b92bf5291318ee4cb1692e7bcb9757a422f48304
[ "BSD-3-Clause" ]
7
2015-09-27T23:54:07.000Z
2022-01-17T01:12:12.000Z
examples/experiments/version_checking_.py
drammock/expyfun
b92bf5291318ee4cb1692e7bcb9757a422f48304
[ "BSD-3-Clause" ]
218
2015-02-17T20:29:31.000Z
2022-02-28T20:55:24.000Z
examples/experiments/version_checking_.py
drammock/expyfun
b92bf5291318ee4cb1692e7bcb9757a422f48304
[ "BSD-3-Clause" ]
19
2015-02-19T18:43:43.000Z
2021-11-12T23:13:12.000Z
""" ========================== Version checking functions ========================== This demonstrates how the version checking functions work. """ # Author: Eric Larson <larson.eric.d@gmail.com> # # License: BSD (3-clause) import tempfile from expyfun import download_version, run_subprocess print(__doc__) # Let'...
28.468085
77
0.714499
881efd49efe4b3a3f842571475e5d49d9fd943eb
9,864
py
Python
pan_cnc/lib/db_utils.py
PaloAltoNetworks/pan-cnc
610d1aa8366d30314e3475cc3dd23449ce3bca00
[ "Apache-2.0" ]
3
2019-03-13T14:59:59.000Z
2020-04-26T06:30:16.000Z
pan_cnc/lib/db_utils.py
PaloAltoNetworks/pan-cnc
610d1aa8366d30314e3475cc3dd23449ce3bca00
[ "Apache-2.0" ]
29
2019-02-05T00:01:32.000Z
2021-03-22T14:10:07.000Z
pan_cnc/lib/db_utils.py
PaloAltoNetworks/pan-cnc
610d1aa8366d30314e3475cc3dd23449ce3bca00
[ "Apache-2.0" ]
2
2019-08-31T13:54:53.000Z
2020-11-18T16:27:11.000Z
import json import os from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from skilletlib import SkilletLoader from cnc.models import RepositoryDetails from cnc.models import Skillet from pan_cnc.lib import cnc_utils from pan_cnc.lib.exceptions import DuplicateSkilletException def...
32.662252
117
0.66322
70feca84ba5828dc64c0a3e2ad429bc825224d58
929
py
Python
manage.py
blowUA/mezz
caf909ad6dd48a61e735bbff7203573f0a61c0d7
[ "MIT" ]
209
2015-02-06T02:24:22.000Z
2022-03-07T23:39:28.000Z
manage.py
blowUA/mezz
caf909ad6dd48a61e735bbff7203573f0a61c0d7
[ "MIT" ]
193
2015-01-01T13:41:44.000Z
2020-10-02T18:41:06.000Z
manage.py
blowUA/mezz
caf909ad6dd48a61e735bbff7203573f0a61c0d7
[ "MIT" ]
92
2015-03-04T11:13:55.000Z
2020-10-23T06:46:42.000Z
#!/usr/bin/env python from __future__ import absolute_import, unicode_literals import os import sys # Corrects some pathing issues in various contexts, such as cron jobs, # and the project layout still being in Django 1.3 format. from settings import PROJECT_ROOT, PROJECT_DIRNAME sys.path.append(os.path.abspath(os.p...
32.034483
71
0.74704
5e2e612d8f7d17695653a4ebd0713f8992acd6d2
2,567
py
Python
hw/ip/rom_ctrl/util/gen_vivado_mem_image.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
2
2019-11-21T14:05:14.000Z
2020-07-10T12:40:54.000Z
hw/ip/rom_ctrl/util/gen_vivado_mem_image.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
9
2019-11-08T00:20:21.000Z
2021-09-25T03:56:33.000Z
hw/ip/rom_ctrl/util/gen_vivado_mem_image.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
1
2019-11-19T05:28:23.000Z
2019-11-19T05:28:23.000Z
#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 '''Script for generating a splicable Vivado ROM image This script takes a .vmem file as input and converts that into a format usable by Vivado for s...
32.0875
110
0.661862
fe8b9714b2463db9fa34d02994fdcbfb35eb1cf4
13,066
py
Python
cirq/interop/quirk/cells/arithmetic_cells.py
BillGatesNephew/Cirq
fda14a5f6c65356dfabf8a5bcd599bf57e542041
[ "Apache-2.0" ]
null
null
null
cirq/interop/quirk/cells/arithmetic_cells.py
BillGatesNephew/Cirq
fda14a5f6c65356dfabf8a5bcd599bf57e542041
[ "Apache-2.0" ]
null
null
null
cirq/interop/quirk/cells/arithmetic_cells.py
BillGatesNephew/Cirq
fda14a5f6c65356dfabf8a5bcd599bf57e542041
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Cirq Developers # # 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 ...
34.657825
96
0.61595
6a5b45a8d88cf31d625465e56eeef77bf441964b
423
py
Python
care/facility/migrations/0278_asset_not_working_reason.py
arpancodes/care
e4f295c29f70c7a356c0ef25f7326579992ef0cb
[ "MIT" ]
189
2020-03-17T17:18:58.000Z
2022-02-22T09:49:45.000Z
care/facility/migrations/0278_asset_not_working_reason.py
arpancodes/care
e4f295c29f70c7a356c0ef25f7326579992ef0cb
[ "MIT" ]
598
2020-03-19T21:22:09.000Z
2022-03-30T05:08:37.000Z
care/facility/migrations/0278_asset_not_working_reason.py
arpancodes/care
e4f295c29f70c7a356c0ef25f7326579992ef0cb
[ "MIT" ]
159
2020-03-19T18:45:56.000Z
2022-03-17T13:23:12.000Z
# Generated by Django 2.2.11 on 2021-10-12 08:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('facility', '0277_merge_20211011_2103'), ] operations = [ migrations.AddField( model_name='asset', name='not_working...
22.263158
75
0.619385
3587575503d33a355081b85b32d67cceb6335b66
13,605
py
Python
pandas/core/arrays/integer.py
dycloud-chan/pandas
39ccb352b53e9b5b694c4f7f044774f9c3677e98
[ "BSD-3-Clause" ]
3
2018-04-24T13:31:51.000Z
2019-07-09T07:31:43.000Z
pandas/core/arrays/integer.py
dycloud-chan/pandas
39ccb352b53e9b5b694c4f7f044774f9c3677e98
[ "BSD-3-Clause" ]
4
2019-12-14T16:32:46.000Z
2022-02-12T00:32:28.000Z
pandas/core/arrays/integer.py
dycloud-chan/pandas
39ccb352b53e9b5b694c4f7f044774f9c3677e98
[ "BSD-3-Clause" ]
5
2018-04-24T13:31:56.000Z
2021-10-21T05:06:23.000Z
from __future__ import annotations from typing import overload import numpy as np from pandas._libs import ( lib, missing as libmissing, ) from pandas._typing import ( ArrayLike, AstypeArg, Dtype, DtypeObj, npt, ) from pandas.util._decorators import cache_readonly from pandas.core.dtypes...
27.319277
85
0.616538
5643dcbf19a216b5183595dc75eb51b7aa440352
19,753
py
Python
ca_timers.py
wadeguthrie/combat-accountant
e6a2140baafe71191cf68e01390b1f91446e17aa
[ "Apache-2.0" ]
null
null
null
ca_timers.py
wadeguthrie/combat-accountant
e6a2140baafe71191cf68e01390b1f91446e17aa
[ "Apache-2.0" ]
58
2019-10-16T21:48:37.000Z
2021-09-08T22:33:22.000Z
ca_timers.py
wadeguthrie/combat-accountant
e6a2140baafe71191cf68e01390b1f91446e17aa
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python import copy import curses class Timer(object): ''' Embodies a timer that counts down with fight rounds. There's optional text associated with it (that's shown while the timer is counting down) and there's optional actions when the timer actually reaches zero. This is an objec...
37.840996
79
0.512023
d815f2c7ca91ab3e6124c889fe39b6fc81676b64
4,919
py
Python
asposeimagingcloud/models/requests/get_image_features_request.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
1
2022-01-14T10:06:26.000Z
2022-01-14T10:06:26.000Z
asposeimagingcloud/models/requests/get_image_features_request.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
3
2019-07-17T15:01:31.000Z
2020-12-29T09:16:10.000Z
asposeimagingcloud/models/requests/get_image_features_request.py
aspose-imaging-cloud/aspose-imaging-cloud-python
9280a4a1aa415cb569ec26a05792b33186d31a85
[ "MIT" ]
null
null
null
# coding: utf-8 # ---------------------------------------------------------------------------- # <copyright company="Aspose" file="get_image_features_request.py"> # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # </copyright> # <summary> # Permission is hereby granted, free of charge, to any p...
45.546296
136
0.665379
fde5051fafa2e5cf1c382214f2bae13adffa4bb5
813
py
Python
src/deepfaceannotator/mappers/gender_2_mappers.py
StefanieStoppel/DeepfaceAnnotator
ef09c2bd6be3eb158f83f3c28973088b10244ac3
[ "MIT" ]
null
null
null
src/deepfaceannotator/mappers/gender_2_mappers.py
StefanieStoppel/DeepfaceAnnotator
ef09c2bd6be3eb158f83f3c28973088b10244ac3
[ "MIT" ]
null
null
null
src/deepfaceannotator/mappers/gender_2_mappers.py
StefanieStoppel/DeepfaceAnnotator
ef09c2bd6be3eb158f83f3c28973088b10244ac3
[ "MIT" ]
null
null
null
class Gender2Mapper: GENDER_LABELS_DEEPFACE = ['Woman', 'Man'] def __init__(self, analysis_dict: dict): self._genders = analysis_dict["gender"] self._most_likely_gender = analysis_dict["dominant_gender"] @property def probability_female(self): return self._genders[self.GENDER_L...
26.225806
97
0.676507
04f818e6a064feb5328b9623732ee846dc0f1267
1,315
py
Python
examples/computer_vision/mmdetection_pytorch/configs/cascade_rcnn/cascade_rcnn_r50_caffe_fpn_1x_coco.py
RAbraham/determined
1161b667ed6d0242f70f9f15d58600f910c8d7f9
[ "Apache-2.0" ]
1
2021-03-29T13:39:45.000Z
2021-03-29T13:39:45.000Z
examples/computer_vision/mmdetection_pytorch/configs/cascade_rcnn/cascade_rcnn_r50_caffe_fpn_1x_coco.py
RAbraham/determined
1161b667ed6d0242f70f9f15d58600f910c8d7f9
[ "Apache-2.0" ]
null
null
null
examples/computer_vision/mmdetection_pytorch/configs/cascade_rcnn/cascade_rcnn_r50_caffe_fpn_1x_coco.py
RAbraham/determined
1161b667ed6d0242f70f9f15d58600f910c8d7f9
[ "Apache-2.0" ]
null
null
null
_base_ = "./cascade_rcnn_r50_fpn_1x_coco.py" model = dict( pretrained="open-mmlab://detectron2/resnet50_caffe", backbone=dict(norm_cfg=dict(requires_grad=False), style="caffe"), ) # use caffe img_norm img_norm_cfg = dict(mean=[103.530, 116.280, 123.675], std=[1.0, 1.0, 1.0], to_rgb=False) train_pipeline = [ ...
32.073171
88
0.629658
637e3f3ce052f74bca339bb26b434b3f98e6a67f
509
py
Python
solutions/python3/945.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/945.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/945.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def minIncrementForUnique(self, A): st, used, move = set(A), set(), 0 heapq.heapify(A) empty = [i for i in range(80000) if i not in st][::-1] if A else [] while A: num = heapq.heappop(A) if num not in used: used.add(num) ...
33.933333
76
0.451866
74d4795327c05d008aef2e600e08a900f640bd62
1,443
py
Python
442burn.py
SteveMacenski/Orbital-Mechanics-Tools
4110ab3514654af830dadd1804cf002ebe6a8ac8
[ "MIT" ]
null
null
null
442burn.py
SteveMacenski/Orbital-Mechanics-Tools
4110ab3514654af830dadd1804cf002ebe6a8ac8
[ "MIT" ]
null
null
null
442burn.py
SteveMacenski/Orbital-Mechanics-Tools
4110ab3514654af830dadd1804cf002ebe6a8ac8
[ "MIT" ]
null
null
null
# Senior design, finds delta V from Trans-Mars Injection Orbit to Mars Orbital R import math def brake_dv(r_mars_orbit,delta_i1,delta_i2): #inputs r of mars orbit, and 2 inclination changes mu_sun = 1.327235e20; #m^2/s^2 mu_earth = 3.986e14; mu_mars = 4.2828e13; r_mars =227.94e9; #m r_earth = 1...
31.369565
80
0.663895
5ba26c65921e521fb6b0feaae0c219db9e18fd9d
3,210
py
Python
scripts/prod_to_local.py
ephes/python-podcast
af08970b6de318984ff1f46a19692775c8aa2d71
[ "BSD-3-Clause" ]
1
2018-11-16T08:35:44.000Z
2018-11-16T08:35:44.000Z
scripts/prod_to_local.py
ephes/python-podcast
af08970b6de318984ff1f46a19692775c8aa2d71
[ "BSD-3-Clause" ]
null
null
null
scripts/prod_to_local.py
ephes/python-podcast
af08970b6de318984ff1f46a19692775c8aa2d71
[ "BSD-3-Clause" ]
1
2018-11-17T14:56:18.000Z
2018-11-17T14:56:18.000Z
import os from subprocess import check_output import paramiko from dotenv import load_dotenv, find_dotenv load_dotenv(find_dotenv()) # get backup dump from production host = os.environ.get("PRODUCTION_HOST") username = os.environ.get("PRODUCTION_USERNAME") db_name = os.environ.get("DATABASE_NAME") db_user = os.envir...
30.865385
97
0.75109
b17aacf2968d4c0695d8302dff9573c76e58fe44
5,501
py
Python
doc/conf.py
RamonPujol/OTSun
0a587980b8465bcc886811de246718e08e6dab06
[ "MIT" ]
5
2019-02-28T10:29:51.000Z
2022-02-09T10:31:20.000Z
doc/conf.py
RamonPujol/OTSun
0a587980b8465bcc886811de246718e08e6dab06
[ "MIT" ]
4
2017-02-07T11:10:24.000Z
2018-06-21T15:33:23.000Z
doc/conf.py
RamonPujol/OTSun
0a587980b8465bcc886811de246718e08e6dab06
[ "MIT" ]
6
2019-02-28T10:29:56.000Z
2022-03-28T16:58:40.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.575269
79
0.6477
06f5a41f7fcd40952ef1ebf3859fff01572ae66f
7,419
py
Python
setup.py
squarefk/test_actions
dd3b0305c49b577102786eb1c24c590ef160bc30
[ "MIT" ]
null
null
null
setup.py
squarefk/test_actions
dd3b0305c49b577102786eb1c24c590ef160bc30
[ "MIT" ]
null
null
null
setup.py
squarefk/test_actions
dd3b0305c49b577102786eb1c24c590ef160bc30
[ "MIT" ]
null
null
null
import glob import multiprocessing import os import platform import shutil import subprocess import sys from setuptools import Extension, find_packages, setup from setuptools.command.build_ext import build_ext from setuptools.command.build_py import build_py from setuptools.command.egg_info import egg_info classifier...
34.995283
79
0.622591
d4e658cbd17a6728fa98cc52688f77fdc0dc3993
20,120
py
Python
NEMbox/api.py
wangjianyuan10/musicbox
f182053b07badc5d34190aeea85ff38d364a164e
[ "MIT" ]
2
2020-03-21T15:20:28.000Z
2020-04-16T07:22:46.000Z
NEMbox/api.py
e71828/musicbox
f182053b07badc5d34190aeea85ff38d364a164e
[ "MIT" ]
null
null
null
NEMbox/api.py
e71828/musicbox
f182053b07badc5d34190aeea85ff38d364a164e
[ "MIT" ]
1
2020-06-10T09:22:38.000Z
2020-06-10T09:22:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: omi # @Date: 2014-08-24 21:51:57 ''' 网易云音乐 Api ''' from __future__ import ( print_function, unicode_literals, division, absolute_import ) import json from collections import OrderedDict from http.cookiejar import LWPCookieJar from http.cookiejar import Coo...
32.140575
150
0.505716
d65c3318009b39e8f9f4e8fee874e2eb9c6c8dfc
4,371
py
Python
sigal/utils.py
fidergo-stephane-gourichon/sigal
b1f2e947700e618425e170e8758b1fbb82c91acb
[ "MIT" ]
null
null
null
sigal/utils.py
fidergo-stephane-gourichon/sigal
b1f2e947700e618425e170e8758b1fbb82c91acb
[ "MIT" ]
null
null
null
sigal/utils.py
fidergo-stephane-gourichon/sigal
b1f2e947700e618425e170e8758b1fbb82c91acb
[ "MIT" ]
null
null
null
# Copyright (c) 2011-2020 - Simon Conseil # 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,...
30.354167
90
0.655914
52486be89738795f95cf21160c2e62f61cb1a1a0
4,542
py
Python
setup.py
th2-net/th2-grpc-codec
dd6d67b4bfc165589569b3924e54ea77ad4dc64c
[ "Apache-2.0" ]
null
null
null
setup.py
th2-net/th2-grpc-codec
dd6d67b4bfc165589569b3924e54ea77ad4dc64c
[ "Apache-2.0" ]
null
null
null
setup.py
th2-net/th2-grpc-codec
dd6d67b4bfc165589569b3924e54ea77ad4dc64c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2020 Exactpro (Exactpro Systems Limited) # # 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...
34.150376
102
0.623514
5d4864ce0459ae34c162523f8bc60c58ed9716b2
1,755
py
Python
training_dataset/vid/visual.py
Anonymous502/siamfda-for-eccv
72dff5c174b7ebe30c59a6e21bb6f06fdb06c3fb
[ "Apache-2.0" ]
216
2020-03-17T03:29:15.000Z
2022-03-25T13:51:37.000Z
training_dataset/vid/visual.py
Anonymous502/siamfda-for-eccv
72dff5c174b7ebe30c59a6e21bb6f06fdb06c3fb
[ "Apache-2.0" ]
64
2020-04-20T01:17:06.000Z
2022-01-05T07:08:33.000Z
training_dataset/vid/visual.py
Anonymous502/siamfda-for-eccv
72dff5c174b7ebe30c59a6e21bb6f06fdb06c3fb
[ "Apache-2.0" ]
52
2020-05-09T12:43:33.000Z
2022-03-23T11:38:38.000Z
from os.path import join from os import listdir import cv2 import numpy as np import glob import xml.etree.ElementTree as ET visual = True color_bar = np.random.randint(0, 255, (90, 3)) VID_base_path = './ILSVRC2015' ann_base_path = join(VID_base_path, 'Annotations/VID/train/') img_base_path = join(VID_base_path, 'Da...
39
90
0.57208
162936782968539bedef75865beddd3aaadb4ab3
24,699
py
Python
mmhuman3d/core/visualization/visualize_keypoints2d.py
ttxskk/mmhuman3d
f6d39e24a2d5cc216448fc3bd82832ff45eee436
[ "Apache-2.0" ]
null
null
null
mmhuman3d/core/visualization/visualize_keypoints2d.py
ttxskk/mmhuman3d
f6d39e24a2d5cc216448fc3bd82832ff45eee436
[ "Apache-2.0" ]
null
null
null
mmhuman3d/core/visualization/visualize_keypoints2d.py
ttxskk/mmhuman3d
f6d39e24a2d5cc216448fc3bd82832ff45eee436
[ "Apache-2.0" ]
null
null
null
import glob import os import os.path as osp import shutil import warnings from pathlib import Path from typing import Iterable, List, Optional, Tuple, Union import cv2 import numpy as np from tqdm import tqdm from mmhuman3d.core.conventions.keypoints_mapping import KEYPOINTS_FACTORY from mmhuman3d.core.conventions.ke...
41.441275
79
0.585449
68711423708dd17744a7e8cd2e1a176b7f6f24e4
2,567
py
Python
netgrasp/utils/exclusive_lock.py
jeremyandrews/netgrasp
4ebc86c7023bc80415211925f972a1a78000bc54
[ "BSD-2-Clause-FreeBSD" ]
34
2017-05-01T09:55:03.000Z
2021-02-21T19:40:22.000Z
netgrasp/utils/exclusive_lock.py
jeremyandrews/netgrasp
4ebc86c7023bc80415211925f972a1a78000bc54
[ "BSD-2-Clause-FreeBSD" ]
23
2017-05-29T18:12:09.000Z
2017-08-13T10:20:12.000Z
netgrasp/utils/exclusive_lock.py
jeremyandrews/netgrasp
4ebc86c7023bc80415211925f972a1a78000bc54
[ "BSD-2-Clause-FreeBSD" ]
2
2017-07-13T22:05:38.000Z
2019-05-15T15:57:54.000Z
import fcntl import os import errno import time from netgrasp.utils import debug from netgrasp.utils import simple_timer class ExclusiveFileLock: def __init__(self, ng, timeout, name): self.ng = ng self._lockfile = ng.database["lock"] self._timeout = timeout self._name = name ...
38.893939
129
0.53136
9aa7760a987eb6b9b656773e1f89ddbfa5caf11f
4,803
py
Python
examples/mnist-cnn.py
YesDrX/streamlit
1305566934152dfc5a086184d3854f1c4313a93a
[ "Apache-2.0" ]
1
2020-09-20T11:18:09.000Z
2020-09-20T11:18:09.000Z
examples/mnist-cnn.py
YesDrX/streamlit
1305566934152dfc5a086184d3854f1c4313a93a
[ "Apache-2.0" ]
1
2021-09-13T06:08:13.000Z
2021-09-13T06:08:13.000Z
examples/mnist-cnn.py
YesDrX/streamlit
1305566934152dfc5a086184d3854f1c4313a93a
[ "Apache-2.0" ]
1
2020-03-29T11:54:31.000Z
2020-03-29T11:54:31.000Z
# Copyright 2018-2020 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
33.124138
106
0.681657
a8a3095306912b2e66edbe779bb236acc4dd2efb
12,211
py
Python
src/biome/text/helpers.py
ignacioct/biome-text
e4eab5fd4ea9115bd600f61e97429977053da2a5
[ "Apache-2.0" ]
null
null
null
src/biome/text/helpers.py
ignacioct/biome-text
e4eab5fd4ea9115bd600f61e97429977053da2a5
[ "Apache-2.0" ]
null
null
null
src/biome/text/helpers.py
ignacioct/biome-text
e4eab5fd4ea9115bd600f61e97429977053da2a5
[ "Apache-2.0" ]
null
null
null
import copy import functools import inspect import os import os.path import re from inspect import Parameter from typing import Any from typing import Callable from typing import Dict from typing import Iterable from typing import List from typing import Optional from typing import Tuple from typing import Type import...
27.81549
112
0.635656
0b70ad9d9706c3000ec056e0b6d48cd4d9e697da
89
py
Python
leasing/apps.py
hkotkanen/mvj
a22d40869ef1b13924da428f3026d248acef81a7
[ "MIT" ]
null
null
null
leasing/apps.py
hkotkanen/mvj
a22d40869ef1b13924da428f3026d248acef81a7
[ "MIT" ]
null
null
null
leasing/apps.py
hkotkanen/mvj
a22d40869ef1b13924da428f3026d248acef81a7
[ "MIT" ]
null
null
null
from django.apps import AppConfig class LeasingConfig(AppConfig): name = 'leasing'
14.833333
33
0.752809
4f673cdd0d672e36f63764c06ffac78f0529bcf6
50,694
py
Python
tensorflow/python/distribute/client/client.py
rishabhBudhouliya/tensorflow
071c0532fb6f0cb793001700e158677695d06717
[ "Apache-2.0" ]
null
null
null
tensorflow/python/distribute/client/client.py
rishabhBudhouliya/tensorflow
071c0532fb6f0cb793001700e158677695d06717
[ "Apache-2.0" ]
null
null
null
tensorflow/python/distribute/client/client.py
rishabhBudhouliya/tensorflow
071c0532fb6f0cb793001700e158677695d06717
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
40.948304
115
0.715548
ad63b9b0c94148e0a08f1bcc9e238b15e90b04fd
23,327
py
Python
meu_grafo_matriz_adjacencia_nao_dir.py
RafaelMunizz/Teoria-dos-Grafos
1502219c629a3081a815cbcc9d0d3353eb471872
[ "MIT" ]
null
null
null
meu_grafo_matriz_adjacencia_nao_dir.py
RafaelMunizz/Teoria-dos-Grafos
1502219c629a3081a815cbcc9d0d3353eb471872
[ "MIT" ]
null
null
null
meu_grafo_matriz_adjacencia_nao_dir.py
RafaelMunizz/Teoria-dos-Grafos
1502219c629a3081a815cbcc9d0d3353eb471872
[ "MIT" ]
null
null
null
from bibgrafo.grafo_matriz_adj_nao_dir import GrafoMatrizAdjacenciaNaoDirecionado from bibgrafo.grafo_exceptions import * from copy import deepcopy class MeuGrafo(GrafoMatrizAdjacenciaNaoDirecionado): def vertices_nao_adjacentes(self): ''' Provê uma lista de vértices não adjacentes no grafo. A lis...
34.456425
116
0.502808
a20ac1c8b87554cc8072aacd12300b90a8ba91b2
10,098
py
Python
model/single_frame_worker.py
idiap/DepthInSpace
fe759807f82df4c48c16b97f061718175ea0e6e9
[ "MIT" ]
1
2022-02-05T09:50:24.000Z
2022-02-05T09:50:24.000Z
model/single_frame_worker.py
idiap/DepthInSpace
fe759807f82df4c48c16b97f061718175ea0e6e9
[ "MIT" ]
null
null
null
model/single_frame_worker.py
idiap/DepthInSpace
fe759807f82df4c48c16b97f061718175ea0e6e9
[ "MIT" ]
null
null
null
# DepthInSpace is a PyTorch-based program which estimates 3D depth maps # from active structured-light sensor's multiple video frames. # # MIT License # # Copyright, 2021 ams International AG # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation...
40.071429
251
0.639929
843e7a7d4fa974de9ef2d8b7f52859047941a677
692
py
Python
getpinyin.py
wangjksjtu/multi-embedding-cws
f272a7586bc0ad6f65e900c7f29fc9a89a0c95b4
[ "MIT" ]
16
2018-09-18T13:59:59.000Z
2022-03-21T08:05:31.000Z
getpinyin.py
wangjksjtu/multi-embedding-cws
f272a7586bc0ad6f65e900c7f29fc9a89a0c95b4
[ "MIT" ]
null
null
null
getpinyin.py
wangjksjtu/multi-embedding-cws
f272a7586bc0ad6f65e900c7f29fc9a89a0c95b4
[ "MIT" ]
6
2020-01-05T13:03:45.000Z
2022-03-21T08:05:33.000Z
from pypinyin import lazy_pinyin import sys,time fo1 = open("pre_chars_for_w2v.txt", "r") fo2 = open("pre_pinyin_for_w2v.txt", "a") total_lines = len(fo1.readlines()) print("Total lines: %d" % (total_lines)) fo1.close() lines = 0 fo1 = open("pre_chars_for_w2v.txt", "r") while 1: line = fo1.readline() line =...
22.322581
67
0.638728
a51cab49d8c2b6b39f96f0f6eb82f3d37c76739d
3,833
py
Python
sdk/python/pulumi_aws_native/sagemaker/get_device_fleet.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/sagemaker/get_device_fleet.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/sagemaker/get_device_fleet.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.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, overload from .. import _utilities from...
33.920354
127
0.670232
d580186a2ef50f82f77c4dab1e53e8879f7b966f
2,368
py
Python
addons14/document_page/models/document_page_history.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-06-10T14:59:13.000Z
2021-06-10T14:59:13.000Z
addons14/document_page/models/document_page_history.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
null
null
null
addons14/document_page/models/document_page_history.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-04-09T09:44:44.000Z
2021-04-09T09:44:44.000Z
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import difflib from odoo import _, api, fields, models class DocumentPageHistory(models.Model): """This model is necessary to manage a document history.""" _name = "document.page.history"...
33.352113
80
0.558277
92317eb2b76c303f4cad2c2e96348225c61e66ba
2,795
py
Python
model/u-net/config.py
CoolPhilChen/cil-road-segmentation-2019
0becfe97d77012b3abbaa181a5c52e6edd1a39f1
[ "MIT" ]
null
null
null
model/u-net/config.py
CoolPhilChen/cil-road-segmentation-2019
0becfe97d77012b3abbaa181a5c52e6edd1a39f1
[ "MIT" ]
null
null
null
model/u-net/config.py
CoolPhilChen/cil-road-segmentation-2019
0becfe97d77012b3abbaa181a5c52e6edd1a39f1
[ "MIT" ]
1
2020-06-08T02:09:18.000Z
2020-06-08T02:09:18.000Z
# encoding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import os.path as osp import sys import time import numpy as np from easydict import EasyDict as edict import argparse C = edict() config = C cfg = C C.seed = 12345 """please config ROOT_d...
24.517544
96
0.706619
f1c180478a7d3c7fdfe031e7e0aa350b1700fc0e
326
py
Python
sgcc-client/config/project_conf.py
zhanwei33/baai-federated-learning
838507f2344139e66385e1ef475a148fdeaf5c62
[ "Apache-2.0" ]
19
2020-11-30T09:42:08.000Z
2020-12-09T02:08:11.000Z
sgcc-client/config/project_conf.py
AIOpenData/baai-federated-learning-crane-baseline
838507f2344139e66385e1ef475a148fdeaf5c62
[ "Apache-2.0" ]
null
null
null
sgcc-client/config/project_conf.py
AIOpenData/baai-federated-learning-crane-baseline
838507f2344139e66385e1ef475a148fdeaf5c62
[ "Apache-2.0" ]
5
2020-12-01T01:57:19.000Z
2021-11-20T14:38:44.000Z
class ProjectConf: # development environment dev = { "host": "0.0.0.0", "port": 5016, "config": { "ENV": "dev", "DEBUG": True } } # product environment pro = { "config": { "ENV": "pro", "DEBUG": False } ...
17.157895
29
0.371166
f5f8ba264744ff477dd4de332ee3750d24cb9bc4
702
py
Python
genia/utils/download.py
m-stoeckel/pyramid-nested-ner
ee169d3d84b4beeeecb3d5aeb5caa826166cce78
[ "MIT" ]
6
2020-11-15T09:17:36.000Z
2021-12-10T18:30:58.000Z
genia/utils/download.py
m-stoeckel/pyramid-nested-ner
ee169d3d84b4beeeecb3d5aeb5caa826166cce78
[ "MIT" ]
2
2021-03-31T01:06:43.000Z
2021-07-01T12:44:33.000Z
genia/utils/download.py
m-stoeckel/pyramid-nested-ner
ee169d3d84b4beeeecb3d5aeb5caa826166cce78
[ "MIT" ]
3
2021-04-05T18:58:01.000Z
2021-10-11T03:57:17.000Z
from oauth2client.client import GoogleCredentials from pydrive.drive import GoogleDrive from pydrive.auth import GoogleAuth from google.colab import auth if __name__ == "__main__": auth.authenticate_user() gauth = GoogleAuth() gauth.credentials = GoogleCredentials.get_application_default() drive = G...
31.909091
88
0.74359
72271162c71f6b514b7ac064452d20ab4782cf17
110
py
Python
core/urls.py
ghalonso94/wswallet
8f1f13a0d646166adad45b3872c2db6558d48f38
[ "MIT" ]
null
null
null
core/urls.py
ghalonso94/wswallet
8f1f13a0d646166adad45b3872c2db6558d48f38
[ "MIT" ]
null
null
null
core/urls.py
ghalonso94/wswallet
8f1f13a0d646166adad45b3872c2db6558d48f38
[ "MIT" ]
null
null
null
from django.urls import path from core import views urlpatterns = [ path('', views.index, name='index') ]
18.333333
39
0.7
d113c2f53d3b67e10d16ed2f334a14ba6decd748
3,341
py
Python
api/src/application/socrata/client.py
iliaskaras/housing-units
2b0d78fcb42629ce7530b2da556ebd550cc7bec8
[ "MIT" ]
null
null
null
api/src/application/socrata/client.py
iliaskaras/housing-units
2b0d78fcb42629ce7530b2da556ebd550cc7bec8
[ "MIT" ]
null
null
null
api/src/application/socrata/client.py
iliaskaras/housing-units
2b0d78fcb42629ce7530b2da556ebd550cc7bec8
[ "MIT" ]
null
null
null
from typing import Dict from pandas import DataFrame from sodapy import Socrata from application.infrastructure.configurations.models import Configuration from application.infrastructure.error.errors import NoneArgumentError import pandas as pd class SocrataClient: DTYPES: Dict[str, str] = { 'project_i...
34.802083
93
0.628854
e5e7b6808b858f1a90c96b65d6898a8660b61a3b
1,671
py
Python
Search_based_Planning/Search_2D/Dijkstra.py
CodesHub/PathPlanning
8271d9a0e30d7d9d0f20d61a2f85b8fe199209fa
[ "MIT" ]
3,693
2020-07-15T15:41:07.000Z
2022-03-31T17:26:46.000Z
Search_based_Planning/Search_2D/Dijkstra.py
Alanaab/PathPlanning
8c12192d6952fcd2c3f8ba3c98e3593b27049a40
[ "MIT" ]
26
2020-08-27T04:56:59.000Z
2022-03-14T02:17:05.000Z
Search_based_Planning/Search_2D/Dijkstra.py
Alanaab/PathPlanning
8c12192d6952fcd2c3f8ba3c98e3593b27049a40
[ "MIT" ]
799
2020-07-17T04:02:05.000Z
2022-03-31T12:56:29.000Z
""" Dijkstra 2D @author: huiming zhou """ import os import sys import math import heapq sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../../Search_based_Planning/") from Search_2D import plotting, env from Search_2D.Astar import AStar class Dijkstra(AStar): """Dijkstra set the...
23.871429
74
0.55775
99f56d284569ebeaebc3764c0a1a23f61681bfbf
14,765
py
Python
fastybird_shelly_connector/clients/coap.py
FastyBird/shelly-connector
afbd75da091f96854fa09d3750d9f75406c5bf39
[ "Apache-2.0" ]
null
null
null
fastybird_shelly_connector/clients/coap.py
FastyBird/shelly-connector
afbd75da091f96854fa09d3750d9f75406c5bf39
[ "Apache-2.0" ]
null
null
null
fastybird_shelly_connector/clients/coap.py
FastyBird/shelly-connector
afbd75da091f96854fa09d3750d9f75406c5bf39
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Copyright 2021. FastyBird s.r.o. # # 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 re...
32.379386
110
0.44829
b9898877b3e9bf89a7c311953673917ff7b5a7c1
99
py
Python
ibolc/wsgi.py
jschaf/ibolcdb
e890fcf6bdc6219b3464899a99ac0464f6d329fc
[ "BSD-3-Clause" ]
null
null
null
ibolc/wsgi.py
jschaf/ibolcdb
e890fcf6bdc6219b3464899a99ac0464f6d329fc
[ "BSD-3-Clause" ]
null
null
null
ibolc/wsgi.py
jschaf/ibolcdb
e890fcf6bdc6219b3464899a99ac0464f6d329fc
[ "BSD-3-Clause" ]
null
null
null
from .app import create_app from .settings import ProdConfig application = create_app(ProdConfig)
19.8
36
0.828283
f795542d3d01d55b554ee078f22b86f50f3b7588
3,547
py
Python
lipo/psv/models.py
Mik3y-F/Lipo
d9d748b8565bc75c7022cb5b06781dba46181f63
[ "MIT" ]
null
null
null
lipo/psv/models.py
Mik3y-F/Lipo
d9d748b8565bc75c7022cb5b06781dba46181f63
[ "MIT" ]
1
2020-06-24T11:08:18.000Z
2020-06-24T11:08:18.000Z
lipo/psv/models.py
Mik3y-F/Lipo
d9d748b8565bc75c7022cb5b06781dba46181f63
[ "MIT" ]
null
null
null
import uuid from django.db import models from django.utils.translation import ugettext_lazy as _ class Psv(models.Model): id = models.UUIDField(_("PSV Id"), primary_key=True, default=uuid.uuid4, editable=False) type = models.ManyToManyField("users.UserType", verbose_name=_("P.S.V types"),) name = models....
31.114035
102
0.648435
078a990c270cba46ac245aadfc157f6e81aa91e5
107
py
Python
tests/unit/test_modulegraph/testpkg-regr5/script.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
9,267
2015-01-01T04:08:45.000Z
2022-03-31T11:42:38.000Z
tests/unit/test_modulegraph/testpkg-regr5/script.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
5,150
2015-01-01T12:09:56.000Z
2022-03-31T18:06:12.000Z
tests/unit/test_modulegraph/testpkg-regr5/script.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
2,101
2015-01-03T10:25:27.000Z
2022-03-30T11:04:42.000Z
import __init__ from PyInstaller.lib.modulegraph.find_modules import find_needed_modules import distutils
21.4
72
0.88785
245c125717630c513475cc49d1dbea1afa2e2183
323
py
Python
src/restapi/permissions.py
gavin-anders/callback-catcher
77d18a983fc5a9e53b33189d4202868210b5d7e3
[ "Apache-2.0" ]
2
2019-06-27T21:08:23.000Z
2020-10-16T12:07:19.000Z
src/restapi/permissions.py
gavin-anders/callback-catcher
77d18a983fc5a9e53b33189d4202868210b5d7e3
[ "Apache-2.0" ]
null
null
null
src/restapi/permissions.py
gavin-anders/callback-catcher
77d18a983fc5a9e53b33189d4202868210b5d7e3
[ "Apache-2.0" ]
null
null
null
from rest_framework.permissions import DjangoModelPermissions, BasePermission from catcher.models import Client from catcher.settings import USERNAME class ClientUserPermissions(DjangoModelPermissions): def __init__(self): self.perms_map['GET'] = ['%(app_label)s.view_%(model_name)s'] ...
35.888889
77
0.736842
0f76222be0db1618ee1b63218f3497e1e8890225
4,438
py
Python
skbot/ignition/sdformat/generic_sdf/__init__.py
FirefoxMetzger/ropy
c1bcebda223f3af0b6d35e3f4c26d8fd9d26577a
[ "Apache-2.0" ]
6
2021-03-24T05:54:45.000Z
2021-07-20T21:03:21.000Z
skbot/ignition/sdformat/generic_sdf/__init__.py
FirefoxMetzger/scikit-bot
ee6f1d3451a3c61a6fa122cc42efc4dd67afc9c9
[ "Apache-2.0" ]
31
2021-08-12T08:12:58.000Z
2022-03-21T23:16:36.000Z
skbot/ignition/sdformat/generic_sdf/__init__.py
FirefoxMetzger/scikit-bot
ee6f1d3451a3c61a6fa122cc42efc4dd67afc9c9
[ "Apache-2.0" ]
1
2021-07-20T20:13:49.000Z
2021-07-20T20:13:49.000Z
""" Version-Agnostic SDF Bindings .. currentmodule:: skbot.ignition.sdformat.generic_sdf .. warning:: This module is experimental and not all SDFormat elements are currently supported. If an element is not supported, it will raise a warning. To suppress this warning use:: skbot.ignition.sdformat....
24.519337
87
0.710455
7ffd6daa15a6e8a46f799b43fc40164b29a16125
23,106
py
Python
scripts/gridengine/paramsearch/runScript.py
helloric/pydial3
34988f4592c4e28388b2818de8768d841696efbb
[ "Apache-2.0" ]
null
null
null
scripts/gridengine/paramsearch/runScript.py
helloric/pydial3
34988f4592c4e28388b2818de8768d841696efbb
[ "Apache-2.0" ]
null
null
null
scripts/gridengine/paramsearch/runScript.py
helloric/pydial3
34988f4592c4e28388b2818de8768d841696efbb
[ "Apache-2.0" ]
null
null
null
import os import sys import argparse """ DETAILS: # THIS FILE EXPLORES GP/REGR/FF/LSTM MODELS -- Try varying AT LEAST the following network parameters: a) network structures: n_hideen, L1, L2, acitivation b) learning rate, decay, and regularisation """ ############################...
44.606178
141
0.483165
28a42fdc854cb7972d64a944eb2bba262f7b2094
96
py
Python
preferences/__init__.py
uisautomation/lecture-capture-preferences-webapp
bf54bc9b37241a5a7a6c0df7b1e2c0f8dd16bed6
[ "MIT" ]
1
2019-02-17T08:17:59.000Z
2019-02-17T08:17:59.000Z
preferences/__init__.py
rjw57/lecture-capture-preferences-webapp
f6b4572b06cf1bc2f45e635148cd7e2b3ea283f6
[ "MIT" ]
5
2019-01-08T07:43:40.000Z
2019-02-04T16:32:03.000Z
preferences/__init__.py
rjw57/lecture-capture-preferences-webapp
f6b4572b06cf1bc2f45e635148cd7e2b3ea283f6
[ "MIT" ]
null
null
null
""" Lecture Capture Preferences Application """ default_app_config = 'preferences.apps.Config'
16
46
0.78125
74e2100a2a1ef105b7c8d5a319516db785ab86e9
6,728
py
Python
contrib/devtools/symbol-check.py
dogxteam/dogxwallet-master
346189354bdec9a80c20bdc429ddec15c3b17b73
[ "MIT" ]
5
2019-03-18T02:14:20.000Z
2019-03-21T17:08:27.000Z
contrib/devtools/symbol-check.py
dogxteam/dogxwallet-master
346189354bdec9a80c20bdc429ddec15c3b17b73
[ "MIT" ]
null
null
null
contrib/devtools/symbol-check.py
dogxteam/dogxwallet-master
346189354bdec9a80c20bdc429ddec15c3b17b73
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' A script to check that the (Linux) executables produced by gitian only contain allowed gcc, glibc and libstdc+...
37.797753
173
0.646552
7a7002de094f35c3a08ef43bbe47c04b98dce464
10,896
py
Python
tests/components/switch_as_x/test_init.py
camditt/core
862d8b54146a9b21c307a841ca5dca7cb2f5359f
[ "Apache-2.0" ]
null
null
null
tests/components/switch_as_x/test_init.py
camditt/core
862d8b54146a9b21c307a841ca5dca7cb2f5359f
[ "Apache-2.0" ]
null
null
null
tests/components/switch_as_x/test_init.py
camditt/core
862d8b54146a9b21c307a841ca5dca7cb2f5359f
[ "Apache-2.0" ]
null
null
null
"""Tests for the Switch as X.""" from unittest.mock import patch import pytest from homeassistant.components.switch_as_x.const import CONF_TARGET_DOMAIN, DOMAIN from homeassistant.const import CONF_ENTITY_ID, STATE_OFF, STATE_ON, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import ...
30.866856
87
0.702368
6a3bc378777ae81712935cf3a2e37b6f1487489a
677
py
Python
apps/notifications/migrations/0001_initial.py
Nelson-Morais/HA-OOAD
82bd00ba7ab5f11f43bc90b505ee8afd0b86c7b5
[ "Apache-2.0" ]
null
null
null
apps/notifications/migrations/0001_initial.py
Nelson-Morais/HA-OOAD
82bd00ba7ab5f11f43bc90b505ee8afd0b86c7b5
[ "Apache-2.0" ]
null
null
null
apps/notifications/migrations/0001_initial.py
Nelson-Morais/HA-OOAD
82bd00ba7ab5f11f43bc90b505ee8afd0b86c7b5
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-15 16:55 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(...
27.08
114
0.57164
a32d2cf20eb58fba6764696e149457d343628431
24,694
py
Python
spacy/_ml.py
mhham/spaCy
cce1bff3e1b27e841632e0b1ef358949b5fd0d24
[ "MIT" ]
null
null
null
spacy/_ml.py
mhham/spaCy
cce1bff3e1b27e841632e0b1ef358949b5fd0d24
[ "MIT" ]
null
null
null
spacy/_ml.py
mhham/spaCy
cce1bff3e1b27e841632e0b1ef358949b5fd0d24
[ "MIT" ]
null
null
null
# coding: utf8 from __future__ import unicode_literals import numpy from thinc.v2v import Model, Maxout, Softmax, Affine, ReLu from thinc.i2v import HashEmbed, StaticVectors from thinc.t2t import ExtractWindow, ParametricAttention from thinc.t2v import Pooling, sum_pool, mean_pool from thinc.misc import Residual from ...
32.664021
95
0.597068
3aff9b937003ede708026bb44e8f51b4ba682f45
7,628
py
Python
algorithms/embdi/EmbDI/schema_matching.py
Soton-Song/valentine
9a47859f912540cdbe961ed3585201d3accd07be
[ "Apache-2.0" ]
null
null
null
algorithms/embdi/EmbDI/schema_matching.py
Soton-Song/valentine
9a47859f912540cdbe961ed3585201d3accd07be
[ "Apache-2.0" ]
null
null
null
algorithms/embdi/EmbDI/schema_matching.py
Soton-Song/valentine
9a47859f912540cdbe961ed3585201d3accd07be
[ "Apache-2.0" ]
null
null
null
import argparse import warnings from operator import itemgetter import gensim.models as models import mlflow def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('-i', '--input_file', action='store', required=True, type=str, help='Input embeddings file.') parser.add_argument('-d', '--...
30.882591
117
0.552832
643ee993553d30f77db07c33695434bbc8621ca3
814
py
Python
examples/fips_mip_demo.py
J08nY/sec-certs
d25a4a7c830c587a45eb8e37d99f8794dec1a5eb
[ "MIT" ]
2
2021-03-24T11:56:15.000Z
2021-04-12T12:22:16.000Z
examples/fips_mip_demo.py
J08nY/sec-certs
d25a4a7c830c587a45eb8e37d99f8794dec1a5eb
[ "MIT" ]
73
2021-04-12T14:04:04.000Z
2022-03-31T15:40:26.000Z
examples/fips_mip_demo.py
J08nY/sec-certs
d25a4a7c830c587a45eb8e37d99f8794dec1a5eb
[ "MIT" ]
3
2021-03-26T16:15:49.000Z
2021-05-10T07:26:23.000Z
#!/usr/bin/env python3 import click from sec_certs.dataset.fips_mip import MIPDataset @click.command() @click.argument("directory", type=click.Path(exists=True, file_okay=False)) @click.argument("output", type=click.Path(dir_okay=False, writable=True)) def main(directory, output): """ Parse FIPS 'Modules In...
26.258065
117
0.710074
d86d6b207670723c7007c769471de73e4571efdb
2,150
py
Python
install/core/hooks/get_current_login.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/core/hooks/get_current_login.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/core/hooks/get_current_login.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
1
2020-02-15T10:42:56.000Z
2020-02-15T10:42:56.000Z
# Copyright (c) 2013 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to t...
41.346154
125
0.711163
828e8224e2894ac1b46f7475b5b69df4c7744c89
1,358
py
Python
h2o-py/tests/testdir_algos/glm/pyunit_covtype_get_future_model.py
huamichaelchen/h2o-3
2b52f2240652a1c73c1708762248c0773d0c073e
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_algos/glm/pyunit_covtype_get_future_model.py
huamichaelchen/h2o-3
2b52f2240652a1c73c1708762248c0773d0c073e
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_algos/glm/pyunit_covtype_get_future_model.py
huamichaelchen/h2o-3
2b52f2240652a1c73c1708762248c0773d0c073e
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils import random from h2o.estimators.glm import H2OGeneralizedLinearEstimator def test_get_future_model(): covtype=h2o.upload_file(pyunit_utils.locate("smalldata/covtype/covtype.altered.gz")) myY=54 myX=list(set(range(54)) - set([2...
30.863636
104
0.749632
cf269e95218c576ff5625d4a7743a9e0e5fac111
4,843
py
Python
annotator_supreme/plugins/export_to_logo_detection.py
meerkat-cv/annotator-supreme
36f32834078b3c8b0ae5e59985848248265ac802
[ "MIT" ]
5
2017-06-26T21:30:32.000Z
2017-09-20T16:12:57.000Z
annotator_supreme/plugins/export_to_logo_detection.py
meerkat-cv/annotator-supreme
36f32834078b3c8b0ae5e59985848248265ac802
[ "MIT" ]
17
2017-12-01T14:21:33.000Z
2018-01-18T21:09:50.000Z
annotator_supreme/plugins/export_to_logo_detection.py
meerkat-cv/annotator-supreme
36f32834078b3c8b0ae5e59985848248265ac802
[ "MIT" ]
1
2017-11-28T17:56:41.000Z
2017-11-28T17:56:41.000Z
import os import cv2 import numpy as np class AnnotatorPlugin: _VERSION = '0.0.1' def __init__(self, dataset, partition = None, additional_params = {}): self.dataset_name = dataset["name"] self.dataset_dir = '/tmp/logo_detection_' + dataset["name"] self.tags = dataset["annotation_label...
33.4
114
0.520752
8faa8e914914ac0deb48002f2cf1ba84f256ef60
144
py
Python
chillpill_examples/__init__.py
kevinbache/chillpill_examples
d9c5fac9972f1afbf7bb4e6b6e5388b9f52c73c3
[ "MIT" ]
null
null
null
chillpill_examples/__init__.py
kevinbache/chillpill_examples
d9c5fac9972f1afbf7bb4e6b6e5388b9f52c73c3
[ "MIT" ]
null
null
null
chillpill_examples/__init__.py
kevinbache/chillpill_examples
d9c5fac9972f1afbf7bb4e6b6e5388b9f52c73c3
[ "MIT" ]
null
null
null
"""chillpill_examples - Brown, paper, tied up with string.""" __version__ = '0.0.1' __author__ = 'My Name <kevin.bache@gmail.com>' __all__ = []
28.8
61
0.6875
b349068faa2f8eb954a92432cdc035c310ee1bf0
1,478
py
Python
bspump/declarative/expression/utility/castexpr.py
thatch/BitSwanPump
98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f
[ "BSD-3-Clause" ]
null
null
null
bspump/declarative/expression/utility/castexpr.py
thatch/BitSwanPump
98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f
[ "BSD-3-Clause" ]
null
null
null
bspump/declarative/expression/utility/castexpr.py
thatch/BitSwanPump
98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f
[ "BSD-3-Clause" ]
null
null
null
from bspump.declarative.abc import Expression from ..value.eventexpr import ARG class CAST(Expression): """ Casts "value" to "type" """ def __init__(self, app, *, arg_what=None, arg_type=None, arg_default=None, value=None): super().__init__(app) if value is not None: # Scalar variant self.Value = AR...
24.229508
90
0.661705
5b565a48cc0ba1e265fdd460311cb71c7ab83abe
3,285
py
Python
options/train_options.py
kagudkovArt/instagan
5805bf26526e7bdbad02fca7c23c85f385fde02c
[ "BSD-3-Clause" ]
null
null
null
options/train_options.py
kagudkovArt/instagan
5805bf26526e7bdbad02fca7c23c85f385fde02c
[ "BSD-3-Clause" ]
null
null
null
options/train_options.py
kagudkovArt/instagan
5805bf26526e7bdbad02fca7c23c85f385fde02c
[ "BSD-3-Clause" ]
null
null
null
from .base_options import BaseOptions class TrainOptions(BaseOptions): def initialize(self, parser): parser = BaseOptions.initialize(self, parser) parser.add_argument('--display_freq', type=int, default=400, help='frequency of showing training results on screen') # Use ncols = 6 for better...
93.857143
175
0.714155