hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4090bb4b6d1ad59682a210fa58e3049a7296547f | 4,103 | py | Python | castle.py | codyd51/castle | 93e7f8c18a0dacd5437b7503b7f3420d6ebc6256 | [
"MIT"
] | 2 | 2018-08-07T16:18:58.000Z | 2018-08-09T16:59:48.000Z | castle.py | codyd51/castle | 93e7f8c18a0dacd5437b7503b7f3420d6ebc6256 | [
"MIT"
] | null | null | null | castle.py | codyd51/castle | 93e7f8c18a0dacd5437b7503b7f3420d6ebc6256 | [
"MIT"
] | null | null | null | import castle
from typing import Tuple
if __name__ == '__main__':
main()
| 37.3 | 95 | 0.663417 |
40914f27511088ce3ade62cbe86245a30a969a5b | 2,603 | py | Python | pyfos/utils/configure/switch_configuration_show.py | madhavinaiduprathap/pyfosbrocade | ec100e77c441761c3e688f1d8e5d18ad38cc83f4 | [
"Apache-2.0"
] | 44 | 2017-11-17T12:03:11.000Z | 2022-02-03T20:57:56.000Z | pyfos/utils/configure/switch_configuration_show.py | madhavinaiduprathap/pyfosbrocade | ec100e77c441761c3e688f1d8e5d18ad38cc83f4 | [
"Apache-2.0"
] | 13 | 2018-10-09T15:34:15.000Z | 2022-02-24T20:03:17.000Z | pyfos/utils/configure/switch_configuration_show.py | madhavinaiduprathap/pyfosbrocade | ec100e77c441761c3e688f1d8e5d18ad38cc83f4 | [
"Apache-2.0"
] | 23 | 2017-12-14T18:08:33.000Z | 2022-02-03T15:33:40.000Z | #!/usr/bin/env python3
# Copyright 2018 Brocade Communications Systems LLC. 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 also obtain a copy of the License at
# http://www.apache.org/licenses/LICENS... | 28.293478 | 80 | 0.683826 |
409191dc8e0d6b6abf220bc3d47860d3cfbeff3a | 31,078 | py | Python | vehicle/views.py | BernardAli/vehicle-service-mgt | 242d9797f9138a23d1c649d63660c2ee0b6cc462 | [
"MIT"
] | 105 | 2020-09-27T16:10:44.000Z | 2022-03-31T18:08:36.000Z | vehicle/views.py | BernardAli/vehicle-service-mgt | 242d9797f9138a23d1c649d63660c2ee0b6cc462 | [
"MIT"
] | 1 | 2021-07-15T21:36:09.000Z | 2021-07-15T21:36:09.000Z | vehicle/views.py | BernardAli/vehicle-service-mgt | 242d9797f9138a23d1c649d63660c2ee0b6cc462 | [
"MIT"
] | 87 | 2020-10-02T11:45:42.000Z | 2022-03-25T16:43:22.000Z | from django.shortcuts import render,redirect,reverse
from . import forms,models
from django.db.models import Sum
from django.contrib.auth.models import Group
from django.http import HttpResponseRedirect
from django.contrib.auth.decorators import login_required,user_passes_test
from django.conf import settings
from djan... | 41.327128 | 150 | 0.702491 |
409204c88e09d10160109d7dfc196e9a1647012b | 28,322 | py | Python | deep_disfluency/utils/tools.py | treena908/deep_disfluency | 4e18bc17e74c356cd3a9c26fc80bf1c4a5487d59 | [
"MIT"
] | null | null | null | deep_disfluency/utils/tools.py | treena908/deep_disfluency | 4e18bc17e74c356cd3a9c26fc80bf1c4a5487d59 | [
"MIT"
] | null | null | null | deep_disfluency/utils/tools.py | treena908/deep_disfluency | 4e18bc17e74c356cd3a9c26fc80bf1c4a5487d59 | [
"MIT"
] | null | null | null | import random
import numpy as np
import itertools
import re
from collections import defaultdict
import os
def convert_to_simple_label(tag, rep="disf1_uttseg"):
"""Takes the complex tag set and gives back the simple,
smaller version with ten tags:
"""
disftag = "<f/>"
if "<rm-" in tag:
di... | 40.634146 | 85 | 0.49541 |
4093599c05b72acbbffdbf768053f07822e78e65 | 124 | py | Python | library/favourite/api/pagination.py | furkan-34/library-DRF-django-api | 3634133b7c543d6d05845dd8fa1f206386c1badb | [
"MIT"
] | null | null | null | library/favourite/api/pagination.py | furkan-34/library-DRF-django-api | 3634133b7c543d6d05845dd8fa1f206386c1badb | [
"MIT"
] | null | null | null | library/favourite/api/pagination.py | furkan-34/library-DRF-django-api | 3634133b7c543d6d05845dd8fa1f206386c1badb | [
"MIT"
] | null | null | null | from rest_framework.pagination import PageNumberPagination | 31 | 58 | 0.870968 |
40946ed59b952cc97c649459f7de1a75d4265832 | 564 | py | Python | Python-Math/Python-Math/check_prime.py | rgabeflores/Scripts | c8138cb4543e576924de2107abb5a65f0b84264c | [
"MIT"
] | 2 | 2018-05-12T10:58:51.000Z | 2021-11-16T11:52:27.000Z | src/Python-Math/check_prime.py | learn-py/Posts | da394236db0a52c93ca1c0374ad121b263555272 | [
"MIT"
] | null | null | null | src/Python-Math/check_prime.py | learn-py/Posts | da394236db0a52c93ca1c0374ad121b263555272 | [
"MIT"
] | null | null | null | '''
@author Gabriel Flores
Checks the primality of an integer.
'''
def is_prime(x):
'''
Checks the primality of an integer.
'''
sqrt = int(x ** (1/2))
for i in range(2, sqrt, 1):
if x % i == 0:
return False
return True
if __name__ == "__main__":
main() | 18.8 | 66 | 0.592199 |
4095239ac8155507cd8501376f1d1a88028e9392 | 1,580 | py | Python | src/contrib/cortex-strings/scripts/plot-top.py | lastweek/source-freebsd | 0821950b0c40cbc891a27964b342e0202a3859ec | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/contrib/cortex-strings/scripts/plot-top.py | lastweek/source-freebsd | 0821950b0c40cbc891a27964b342e0202a3859ec | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/contrib/cortex-strings/scripts/plot-top.py | lastweek/source-freebsd | 0821950b0c40cbc891a27964b342e0202a3859ec | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #!/usr/bin/env python
"""Plot the performance of different variants of the string routines
for one size.
"""
import libplot
import pylab
if __name__ == '__main__':
main()
| 25.483871 | 112 | 0.61519 |
40958b5deb96439390eb8a34bb5ed7d5f2983d33 | 3,292 | py | Python | part1.py | aspiringguru/python_sqlite_demo | 01422c69493b7301f66dee5a0c99e358aec9746b | [
"MIT"
] | null | null | null | part1.py | aspiringguru/python_sqlite_demo | 01422c69493b7301f66dee5a0c99e358aec9746b | [
"MIT"
] | null | null | null | part1.py | aspiringguru/python_sqlite_demo | 01422c69493b7301f66dee5a0c99e358aec9746b | [
"MIT"
] | null | null | null | import sqlite3
import time, datetime, random
import matplotlib
matplotlib.use("Agg")
#added due to error, possibly due to install configuration
import matplotlib.pyplot as plt
print(matplotlib.get_backend())
import matplotlib.dates as mdates
from matplotlib import style
style.use('fivethirtyeight')
conn = sqlite3... | 25.92126 | 124 | 0.65401 |
40964229b92108c25937fb12522f648ac39e3e91 | 42,098 | py | Python | tests/test_oic_consumer.py | infohash/pyoidc | 62c7318e68c22b7933100d1c06ecc0c78f77f0d9 | [
"Apache-2.0"
] | null | null | null | tests/test_oic_consumer.py | infohash/pyoidc | 62c7318e68c22b7933100d1c06ecc0c78f77f0d9 | [
"Apache-2.0"
] | null | null | null | tests/test_oic_consumer.py | infohash/pyoidc | 62c7318e68c22b7933100d1c06ecc0c78f77f0d9 | [
"Apache-2.0"
] | null | null | null | import json
import os
from urllib.parse import parse_qs
from urllib.parse import urlparse
import pytest
import responses
from freezegun import freeze_time
from jwkest import BadSignature
from jwkest.jwk import SYMKey
from oic.oauth2.message import MissingSigningKey
from oic.oauth2.message import WrongSigningAlgorithm... | 35.585799 | 114 | 0.551071 |
409660d0cd505763586410c6b2b0e9f378f6b60a | 2,338 | py | Python | setup.py | CristianPachacama/cartoframes | 3dc4e10d175069a7d7b734db3d9526127aad9dec | [
"BSD-3-Clause"
] | 1 | 2020-11-23T23:44:32.000Z | 2020-11-23T23:44:32.000Z | setup.py | CristianPachacama/cartoframes | 3dc4e10d175069a7d7b734db3d9526127aad9dec | [
"BSD-3-Clause"
] | null | null | null | setup.py | CristianPachacama/cartoframes | 3dc4e10d175069a7d7b734db3d9526127aad9dec | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import io
from codecs import open
from setuptools import setup, find_packages
REQUIRES = [
'appdirs>=1.4.3,<2.0',
'carto>=1.6.0,<2.0',
'jinja2>=2.10.1,<3.0',
'pandas>=0.24.2<1.0',
'shapely>=1.6.4,<2.0',
'tqdm>=4.32.1,<5.0',
'unideco... | 28.168675 | 82 | 0.597092 |
40967bb7a1cadc5b1fb7c5cf4f834747f6a13132 | 1,026 | py | Python | Tests/test_BioSQL_mysql_connector_online.py | bioinf-mcb/biopython | 1a1f4a7ee4e0efba517d3d607c56c27e72e399cc | [
"BSD-3-Clause"
] | 2 | 2019-10-25T18:20:34.000Z | 2019-10-28T15:26:40.000Z | Tests/test_BioSQL_mysql_connector_online.py | cosign070128/biopython | 2f02e34ba76306e9c27eec9e051809bec2cece9b | [
"BSD-3-Clause"
] | 9 | 2020-05-05T00:54:23.000Z | 2020-06-09T17:10:45.000Z | Tests/test_BioSQL_mysql_connector_online.py | cosign070128/biopython | 2f02e34ba76306e9c27eec9e051809bec2cece9b | [
"BSD-3-Clause"
] | 3 | 2020-06-29T13:07:46.000Z | 2021-06-14T20:11:55.000Z | #!/usr/bin/env python
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Run BioSQL tests using MySQL."""
import unittest
# Really do want "import *" to get all the test clases:
from common_BioSQL ... | 30.176471 | 70 | 0.770955 |
4096eff81f78a7602d75dd243df5e2e64ac51f0d | 429 | py | Python | kalachakra/saraswati/migrations/0004_ritual_people_name.py | tony-mikhailov/Kalachakra | 7a46be7e75bad0500914e5a7c44662c6740ebaa2 | [
"MIT"
] | null | null | null | kalachakra/saraswati/migrations/0004_ritual_people_name.py | tony-mikhailov/Kalachakra | 7a46be7e75bad0500914e5a7c44662c6740ebaa2 | [
"MIT"
] | 3 | 2021-03-19T01:19:04.000Z | 2021-06-04T22:44:35.000Z | kalachakra/saraswati/migrations/0004_ritual_people_name.py | tony-mikhailov/Kalachakra | 7a46be7e75bad0500914e5a7c44662c6740ebaa2 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2020-04-05 07:50
from django.db import migrations, models
| 22.578947 | 88 | 0.617716 |
40997199af5c3427ea68e5bd37b9d827653408fe | 14,709 | py | Python | src/toil/jobStores/abstractJobStore.py | adamnovak/toil | 3a81f1114ec7f347e6e7bfd861073d897a9188ec | [
"Apache-2.0"
] | null | null | null | src/toil/jobStores/abstractJobStore.py | adamnovak/toil | 3a81f1114ec7f347e6e7bfd861073d897a9188ec | [
"Apache-2.0"
] | null | null | null | src/toil/jobStores/abstractJobStore.py | adamnovak/toil | 3a81f1114ec7f347e6e7bfd861073d897a9188ec | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2015 UCSC Computational Genomics Lab
#
# 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 o... | 37.143939 | 102 | 0.615066 |
409a342355b661973139a052737ed840078d30d8 | 9,819 | py | Python | dashboard.py | TheCrypticMusic/COVID-19 | b813d6abeb8031f1165ad2981f14bfd75853e083 | [
"MIT"
] | null | null | null | dashboard.py | TheCrypticMusic/COVID-19 | b813d6abeb8031f1165ad2981f14bfd75853e083 | [
"MIT"
] | null | null | null | dashboard.py | TheCrypticMusic/COVID-19 | b813d6abeb8031f1165ad2981f14bfd75853e083 | [
"MIT"
] | null | null | null | from datetime import date
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
import plotly.express as px
from dash.dependencies import Input, Output
test_data = pd.read_csv("data/world_data.csv")
today = date.today()
external... | 51.952381 | 250 | 0.440778 |
409ac3a28f63c2603ac7a86d7009827a8fa89371 | 979 | py | Python | dataset/load_data_queue.py | hezhujun/autofocus-rnn | dd21ec5cfce07990172048b74e5fc8e3d5b55229 | [
"MIT"
] | 7 | 2020-08-19T01:32:34.000Z | 2021-12-06T07:31:32.000Z | dataset/load_data_queue.py | hezhujun/autofocus-rnn | dd21ec5cfce07990172048b74e5fc8e3d5b55229 | [
"MIT"
] | 2 | 2021-01-28T07:35:45.000Z | 2021-06-20T14:19:01.000Z | dataset/load_data_queue.py | hezhujun/autofocus-rnn | dd21ec5cfce07990172048b74e5fc8e3d5b55229 | [
"MIT"
] | null | null | null | from collections import OrderedDict
import skimage.io as io
from config import get_config
config = get_config()
_cache = LRUCache(config["data_queue_len"])
| 23.309524 | 63 | 0.6476 |
409ad3c2aaa2132563a0928975965afc50081365 | 1,852 | py | Python | algs/astar.py | jakedolan443/search-algorithm-visualizer | 331c22886ef8017add16bc63a8e75df9643f4fe9 | [
"MIT"
] | null | null | null | algs/astar.py | jakedolan443/search-algorithm-visualizer | 331c22886ef8017add16bc63a8e75df9643f4fe9 | [
"MIT"
] | null | null | null | algs/astar.py | jakedolan443/search-algorithm-visualizer | 331c22886ef8017add16bc63a8e75df9643f4fe9 | [
"MIT"
] | null | null | null | import numpy
from heapq import *
import time
| 30.360656 | 100 | 0.532937 |
409bc944bcc8474410d41d3c5ed935bde146869f | 1,119 | py | Python | examples/serial_client.py | marcinbor85/qupy | 219563523c975d1d5ae2aa47bbd02862c906ab43 | [
"MIT"
] | null | null | null | examples/serial_client.py | marcinbor85/qupy | 219563523c975d1d5ae2aa47bbd02862c906ab43 | [
"MIT"
] | null | null | null | examples/serial_client.py | marcinbor85/qupy | 219563523c975d1d5ae2aa47bbd02862c906ab43 | [
"MIT"
] | null | null | null | import logging
import time
from qupy.framing.slip import Slip
from qupy.interface.serial import SerialPort
from qupy.interface.errors import InterfaceTimeoutError, InterfaceIOError, InterfaceError
from qupy.comm.client import CommClient
logging.basicConfig(level=logging.DEBUG)
if __name__ == '__main__':
s = Se... | 22.836735 | 89 | 0.513852 |
409c909153fb2318680014346b00ba060e9d1ace | 699 | py | Python | summary/abs_summarization.py | solarpark7346/sukjulyo | 52caaa7f49294898b055062d7c0b2cb5c5393c24 | [
"MIT"
] | null | null | null | summary/abs_summarization.py | solarpark7346/sukjulyo | 52caaa7f49294898b055062d7c0b2cb5c5393c24 | [
"MIT"
] | null | null | null | summary/abs_summarization.py | solarpark7346/sukjulyo | 52caaa7f49294898b055062d7c0b2cb5c5393c24 | [
"MIT"
] | 3 | 2021-10-31T08:23:44.000Z | 2022-01-13T03:59:22.000Z | import torch
from transformers import PreTrainedTokenizerFast
from transformers import BartForConditionalGeneration
abs_summary = AbsSummarization() | 38.833333 | 91 | 0.815451 |
409d329c8dc7ebfbbdbfdb66ef4f8976ba9ec528 | 12,413 | py | Python | dp_tornado/helper/io/image/__init__.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 18 | 2015-04-07T14:28:39.000Z | 2020-02-08T14:03:38.000Z | dp_tornado/helper/io/image/__init__.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 7 | 2016-10-05T05:14:06.000Z | 2021-05-20T02:07:22.000Z | dp_tornado/helper/io/image/__init__.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 11 | 2015-12-15T09:49:39.000Z | 2021-09-06T18:38:21.000Z | # -*- coding: utf-8 -*-
import tempfile
from dp_tornado.engine.helper import Helper as dpHelper
| 30.573892 | 118 | 0.512688 |
409e06685c9ecbd99f82a4b27833a85d0c5a9b1e | 4,385 | py | Python | script.py | triethyl/wbut-results-parsed | 9ca8f5dd6afab1eb2b0436093b3a20e6e07f923d | [
"MIT"
] | 1 | 2019-02-28T05:32:51.000Z | 2019-02-28T05:32:51.000Z | script.py | triethyl/wbut-results-parsed | 9ca8f5dd6afab1eb2b0436093b3a20e6e07f923d | [
"MIT"
] | null | null | null | script.py | triethyl/wbut-results-parsed | 9ca8f5dd6afab1eb2b0436093b3a20e6e07f923d | [
"MIT"
] | 2 | 2019-03-15T19:40:17.000Z | 2019-05-24T17:15:59.000Z | import requests
from bs4 import BeautifulSoup
import json
import re
# Range of Roll Number - User Input
start_roll = int(input("Starting Roll Number: "))
end_roll = int(input("Ending Roll Number: "))
# Semester - User Input
sem = int(input("Which Semester[1-8]: "))
# Verbosity
verbose = int(input("Verbo... | 35.650407 | 140 | 0.575143 |
409f7a2dc9434e9656e7bedb75a00b02b076a630 | 1,411 | py | Python | cartoonify.py | adl1995/image-processing-filters | 850e4a6e23ef0f3843cc306cf1e42569f705f07e | [
"MIT"
] | null | null | null | cartoonify.py | adl1995/image-processing-filters | 850e4a6e23ef0f3843cc306cf1e42569f705f07e | [
"MIT"
] | null | null | null | cartoonify.py | adl1995/image-processing-filters | 850e4a6e23ef0f3843cc306cf1e42569f705f07e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
__author__ = "Adeel Ahmad"
__email__ = "adeelahmad14@hotmail.com"
__status__ = "Production"
import matplotlib.pyplot as plt
import numpy as np
import skimage as ski
import Image
def cartoonify(im, display=False):
"""
function receives an image and add its gradient magnitude in it and add it
... | 31.355556 | 255 | 0.59674 |
40a00c80a3cc741480575d8150f065c48c9b4231 | 4,341 | py | Python | keymapper/__init__.py | rburns629/KeyMapper | ba1f463bdfa7710f3b9487974874db9424632d85 | [
"MIT"
] | null | null | null | keymapper/__init__.py | rburns629/KeyMapper | ba1f463bdfa7710f3b9487974874db9424632d85 | [
"MIT"
] | null | null | null | keymapper/__init__.py | rburns629/KeyMapper | ba1f463bdfa7710f3b9487974874db9424632d85 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import json
import re
| 33.651163 | 135 | 0.476618 |
40a02814845a829728726e29b79dfead7feb2132 | 3,401 | py | Python | PythonFiles_DataScience/demo37_pythonfordatascience.py | mahnooranjum/Programming_DataScience | f7a4215d4615b3f8460c3a1944a585628cf6930d | [
"MIT"
] | null | null | null | PythonFiles_DataScience/demo37_pythonfordatascience.py | mahnooranjum/Programming_DataScience | f7a4215d4615b3f8460c3a1944a585628cf6930d | [
"MIT"
] | null | null | null | PythonFiles_DataScience/demo37_pythonfordatascience.py | mahnooranjum/Programming_DataScience | f7a4215d4615b3f8460c3a1944a585628cf6930d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Demo37_PythonforDataScience.ipynb
# PYTHON FOR DATA SCIENCE
We will take our python programming skills a step further and process large data in it. Python is an excellent language for deployment. Hence we will be using open source data during the learning process!!
This will make sure we un... | 18.284946 | 259 | 0.643046 |
40a0b272172c34d79349dc117521f3988050cbff | 4,401 | py | Python | quantrocket/db.py | Jay-Jay-D/quantrocket-client | b70ac199382d22d56fad923ca2233ce027f3264a | [
"Apache-2.0"
] | null | null | null | quantrocket/db.py | Jay-Jay-D/quantrocket-client | b70ac199382d22d56fad923ca2233ce027f3264a | [
"Apache-2.0"
] | null | null | null | quantrocket/db.py | Jay-Jay-D/quantrocket-client | b70ac199382d22d56fad923ca2233ce027f3264a | [
"Apache-2.0"
] | 1 | 2019-06-12T11:34:27.000Z | 2019-06-12T11:34:27.000Z | # Copyright 2017 QuantRocket - All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 29.536913 | 102 | 0.667803 |
40a0c02ad22b941af8159f65f284f536c99461a2 | 3,889 | py | Python | ink2canvas/GradientHelper.py | greipfrut/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | 4 | 2016-05-06T21:29:39.000Z | 2020-02-25T08:47:48.000Z | ink2canvas/GradientHelper.py | letw/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | null | null | null | ink2canvas/GradientHelper.py | letw/pdftohtml5canvas | bd4b829a5fd02b503e6b32c268b265daa92e92e5 | [
"MIT"
] | null | null | null | from ink2canvas.lib.simpletransform import parseTransform | 43.696629 | 141 | 0.609154 |
40a15dfaa12f9d16539bfd378e8a390a22b70eb7 | 529 | py | Python | project/manage.py | yosukesuzuki/let-me-notify | 39f50214403822712329c1cd953167d6e9b315d6 | [
"MIT"
] | null | null | null | project/manage.py | yosukesuzuki/let-me-notify | 39f50214403822712329c1cd953167d6e9b315d6 | [
"MIT"
] | null | null | null | project/manage.py | yosukesuzuki/let-me-notify | 39f50214403822712329c1cd953167d6e9b315d6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Kay management script.
:Copyright: (c) 2009 Accense Technology, Inc. All rights reserved.
:license: BSD, see LICENSE for more details.
"""
import sys
import os
import logging
sys.path = [os.path.abspath(os.path.dirname(__file__))] + sys.path
import kay
kay.setup_en... | 19.592593 | 66 | 0.701323 |
40a223cfd00d5ab5d2f6c9db56030a295e86ca65 | 1,624 | py | Python | examples/plotting/field_pole_figure.py | heprom/pymicro | 176bf3a829dbf67796a3d4471f18868a3da229a7 | [
"MIT"
] | 30 | 2017-03-02T14:43:48.000Z | 2022-02-25T13:22:22.000Z | examples/plotting/field_pole_figure.py | heprom/pymicro | 176bf3a829dbf67796a3d4471f18868a3da229a7 | [
"MIT"
] | 14 | 2019-12-29T12:41:29.000Z | 2021-12-01T21:13:20.000Z | examples/plotting/field_pole_figure.py | heprom/pymicro | 176bf3a829dbf67796a3d4471f18868a3da229a7 | [
"MIT"
] | 18 | 2017-03-21T12:43:19.000Z | 2022-03-22T14:30:06.000Z | from pymicro.crystal.microstructure import *
from pymicro.crystal.texture import *
from pymicro.examples import PYMICRO_EXAMPLES_DATA_DIR
from matplotlib import pyplot as plt, colors, colorbar, cm
import pathlib as pl
'''This example demonstrate how a field can be used to color each symbol on
the pole figure with th... | 34.553191 | 93 | 0.75431 |
40a57bcb86583811e90d8029258fdefae6a38a7d | 11,634 | py | Python | model/img2seq_torch.py | marcoleewow/LaTeX_OCR | 0980ea719f8d3175a6bbf6af18873dd72d04b8c7 | [
"Apache-2.0"
] | 290 | 2019-04-04T01:52:32.000Z | 2022-03-30T08:07:53.000Z | model/img2seq_torch.py | w32zhong/LaTeX_OCR | 1e1f196468e678c93dfa2d8ab2ba02fbda38a3c0 | [
"Apache-2.0"
] | 23 | 2019-06-11T05:07:58.000Z | 2022-03-11T23:44:17.000Z | model/img2seq_torch.py | w32zhong/LaTeX_OCR | 1e1f196468e678c93dfa2d8ab2ba02fbda38a3c0 | [
"Apache-2.0"
] | 81 | 2019-04-06T11:40:34.000Z | 2022-02-28T15:08:05.000Z | import time
import sys
import os
import numpy as np
import torch
import torch.nn as nn
import torchvision.models as models
from torch.nn.utils.rnn import pack_padded_sequence
from model.base_torch import BaseModel
from model.utils.general import init_dir, get_logger
from model.utils.general import Progb... | 42.772059 | 147 | 0.577016 |
40a5a49f8963d40bc4247496570aa980197c909d | 719 | py | Python | src/third_party/dart/tools/dom/scripts/all_tests.py | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 21 | 2021-06-04T21:08:21.000Z | 2022-03-04T14:21:34.000Z | src/third_party/dart/tools/dom/scripts/all_tests.py | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 1 | 2021-01-21T14:45:59.000Z | 2021-01-21T14:45:59.000Z | src/third_party/dart/tools/dom/scripts/all_tests.py | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 9 | 2021-03-16T09:29:26.000Z | 2022-01-06T08:38:10.000Z | #!/usr/bin/python
# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
"""This entry point runs all script tests."""
import logging.config
import unittest
if ... | 37.842105 | 76 | 0.719054 |
40a5c13d7bfe8ebdc535f6e928718db2cd73a81f | 623 | py | Python | src/11/11367.py | youngdaLee/Baekjoon | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | [
"MIT"
] | 11 | 2020-09-20T15:17:11.000Z | 2022-03-17T12:43:33.000Z | src/11/11367.py | youngdaLee/Baekjoon | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | [
"MIT"
] | 3 | 2021-10-30T07:51:36.000Z | 2022-03-09T05:19:23.000Z | src/11/11367.py | youngdaLee/Baekjoon | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | [
"MIT"
] | 13 | 2021-01-21T03:19:08.000Z | 2022-03-28T10:44:58.000Z | """
11367. Report Card Time
: xCrypt0r
: Python 3
: 29,380 KB
: 64 ms
: 2020 9 18
"""
if __name__ == '__main__':
main()
| 20.096774 | 37 | 0.499197 |
40a5dc8510f8fdf8f4c9c7d29bd318a4e6deedc1 | 49,691 | py | Python | imgaug/augmentables/bbs.py | bill0714/imgaug | 5abdc4d9d7f512ba34c78955557b174a64ad22a6 | [
"MIT"
] | 1 | 2019-10-25T17:43:20.000Z | 2019-10-25T17:43:20.000Z | imgaug/augmentables/bbs.py | RTANC/imgaug | 2a3161550a4a1895a227bb8856d525e69a7d503d | [
"MIT"
] | null | null | null | imgaug/augmentables/bbs.py | RTANC/imgaug | 2a3161550a4a1895a227bb8856d525e69a7d503d | [
"MIT"
] | null | null | null | from __future__ import print_function, division, absolute_import
import copy
import numpy as np
import skimage.draw
import skimage.measure
from .. import imgaug as ia
from .utils import normalize_shape, project_coords
# TODO functions: square(), to_aspect_ratio(), contains_point()
# TODO add tests for ndarray... | 33.327297 | 127 | 0.55666 |
40a5de5724e10b92314c5b47739791ffcddafb72 | 2,891 | py | Python | scanner_relay/run.py | breakds/brokering | fa63d5ed8057a8018bcb11aaebce689c8d18e7ba | [
"MIT"
] | null | null | null | scanner_relay/run.py | breakds/brokering | fa63d5ed8057a8018bcb11aaebce689c8d18e7ba | [
"MIT"
] | null | null | null | scanner_relay/run.py | breakds/brokering | fa63d5ed8057a8018bcb11aaebce689c8d18e7ba | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from twisted.internet import endpoints
from twisted.internet import protocol
from twisted.internet import defer
from twisted.mail import imap4
from scanner_relay.pipeline import Pipeline
from scanner_relay.authentication import PassStoreFetcher, PlainPasswordFetcher
import logging
# Global con... | 34.416667 | 93 | 0.71982 |
40a624029504fa50d779ccdfdaa5ed5b7ed61a95 | 1,202 | py | Python | cubes_pilingup.py | akiselev1/hackerrank-solutions | 53c2a76c71c9b3553c077ccfde5178b27594ae72 | [
"MIT"
] | null | null | null | cubes_pilingup.py | akiselev1/hackerrank-solutions | 53c2a76c71c9b3553c077ccfde5178b27594ae72 | [
"MIT"
] | null | null | null | cubes_pilingup.py | akiselev1/hackerrank-solutions | 53c2a76c71c9b3553c077ccfde5178b27594ae72 | [
"MIT"
] | null | null | null | """
Created by akiselev on 2019-06-14
There is a horizontal row of cubes. The length of each cube is given. You need to create a new vertical pile of cubes. The new pile should follow these directions: if is on top of then
.
When stacking the cubes, you can only pick up either the leftmost or the rightmost cube ... | 23.115385 | 205 | 0.689684 |
40a999434640883a137547c775c396581c90f8a2 | 14,674 | py | Python | flask_web/bootstrap_web_core_py3.py | bopopescu/docker_images_a | 348d0982c5962f2ae34d10183ed9522b7a6fe286 | [
"MIT"
] | null | null | null | flask_web/bootstrap_web_core_py3.py | bopopescu/docker_images_a | 348d0982c5962f2ae34d10183ed9522b7a6fe286 | [
"MIT"
] | null | null | null | flask_web/bootstrap_web_core_py3.py | bopopescu/docker_images_a | 348d0982c5962f2ae34d10183ed9522b7a6fe286 | [
"MIT"
] | null | null | null | #
#
# File: flask_web_py3.py
#
#
#
import os
import json
import redis
import urllib
import flask
from flask import Flask
from flask import render_template,jsonify
from flask_httpauth import HTTPDigestAuth
from flask import request, session, url_for
from redis_support_py3.graph_query_support_py3 impo... | 34.855107 | 147 | 0.568284 |
40a99a0c9d4869b889926f6fe54b50b768c6cb98 | 4,160 | py | Python | git_talk/lib/changelog/main.py | cove9988/git-talk | 9f549d8565948a150834bcaa704b55ae15c094c1 | [
"MIT"
] | 5 | 2020-04-06T11:00:27.000Z | 2020-09-30T15:16:56.000Z | git_talk/lib/changelog/main.py | ggdrg/git-talk | 89ed00caa6a426ea9d5fa84cbef588d07aebc1f0 | [
"MIT"
] | 3 | 2020-09-26T02:53:30.000Z | 2020-10-09T01:46:37.000Z | git_talk/lib/changelog/main.py | ggdrg/git-talk | 89ed00caa6a426ea9d5fa84cbef588d07aebc1f0 | [
"MIT"
] | 1 | 2020-09-25T23:41:54.000Z | 2020-09-25T23:41:54.000Z |
import os
import logging
from typing import Optional
import click
from git_talk.lib.changelog import generate_changelog
from git_talk.lib.changelog.presenter import MarkdownPresenter
from git_talk.lib.changelog.repository import GitRepository
# @click.command()
# @click.option(
# "-r",
# ... | 33.821138 | 122 | 0.629567 |
40ab6e634c98f0a3601e54792ef5853e9f4bf06f | 6,429 | py | Python | SQED-Generator/Generators/constraint_generator.py | upscale-project/generic-sqed-demo | aa44a7563e6249c6f0641c13e8ca0b013c497df1 | [
"BSD-3-Clause"
] | 6 | 2019-09-10T02:56:47.000Z | 2021-12-18T11:17:16.000Z | SQED-Generator/Generators/constraint_generator.py | upscale-project/generic-sqed-demo | aa44a7563e6249c6f0641c13e8ca0b013c497df1 | [
"BSD-3-Clause"
] | 1 | 2019-07-19T17:05:20.000Z | 2019-07-19T17:05:20.000Z | SQED-Generator/Generators/constraint_generator.py | upscale-project/generic-sqed-demo | aa44a7563e6249c6f0641c13e8ca0b013c497df1 | [
"BSD-3-Clause"
] | 2 | 2019-10-02T00:35:14.000Z | 2019-10-23T21:13:14.000Z | # Copyright (c) Stanford University
#
# This source code is patent protected and being made available under the
# terms explained in the ../LICENSE-Academic and ../LICENSE-GOV files.
# Author: Mario J Srouji
# Email: msrouji@stanford.edu
import copy
import sys
sys.path.append("../FormatParsers/")
sys.path.append("../... | 36.737143 | 116 | 0.586872 |
40abfa616e38a32a5059cf71c64a0d859cac8dd9 | 3,624 | py | Python | modules/losses.py | Sapperdomonik/retinaface-tf2 | af06baffb7f5bd099e5ca6fec51c94ed298a3926 | [
"MIT"
] | null | null | null | modules/losses.py | Sapperdomonik/retinaface-tf2 | af06baffb7f5bd099e5ca6fec51c94ed298a3926 | [
"MIT"
] | null | null | null | modules/losses.py | Sapperdomonik/retinaface-tf2 | af06baffb7f5bd099e5ca6fec51c94ed298a3926 | [
"MIT"
] | null | null | null | import tensorflow as tf
def MultiBoxLoss(num_class=2, neg_pos_ratio=3):
"""multi-box loss"""
return multi_box_loss
| 48.32 | 79 | 0.625828 |
40ac4ec777b7bc387be14a996d46bdf5f0da5291 | 2,416 | py | Python | tests.py | ckelly/pybingmaps | 9214e3a4c2c9e756848fac7c0d76c46dcc64b65d | [
"MIT"
] | null | null | null | tests.py | ckelly/pybingmaps | 9214e3a4c2c9e756848fac7c0d76c46dcc64b65d | [
"MIT"
] | null | null | null | tests.py | ckelly/pybingmaps | 9214e3a4c2c9e756848fac7c0d76c46dcc64b65d | [
"MIT"
] | null | null | null | import unittest
import random
from time import sleep
import os
from bingmaps import *
# TODO: enter your key for testing
api_key = ''
if __name__ == '__main__':
unittest.main() | 29.82716 | 78 | 0.598096 |
40acba1acfb883bbd0db070af8041dc100486a53 | 1,153 | py | Python | fds/config.py | dvershinin/fds | 4c4c96deb3d2bbe4d0853f601c3dc2b87801ced4 | [
"BSD-2-Clause"
] | 9 | 2020-04-29T14:25:06.000Z | 2021-12-30T03:28:05.000Z | fds/config.py | dvershinin/fds | 4c4c96deb3d2bbe4d0853f601c3dc2b87801ced4 | [
"BSD-2-Clause"
] | 18 | 2020-01-28T22:07:07.000Z | 2022-03-20T16:06:12.000Z | fds/config.py | dvershinin/fds | 4c4c96deb3d2bbe4d0853f601c3dc2b87801ced4 | [
"BSD-2-Clause"
] | null | null | null | from cds.CloudflareWrapper import suggest_set_up, cf_config_filename
from .FirewallWrapper import FirewallWrapper
import logging as log
| 36.03125 | 86 | 0.692975 |
40adb16a80ad4faf260352c08db6efc0124c7ac3 | 450 | py | Python | awardapp/migrations/0004_auto_20191024_1607.py | Elisephan/Awards-project | 269bfbe45a35338fab9c71fc7d8de48b61b1580b | [
"MIT"
] | null | null | null | awardapp/migrations/0004_auto_20191024_1607.py | Elisephan/Awards-project | 269bfbe45a35338fab9c71fc7d8de48b61b1580b | [
"MIT"
] | null | null | null | awardapp/migrations/0004_auto_20191024_1607.py | Elisephan/Awards-project | 269bfbe45a35338fab9c71fc7d8de48b61b1580b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-10-24 16:07
from __future__ import unicode_literals
from django.db import migrations, models
| 21.428571 | 51 | 0.617778 |
40adc41d2f17560f722bc8589f813ea290672937 | 21,395 | py | Python | hikari/events/channel_events.py | Reliku/hikari | c6e62b750ce35885a5e4124ffe8df6445ab34acd | [
"MIT"
] | null | null | null | hikari/events/channel_events.py | Reliku/hikari | c6e62b750ce35885a5e4124ffe8df6445ab34acd | [
"MIT"
] | null | null | null | hikari/events/channel_events.py | Reliku/hikari | c6e62b750ce35885a5e4124ffe8df6445ab34acd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# cython: language_level=3
# Copyright (c) 2020 Nekokatt
#
# 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... | 33.906498 | 119 | 0.686282 |
40af0b1139a38fce3114910895fc7959fcc89bca | 8,649 | py | Python | tests/unit/test_coordinator.py | sopel39/presto-admin | 6e7aee3427bdbea6da2deb41b7f090ef6fdcadd9 | [
"Apache-2.0"
] | 34 | 2016-01-08T21:02:13.000Z | 2017-03-10T02:01:03.000Z | tests/unit/test_coordinator.py | sopel39/presto-admin | 6e7aee3427bdbea6da2deb41b7f090ef6fdcadd9 | [
"Apache-2.0"
] | 3 | 2016-01-27T19:11:14.000Z | 2016-12-02T21:29:53.000Z | tests/unit/test_coordinator.py | sopel39/presto-admin | 6e7aee3427bdbea6da2deb41b7f090ef6fdcadd9 | [
"Apache-2.0"
] | 5 | 2016-04-29T05:27:43.000Z | 2018-01-12T07:50:25.000Z | # -*- coding: utf-8 -*-
#
# 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, software
... | 47.78453 | 78 | 0.492889 |
40af4a6cd5eabd173caad42e65be14761273bd46 | 3,911 | py | Python | other/string chains/strings4.py | saulc/myth-math | 5e278eb8fbaf16a01f5f021aca2142e5ce3131ec | [
"MIT"
] | null | null | null | other/string chains/strings4.py | saulc/myth-math | 5e278eb8fbaf16a01f5f021aca2142e5ce3131ec | [
"MIT"
] | null | null | null | other/string chains/strings4.py | saulc/myth-math | 5e278eb8fbaf16a01f5f021aca2142e5ce3131ec | [
"MIT"
] | null | null | null | # Saul Castro
# Hiralben Hirpara
# config file format
import random
# list to string with sep 'char'
# string to list, count
# compare words, return 0 for no match,
# 1 if end of a == start of b
# 2 if end of b == start of a
if __name__ == '__main__':
readInput()
| 25.730263 | 85 | 0.504475 |
40b182cffd8ba6689e9b3d11caa57c733d863c65 | 2,646 | py | Python | supervised_learning/analysis.py | gonzalezJohnas/SpeechCommand-recognition | d5351abe45c571a075c24bd04d328e76293f9230 | [
"MIT"
] | null | null | null | supervised_learning/analysis.py | gonzalezJohnas/SpeechCommand-recognition | d5351abe45c571a075c24bd04d328e76293f9230 | [
"MIT"
] | 2 | 2021-04-10T18:12:44.000Z | 2022-02-09T23:36:43.000Z | supervised_learning/analysis.py | gonzalezJohnas/SpeechCommand-recognition | d5351abe45c571a075c24bd04d328e76293f9230 | [
"MIT"
] | null | null | null | from global_utils import *
# target word
TARGET_WORD = 'right'
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument(
'--wavfile',
help='Path to the .wav files',
required=False
)
parser.add_argument(
'--indir',
help='Absolute pat... | 29.730337 | 103 | 0.708239 |
40b1a05b02e671eeb4b12cc51ccc3740e6e21280 | 2,010 | py | Python | qnarre/base/proof.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | qnarre/base/proof.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | qnarre/base/proof.py | quantapix/qnarre.com | f51d5945c20ef8182c4aa11f1b407d064c190c70 | [
"MIT"
] | null | null | null | # Copyright 2019 Quantapix 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 applicable l... | 30.454545 | 79 | 0.570149 |
40b2a0543dc5434ad9bc96313563cef627bd5d42 | 6,636 | py | Python | learningPygame/Dave/06-SpaceInvaders/space_invaders.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | learningPygame/Dave/06-SpaceInvaders/space_invaders.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | learningPygame/Dave/06-SpaceInvaders/space_invaders.py | Rosebotics/catapult2019 | 4f125632f4d144b97ee3ecaf00a517780d510a70 | [
"MIT"
] | null | null | null | import pygame, sys, random, time
from pygame.locals import *
# Create a Scoreboard class (from scratch)
# Instance variables: screen, x, y, score, and font (size 30)
# Methods: draw (and __init__)
# Create a scoreboard at location 5, 5
# Draw the scoreboard in the game loop
def main():
pygame.init()
... | 32.851485 | 104 | 0.583484 |
40b2c91082ea21890c36b449104ec87a0b8d9b4b | 266 | py | Python | tests/test_app/rest_app/rest_app/controllers/config_controller.py | jadbin/guniflask | 36253a962c056abf34884263c6919b02b921ad9c | [
"MIT"
] | 12 | 2018-09-06T06:14:59.000Z | 2021-04-18T06:30:44.000Z | tests/test_app/rest_app/rest_app/controllers/config_controller.py | jadbin/guniflask | 36253a962c056abf34884263c6919b02b921ad9c | [
"MIT"
] | null | null | null | tests/test_app/rest_app/rest_app/controllers/config_controller.py | jadbin/guniflask | 36253a962c056abf34884263c6919b02b921ad9c | [
"MIT"
] | 2 | 2019-09-08T22:01:26.000Z | 2020-08-03T07:23:29.000Z | from guniflask.config import settings
from guniflask.web import blueprint, get_route
| 20.461538 | 46 | 0.703008 |
40b4eef32d47c4960807376665ec44995d7e4116 | 14,062 | py | Python | model/_UNet_trainer.py | yasahi-hpc/AMRNet | 5858d464bdfe409a5ab50889104768dda3c70508 | [
"MIT"
] | null | null | null | model/_UNet_trainer.py | yasahi-hpc/AMRNet | 5858d464bdfe409a5ab50889104768dda3c70508 | [
"MIT"
] | null | null | null | model/_UNet_trainer.py | yasahi-hpc/AMRNet | 5858d464bdfe409a5ab50889104768dda3c70508 | [
"MIT"
] | null | null | null | from ._base_trainer import _BaseTrainer, MeasureMemory
import pathlib
import torch.multiprocessing as mp
import torch
from torch import nn
import horovod.torch as hvd
import numpy as np
import xarray as xr
import itertools
from .flow_dataset import FlowDataset
from .unet import UNet
import sys
from .visualization impor... | 39.061111 | 147 | 0.595435 |
40b61330deb7990837ff7794fbef7bc995f41538 | 5,557 | py | Python | agents/vpg_policy_translation_with_dislocation.py | pjarosik/rlus | 5804a37ed9221362c470ad4eb0e6b03e533bf1d8 | [
"Apache-2.0"
] | 3 | 2020-09-20T20:02:43.000Z | 2022-01-14T09:37:46.000Z | agents/vpg_policy_translation_with_dislocation.py | pjarosik/rlus | 5804a37ed9221362c470ad4eb0e6b03e533bf1d8 | [
"Apache-2.0"
] | null | null | null | agents/vpg_policy_translation_with_dislocation.py | pjarosik/rlus | 5804a37ed9221362c470ad4eb0e6b03e533bf1d8 | [
"Apache-2.0"
] | 1 | 2021-06-29T07:02:19.000Z | 2021-06-29T07:02:19.000Z | from spinup import vpg
import tensorflow as tf
import numpy as np
from gym.spaces import Box, Discrete
from envs.focal_point_task_us_env import FocalPointTaskUsEnv
from envs.phantom import (
ScatterersPhantom,
Ball,
Teddy
)
from envs.imaging import ImagingSystem, Probe
from envs.generator import ConstPhanto... | 31.936782 | 81 | 0.620659 |
40b7ac2bc7f8f3621a710ed64cc2cd9096f796f1 | 791 | py | Python | lib/losses/dice.py | zongdaoming/CMT | fc3773bb6c6b1ab091688addfffca3fb1e382ae4 | [
"MIT"
] | 3 | 2021-05-10T20:12:23.000Z | 2021-11-24T18:01:13.000Z | lib/losses/dice.py | zongdaoming/CMT | fc3773bb6c6b1ab091688addfffca3fb1e382ae4 | [
"MIT"
] | null | null | null | lib/losses/dice.py | zongdaoming/CMT | fc3773bb6c6b1ab091688addfffca3fb1e382ae4 | [
"MIT"
] | null | null | null | import sys,os
sys.path.append('/home/zongdaoming/cv/multi-organ/multi-organ-ijcai')
from lib.losses.BaseClass import _AbstractDiceLoss
from lib.losses.basic import *
| 35.954545 | 102 | 0.737042 |
40b7ae2027514475dd06028f5df19e3941be6b6d | 1,190 | py | Python | icons.py | jasantunes/alfred-golinks | f35fa87adedf07329469c0161c8808401a6925d0 | [
"MIT"
] | 312 | 2015-01-02T12:44:03.000Z | 2020-06-21T03:53:29.000Z | icons.py | jasantunes/alfred-golinks | f35fa87adedf07329469c0161c8808401a6925d0 | [
"MIT"
] | 7 | 2015-03-22T11:57:50.000Z | 2020-02-09T08:35:05.000Z | icons.py | jasantunes/alfred-golinks | f35fa87adedf07329469c0161c8808401a6925d0 | [
"MIT"
] | 35 | 2015-09-06T09:36:32.000Z | 2020-06-21T19:17:55.000Z | # encoding: utf-8
#
# Copyright (c) 2019 Dean Jackson <deanishe@deanishe.net>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2019-09-06
#
"""Overlay check mark on icons."""
from __future__ import print_function, absolute_import
from Cocoa import (
NSBitmapImageRep,
NSPNGFileType,
... | 25.869565 | 70 | 0.691597 |
40b9ac7b9f67d52c5c73796669c1ff5e0996665b | 2,491 | py | Python | project/python/Main/CTRL/tracker.py | warak/IOT-GrannyWarden | 54ad51b7bf7377ce7b87e72091c9dbf7f686050d | [
"MIT"
] | null | null | null | project/python/Main/CTRL/tracker.py | warak/IOT-GrannyWarden | 54ad51b7bf7377ce7b87e72091c9dbf7f686050d | [
"MIT"
] | null | null | null | project/python/Main/CTRL/tracker.py | warak/IOT-GrannyWarden | 54ad51b7bf7377ce7b87e72091c9dbf7f686050d | [
"MIT"
] | null | null | null | import datetime
from threading import Thread
from time import sleep
import DBC.dbcreate as dbc
| 30.753086 | 91 | 0.470092 |
40ba1c6c5aded5c9a1f75bcde2e5830a948185e5 | 39,197 | py | Python | tests/unit/test_snapshot.py | cnnradams/python-spanner | 33055e577288cbcc848aa9abf43ccd382c9907a9 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_snapshot.py | cnnradams/python-spanner | 33055e577288cbcc848aa9abf43ccd382c9907a9 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_snapshot.py | cnnradams/python-spanner | 33055e577288cbcc848aa9abf43ccd382c9907a9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Google LLC All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 37.725698 | 88 | 0.672858 |
40ba39e3f0879514163c0009fb4d3d4f6df2004d | 592 | py | Python | hashtable.py | quake0day/oj | c09333d1738f8735de0d5d825db6f4b707585670 | [
"MIT"
] | null | null | null | hashtable.py | quake0day/oj | c09333d1738f8735de0d5d825db6f4b707585670 | [
"MIT"
] | null | null | null | hashtable.py | quake0day/oj | c09333d1738f8735de0d5d825db6f4b707585670 | [
"MIT"
] | null | null | null | A = ['a','b']
B = ['c','b','a']
print compareHash(A, B)
| 19.733333 | 43 | 0.496622 |
40bab880835594679397baae0088587d6d0269a6 | 2,904 | py | Python | Manipulation of PDF Files/pandf_gui.py | clair513/DIY | 843770590a729c6aabf63367a3ab848e21ab78b9 | [
"MIT"
] | 1 | 2019-12-18T17:28:11.000Z | 2019-12-18T17:28:11.000Z | Manipulation of PDF Files/pandf_gui.py | clair513/DIY | 843770590a729c6aabf63367a3ab848e21ab78b9 | [
"MIT"
] | null | null | null | Manipulation of PDF Files/pandf_gui.py | clair513/DIY | 843770590a729c6aabf63367a3ab848e21ab78b9 | [
"MIT"
] | null | null | null | # Importing required packages:
import pandas as pd
from tkinter import *
from tkinter.ttk import *
root = Tk()
# To visualize input DataFrame:
def generate_plot(gui_root, df, x_axis, y_axis=None,
plot={'type':None, 'hue':None},
aesthetics={'style':'whitegrid', 'palette':'... | 38.72 | 107 | 0.587466 |
40bac90ddb15602100d2d54bde81a9850ed02d27 | 4,737 | py | Python | utils/get_dataset.py | gautierdag/pytorch-attentive-lm | d08ce1813a5ee575c0aac86773cd95aa174ab5e1 | [
"MIT"
] | 16 | 2019-01-28T16:39:52.000Z | 2021-12-25T11:07:55.000Z | utils/get_dataset.py | MarkWuCL/pytorch-attentive-lm | d08ce1813a5ee575c0aac86773cd95aa174ab5e1 | [
"MIT"
] | 1 | 2021-09-14T22:14:28.000Z | 2021-09-15T16:12:43.000Z | utils/get_dataset.py | MarkWuCL/pytorch-attentive-lm | d08ce1813a5ee575c0aac86773cd95aa174ab5e1 | [
"MIT"
] | 6 | 2019-01-25T00:08:33.000Z | 2022-02-15T06:47:54.000Z | import os
import torch
from torch.utils.data import DataLoader, TensorDataset
import requests
import io
import zipfile
from .data_reader import read_vocabulary, read_lm_data, lm_data_producer
from .pre_process_wikitext import pre_process
def get_dataset(dataset, batch_size, device):
"""
Returns data iterator... | 37.896 | 90 | 0.677222 |
40bb7183ce1df8b018466acd5e09bcd49d75d2d5 | 289 | py | Python | Conteudo das Aulas/087/calc_est.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | Conteudo das Aulas/087/calc_est.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | Conteudo das Aulas/087/calc_est.py | cerberus707/lab-python | ebba3c9cde873d70d4bb61084f79ce30b7f9e047 | [
"Apache-2.0"
] | null | null | null | from tkinter import *
#Cria a nossa tela
instancia = Tk()
#D um ttulo a tela
instancia.title('Calculadora para Estatstica')
#D um tamanho a tela
instancia.geometry("800x600")
#D um cone ao aplicativo
#instancia.wm_iconbitmap('icone.ico')
#Inicia o programa
instancia.mainloop()
| 17 | 47 | 0.761246 |
40bb7e3f95f2a2dc9b27a2c8dd06c761ef722a37 | 6,235 | py | Python | property_scraper.py | iplaughlin/property_scraping | 739d05a272eddb5f2b48f9fc85f407904067b931 | [
"MIT"
] | null | null | null | property_scraper.py | iplaughlin/property_scraping | 739d05a272eddb5f2b48f9fc85f407904067b931 | [
"MIT"
] | null | null | null | property_scraper.py | iplaughlin/property_scraping | 739d05a272eddb5f2b48f9fc85f407904067b931 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 19 09:42:09 2022
@author: iaala
"""
import requests
import sql_configs
import datetime
import os
from bs4 import BeautifulSoup
import time
from find_tables import (
table_information_one,
table_information_two,
table_information_three,
table_information_... | 42.705479 | 121 | 0.559262 |
40be64921673daa0d8c5613e61a252c64c6e744e | 1,002 | py | Python | matches/tests/test_view_index.py | ToxaZ/nostradamus | adda478685d60df24da106c15d734d02f01ed339 | [
"WTFPL"
] | null | null | null | matches/tests/test_view_index.py | ToxaZ/nostradamus | adda478685d60df24da106c15d734d02f01ed339 | [
"WTFPL"
] | 4 | 2021-06-02T23:01:40.000Z | 2021-07-25T15:02:42.000Z | matches/tests/test_view_index.py | ToxaZ/nostradamus | adda478685d60df24da106c15d734d02f01ed339 | [
"WTFPL"
] | null | null | null | from django.urls import resolve, reverse
from django.test import TestCase
from matches.views import matches_index
from matches.models import Match
| 33.4 | 77 | 0.675649 |
40be6781a367fb391b4b06b4f46533ac8dd9e99d | 5,871 | py | Python | hmc/applications/banana/banana.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | 1 | 2021-11-23T15:40:07.000Z | 2021-11-23T15:40:07.000Z | hmc/applications/banana/banana.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | null | null | null | hmc/applications/banana/banana.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | null | null | null | from typing import Callable, Tuple
import numpy as np
def posterior_factory(y: np.ndarray, sigma_y: float, sigma_theta: float) -> Tuple[Callable]:
"""The banana distribution is a distribution that exhibits a characteristic
banana-shaped ridge that resembles the posterior that can emerge from
models that ... | 35.36747 | 106 | 0.62698 |
40c04be7b7e97b73786d758981e90307e422880f | 3,141 | py | Python | msp430.py | sprout42/binaryninja-msp430 | 9bc5a79b1c6232260c2abc3bb4334e5ca3478baf | [
"MIT"
] | null | null | null | msp430.py | sprout42/binaryninja-msp430 | 9bc5a79b1c6232260c2abc3bb4334e5ca3478baf | [
"MIT"
] | null | null | null | msp430.py | sprout42/binaryninja-msp430 | 9bc5a79b1c6232260c2abc3bb4334e5ca3478baf | [
"MIT"
] | null | null | null | from binaryninja import (
Architecture,
BranchType,
FlagRole,
InstructionInfo,
LowLevelILFlagCondition,
RegisterInfo,
)
from .instructions import TYPE3_INSTRUCTIONS, Instruction, Registers
from .lifter import Lifter
| 30.794118 | 86 | 0.617638 |
40c0c0515519976b7d3396916ff20c4b1d6edd0a | 126 | py | Python | app/domain/__init__.py | emge1/tracardi | 0a4a8a38f0f769464f50d3c1113b798107810810 | [
"MIT"
] | null | null | null | app/domain/__init__.py | emge1/tracardi | 0a4a8a38f0f769464f50d3c1113b798107810810 | [
"MIT"
] | null | null | null | app/domain/__init__.py | emge1/tracardi | 0a4a8a38f0f769464f50d3c1113b798107810810 | [
"MIT"
] | null | null | null | __all__ = [
'session',
'event',
'profile',
'consent',
'segment',
'source',
'rule',
'entity'
]
| 11.454545 | 14 | 0.444444 |
40c32fb91113902b7c534e034974797ba31567b9 | 3,868 | py | Python | metric_calculation/faster_metrics.py | imatge-upc/saliency-2018-videosalgan | 5e4bf3892d55d8b9f37490e119113c2094be3bce | [
"MIT"
] | 10 | 2018-09-06T03:56:59.000Z | 2020-07-26T11:02:50.000Z | metric_calculation/faster_metrics.py | imatge-upc/saliency-2018-videosalgan | 5e4bf3892d55d8b9f37490e119113c2094be3bce | [
"MIT"
] | null | null | null | metric_calculation/faster_metrics.py | imatge-upc/saliency-2018-videosalgan | 5e4bf3892d55d8b9f37490e119113c2094be3bce | [
"MIT"
] | 3 | 2019-01-07T19:34:12.000Z | 2019-07-03T07:41:48.000Z | from salience_metrics import auc_judd, auc_shuff, cc, nss, similarity, normalize_map
"""
DHF1K paper: "we employ five classic met-rics, namely Normalized Scanpath Saliency (NSS), Sim-ilarity Metric (SIM), Linear Correlation Coefficient (CC),AUC-Judd (AUC-J), and shuffled AUC (s-AUC).""
"""
import cv2
import o... | 39.876289 | 207 | 0.668046 |
40c346f9a8e289985909d8a308d6ecd6f7e032ea | 1,061 | py | Python | tests/rules/test_pacman_invalid_option.py | RogueScholar/thefuck-termux | cc33d5fa0077b2b2323b8a62f3478ff8efef3fba | [
"MIT"
] | null | null | null | tests/rules/test_pacman_invalid_option.py | RogueScholar/thefuck-termux | cc33d5fa0077b2b2323b8a62f3478ff8efef3fba | [
"MIT"
] | null | null | null | tests/rules/test_pacman_invalid_option.py | RogueScholar/thefuck-termux | cc33d5fa0077b2b2323b8a62f3478ff8efef3fba | [
"MIT"
] | null | null | null | import pytest
from thefuck.rules.pacman_invalid_option import get_new_command
from thefuck.rules.pacman_invalid_option import match
from thefuck.types import Command
good_output = """community/shared_meataxe 1.0-3
A set of programs for working with matrix representations over finite fields
"""
bad_output = "erro... | 31.205882 | 80 | 0.748351 |
40c37866ffff9cefa653877b146a68fc96c42ddf | 11,329 | py | Python | dimod/reference/composites/scalecomposite.py | joseppinilla/dimod | e33ca5045e31ee2d9d58515f017fb6be5276cd8e | [
"Apache-2.0"
] | 1 | 2022-02-01T14:40:05.000Z | 2022-02-01T14:40:05.000Z | dimod/reference/composites/scalecomposite.py | xpin/dimod | 5e399317b0bfaae6ed20e22b9f2ef242f5fa5e6c | [
"Apache-2.0"
] | null | null | null | dimod/reference/composites/scalecomposite.py | xpin/dimod | 5e399317b0bfaae6ed20e22b9f2ef242f5fa5e6c | [
"Apache-2.0"
] | 1 | 2022-02-01T14:40:31.000Z | 2022-02-01T14:40:31.000Z | # Copyright 2019 D-Wave Systems 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... | 37.637874 | 101 | 0.603231 |
40c4517b7bccc080e6b7ec11639bdde005bb213a | 739 | py | Python | tests/test_config.py | savilard/flask-ecom-api | d94ee7873b9ec80645c05422e3355e8dc045ebeb | [
"MIT"
] | 1 | 2021-04-17T15:25:36.000Z | 2021-04-17T15:25:36.000Z | tests/test_config.py | savilard/flask-ecom-api | d94ee7873b9ec80645c05422e3355e8dc045ebeb | [
"MIT"
] | null | null | null | tests/test_config.py | savilard/flask-ecom-api | d94ee7873b9ec80645c05422e3355e8dc045ebeb | [
"MIT"
] | 1 | 2021-04-18T15:47:02.000Z | 2021-04-18T15:47:02.000Z | import os
| 36.95 | 92 | 0.783491 |
40c6d377ec913783afe6edc196ecab48e0003b36 | 6,122 | py | Python | leasing/forms.py | suutari-ai/mvj | c39dbc692afcb3b26366783414c2d5a88a57b25a | [
"MIT"
] | 1 | 2021-01-12T08:14:10.000Z | 2021-01-12T08:14:10.000Z | leasing/forms.py | suutari-ai/mvj | c39dbc692afcb3b26366783414c2d5a88a57b25a | [
"MIT"
] | 249 | 2017-04-18T14:00:13.000Z | 2022-03-30T12:18:03.000Z | leasing/forms.py | suutari-ai/mvj | c39dbc692afcb3b26366783414c2d5a88a57b25a | [
"MIT"
] | 7 | 2017-04-18T08:43:54.000Z | 2021-07-28T07:29:30.000Z | from django import forms
from django.core import validators
from django.core.exceptions import ValidationError
from leasing.enums import (
InfillDevelopmentCompensationState,
LeaseState,
TenantContactType,
)
from leasing.models import Contact, DecisionMaker, District, LeaseType, Municipality
from leasing.v... | 36.658683 | 87 | 0.679353 |
40c712bda8811c80835db84231a9e91605ae40b6 | 675 | py | Python | src/main/management/commands/create_admin_user.py | LokotamaTheMastermind/website-portfolio-django-project | 932d509428d592ee573ff82821b9490c8da9600a | [
"Apache-2.0"
] | null | null | null | src/main/management/commands/create_admin_user.py | LokotamaTheMastermind/website-portfolio-django-project | 932d509428d592ee573ff82821b9490c8da9600a | [
"Apache-2.0"
] | null | null | null | src/main/management/commands/create_admin_user.py | LokotamaTheMastermind/website-portfolio-django-project | 932d509428d592ee573ff82821b9490c8da9600a | [
"Apache-2.0"
] | null | null | null | # polls/management/commands/create_admin_user.py
import sys
import logging
from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
from django.conf import settings
| 28.125 | 65 | 0.642963 |
40c7452a82c23c82f183d4188dfd8d42aa979d41 | 1,597 | py | Python | app.py | jdanper/incredipaper | 4c2d2dc1e2280f19e01d2e8faea4c9a1ae9b5449 | [
"MIT"
] | null | null | null | app.py | jdanper/incredipaper | 4c2d2dc1e2280f19e01d2e8faea4c9a1ae9b5449 | [
"MIT"
] | null | null | null | app.py | jdanper/incredipaper | 4c2d2dc1e2280f19e01d2e8faea4c9a1ae9b5449 | [
"MIT"
] | null | null | null | import unirest
import json
import requests
import os
import subprocess
import time
import argparse
rootUrl = "https://api.unsplash.com/"
unirest.default_header("Accept", "application/json")
unirest.default_header("Accept-Version", "v1")
unirest.default_header("Authorization","<CLIENT-ID>")
while True:
parser = a... | 40.948718 | 204 | 0.707577 |
40c7af774d2446afa75acb06651e91eb7c9447fd | 2,358 | py | Python | tests/client_asyncio_test.py | ninchat/ninchat-python | 7e5fcadb7389ca8c7722c32d69839289675d7baa | [
"BSD-2-Clause"
] | null | null | null | tests/client_asyncio_test.py | ninchat/ninchat-python | 7e5fcadb7389ca8c7722c32d69839289675d7baa | [
"BSD-2-Clause"
] | 4 | 2017-10-12T21:05:12.000Z | 2018-05-17T22:19:08.000Z | tests/client_asyncio_test.py | ninchat/ninchat-python | 7e5fcadb7389ca8c7722c32d69839289675d7baa | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2017, Somia Reality Oy
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions an... | 38.655738 | 133 | 0.725615 |
40c853daa30d56c941424e6324401a40fa450528 | 878 | py | Python | msgraph/base.py | jstacoder/python-msgraph | be9a93f4baa2d89c97a8454ab1d31b8e5fdda38e | [
"Apache-2.0"
] | 2 | 2020-09-23T18:26:22.000Z | 2021-03-10T14:12:49.000Z | msgraph/base.py | jstacoder/python-msgraph | be9a93f4baa2d89c97a8454ab1d31b8e5fdda38e | [
"Apache-2.0"
] | 4 | 2020-09-23T18:25:32.000Z | 2021-03-22T11:07:32.000Z | msgraph/base.py | jstacoder/python-msgraph | be9a93f4baa2d89c97a8454ab1d31b8e5fdda38e | [
"Apache-2.0"
] | 1 | 2020-09-23T18:28:14.000Z | 2020-09-23T18:28:14.000Z | from datetime import datetime
| 35.12 | 158 | 0.633257 |
40c934e19e6344f536502d3f0e951d55cb483721 | 5,641 | py | Python | nc/models.py | caktus/Traffic-Stops | 2c6eda9477f1770c5ad1208a1937c3e828fbfb28 | [
"MIT"
] | 1 | 2021-12-10T14:58:11.000Z | 2021-12-10T14:58:11.000Z | nc/models.py | caktus/Traffic-Stops | 2c6eda9477f1770c5ad1208a1937c3e828fbfb28 | [
"MIT"
] | 5 | 2020-08-12T15:20:31.000Z | 2021-06-10T13:43:02.000Z | nc/models.py | caktus/Traffic-Stops | 2c6eda9477f1770c5ad1208a1937c3e828fbfb28 | [
"MIT"
] | null | null | null | from caching.base import CachingManager, CachingMixin
from django.db import models
from tsdata.models import CensusProfile
PURPOSE_CHOICES = (
(1, "Speed Limit Violation"),
(2, "Stop Light/Sign Violation"),
(3, "Driving While Impaired"),
(4, "Safe Movement Violation"),
(5, "Vehicle Equipment Violat... | 34.607362 | 99 | 0.710867 |
40cc65a33578c41b6882d9360507c431c3bb4a45 | 74 | py | Python | flasky/auth/forms/__init__.py | by46/fasky | c6941972b57284c2167dfacf022f981939249256 | [
"MIT"
] | null | null | null | flasky/auth/forms/__init__.py | by46/fasky | c6941972b57284c2167dfacf022f981939249256 | [
"MIT"
] | null | null | null | flasky/auth/forms/__init__.py | by46/fasky | c6941972b57284c2167dfacf022f981939249256 | [
"MIT"
] | null | null | null | from .login import LoginForm
from .registration import RegistrationForm
| 24.666667 | 43 | 0.837838 |
40ce727b047c06c9d0537e694ab36bc40c4d524b | 552 | py | Python | API_SIMIT_Mail/multapp/urls.py | profefonso/Services-SM | 98b9949a237121451a13fce5bc8f2945fa5a3cee | [
"MIT"
] | null | null | null | API_SIMIT_Mail/multapp/urls.py | profefonso/Services-SM | 98b9949a237121451a13fce5bc8f2945fa5a3cee | [
"MIT"
] | 16 | 2019-12-04T23:02:52.000Z | 2022-02-10T11:57:03.000Z | API_SIMIT_Mail/multapp/urls.py | profefonso/Services-SM | 98b9949a237121451a13fce5bc8f2945fa5a3cee | [
"MIT"
] | null | null | null | from django.urls import path
from django.contrib import admin
from rest_framework_swagger.views import get_swagger_view
from .views import notification
schema_view = get_swagger_view(title='MAIL API')
urlpatterns = [
path('front/betsy/irish/embargo/admin/', admin.site.urls),
# Swagger API
path(
... | 21.230769 | 62 | 0.681159 |
40d10458dee4b20d938050badf13c455b5c17307 | 1,097 | py | Python | tests/legacy_mocket.py | jepler/Adafruit_CircuitPython_Requests | 9a9527110726036bfad94b14166e62aa61c1276e | [
"MIT"
] | null | null | null | tests/legacy_mocket.py | jepler/Adafruit_CircuitPython_Requests | 9a9527110726036bfad94b14166e62aa61c1276e | [
"MIT"
] | null | null | null | tests/legacy_mocket.py | jepler/Adafruit_CircuitPython_Requests | 9a9527110726036bfad94b14166e62aa61c1276e | [
"MIT"
] | null | null | null | from unittest import mock
SOCK_STREAM = 0
set_interface = mock.Mock()
interface = mock.MagicMock()
getaddrinfo = mock.Mock()
socket = mock.Mock()
| 26.756098 | 61 | 0.610757 |
40d10aff20e4192696c984a95bd52419f7e1299a | 2,228 | py | Python | run.py | romeroyakovlev/ii | ae9485df2c3565871994c146001a72db511f3700 | [
"CC0-1.0"
] | 1 | 2017-09-29T09:35:04.000Z | 2017-09-29T09:35:04.000Z | run.py | romeroyakovlev/ii | ae9485df2c3565871994c146001a72db511f3700 | [
"CC0-1.0"
] | null | null | null | run.py | romeroyakovlev/ii | ae9485df2c3565871994c146001a72db511f3700 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
import api,points
from api.bottle import *
II_PATH=os.path.dirname(__file__) or '.'
TEMPLATE_PATH.insert(0,II_PATH)
def _point_msg(pauth,tmsg):
msgfrom, addr = points.check_hash(pauth)
if not addr: return 'auth error!'
cfg = api.load_echo(False)
mo = api.toss(msgfrom,'%s,%s' %... | 29.706667 | 84 | 0.62702 |
40d1ab4064e3ebc59780f56e6705f5033ef843d8 | 2,080 | py | Python | learning_labs/yang/01-yang/add_loopback_ip.py | hpreston/sbx_nxos | 8952d369b80810d22e0c86485b667cde1519272d | [
"MIT"
] | 33 | 2017-05-19T19:47:33.000Z | 2021-05-16T07:33:39.000Z | learning_labs/yang/01-yang/add_loopback_ip.py | AJNOURI/sbx_nxos | 449ee3c1c88cbd831fd3f90490fc28dd7e02d448 | [
"MIT"
] | 13 | 2017-08-25T16:48:16.000Z | 2021-09-23T23:21:58.000Z | learning_labs/yang/01-yang/add_loopback_ip.py | vbohinc/sbx_nxos | 744c34fffd32b1c973ac791123afd6cc811e0d8b | [
"MIT"
] | 20 | 2017-06-19T09:32:20.000Z | 2022-02-20T05:33:14.000Z | #!/usr/bin/env python
from ncclient import manager
import sys
from lxml import etree
# Set the device variables
DEVICES = ['172.16.30.101', '172.16.30.102']
USER = 'admin'
PASS = 'admin'
PORT = 830
LOOPBACK_IP = {
'172.16.30.101': '10.99.99.1/24',
'172.16.30.102': '10.99.99.2/24'
}
DEVICE_NAMES = {'172.16.3... | 30.144928 | 117 | 0.479327 |
40d1e35fdcc4995890f4efabdc25434ef9f00eb5 | 5,704 | py | Python | Plotly_Dash/spacex_dash_app.py | AtypicalLogic/Coursera-IBM_DS-Applied_Data_Science_Capstone | 2659fcae1a8d5fec13ab632aee1492a29e9585ee | [
"MIT"
] | null | null | null | Plotly_Dash/spacex_dash_app.py | AtypicalLogic/Coursera-IBM_DS-Applied_Data_Science_Capstone | 2659fcae1a8d5fec13ab632aee1492a29e9585ee | [
"MIT"
] | null | null | null | Plotly_Dash/spacex_dash_app.py | AtypicalLogic/Coursera-IBM_DS-Applied_Data_Science_Capstone | 2659fcae1a8d5fec13ab632aee1492a29e9585ee | [
"MIT"
] | null | null | null | # To run this file, Win Start > cmd > file dir > run: python spacex_dash_app.py
# Import required libraries
import pandas as pd
import dash
from dash import html
from dash import dcc
from dash.dependencies import Input, Output
import plotly.express as px
# Read the airline data into pandas dataframe
spacex_df = pd.rea... | 52.330275 | 223 | 0.58082 |
40d2f193783c709a9e4416360cda1c6098d93420 | 1,430 | py | Python | configs/mnist_paper_residual_cnn_gp.py | rhaps0dy/cnn-gp | 5726bd10debbddcffb3dc1f5c671f5dceedf007d | [
"BSD-2-Clause"
] | 23 | 2019-06-21T15:03:45.000Z | 2022-01-24T11:34:16.000Z | configs/mnist_paper_residual_cnn_gp.py | rhaps0dy/cnn-gp | 5726bd10debbddcffb3dc1f5c671f5dceedf007d | [
"BSD-2-Clause"
] | null | null | null | configs/mnist_paper_residual_cnn_gp.py | rhaps0dy/cnn-gp | 5726bd10debbddcffb3dc1f5c671f5dceedf007d | [
"BSD-2-Clause"
] | 10 | 2019-06-21T14:52:55.000Z | 2021-12-01T19:05:38.000Z | """
The best randomly-searched ResNet reported in the paper.
In the original paper there is a bug. This network sums together layers after
the ReLU nonlinearity, which are not Gaussian, and also do not have mean 0. As
a result, the overall network does not converge to a Gaussian process. The
defined kernel is still va... | 31.086957 | 79 | 0.702098 |
40d397efdfc75b4459bce3aac322fa920256a163 | 2,956 | py | Python | python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 07/ch07_rec08_scatterplot.py | flyingwjw/Documentation | 567608f388ca369b864c2d75a94647801b5dfa1e | [
"Unlicense"
] | null | null | null | python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 07/ch07_rec08_scatterplot.py | flyingwjw/Documentation | 567608f388ca369b864c2d75a94647801b5dfa1e | [
"Unlicense"
] | null | null | null | python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 07/ch07_rec08_scatterplot.py | flyingwjw/Documentation | 567608f388ca369b864c2d75a94647801b5dfa1e | [
"Unlicense"
] | 2 | 2020-09-22T18:37:46.000Z | 2021-09-02T11:02:59.000Z | import matplotlib.pyplot as plt
import numpy as np
# daily search trend for keyword 'flowers' for a year
d = [
1.04, 1.04, 1.16, 1.22, 1.46, 2.34, 1.16, 1.12, 1.24, 1.30, 1.44, 1.22, 1.26,
1.34, 1.26, 1.40, 1.52, 2.56, 1.36, 1.30, 1.20, 1.12, 1.12, 1.12, 1.06, 1.06,
1.00, 1.02, 1.04, 1.02, 1.06, 1.02, 1.04, 0.98, 0... | 46.1875 | 78 | 0.552436 |
40d5469fd32315fb7f4708a40672a155712e5afb | 22,427 | py | Python | src/thespian/tweaks.py | mtttech/dndpersonae | c4fa129d1e940c9f9a5e29d703e3988b45d90356 | [
"MIT"
] | 1 | 2022-03-28T16:10:15.000Z | 2022-03-28T16:10:15.000Z | src/thespian/tweaks.py | mtttech/dndpersonae | c4fa129d1e940c9f9a5e29d703e3988b45d90356 | [
"MIT"
] | null | null | null | src/thespian/tweaks.py | mtttech/dndpersonae | c4fa129d1e940c9f9a5e29d703e3988b45d90356 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import logging
from attributes import get_ability_modifier
from sourcetree.utils import (
get_feats_list,
get_feat_perks,
get_feat_proficiencies,
get_feat_requirements,
)
from stdio import prompt
log = logging.getLogger("thespian.tweaks")
| 40.481949 | 101 | 0.514112 |
40d5ed5ea76d8603996be2780920650b434417e6 | 9,213 | py | Python | Utils/Matrix.py | valavanisleonidas/Machine_Learning_Toolkit | 4a66e1419189e279a82fa6a7ff7945153308842a | [
"MIT"
] | null | null | null | Utils/Matrix.py | valavanisleonidas/Machine_Learning_Toolkit | 4a66e1419189e279a82fa6a7ff7945153308842a | [
"MIT"
] | null | null | null | Utils/Matrix.py | valavanisleonidas/Machine_Learning_Toolkit | 4a66e1419189e279a82fa6a7ff7945153308842a | [
"MIT"
] | null | null | null | import os
import platform
import numpy
if __name__ == '__main__':
trainFolder = 'C:\Users\l.valavanis\Desktop\Clef2013\TrainSet'
testFolder = 'C:\Users\l.valavanis\Desktop\Clef2013\TestSet'
#
# trainFolder = 'C:\Users\l.valavanis\Desktop\Clef2013\SampleImages - Copy'
# testFolder = 'C:\Users\l.va... | 43.457547 | 151 | 0.64485 |
40d66ffe931947e9a30f4f5ac4f0646b982e924f | 7,906 | py | Python | networking_calico/plugins/ml2/drivers/calico/policy.py | manojcode/networking-calico | db709fb27b492d3be3c094fa43e8c696962369b7 | [
"Apache-2.0"
] | null | null | null | networking_calico/plugins/ml2/drivers/calico/policy.py | manojcode/networking-calico | db709fb27b492d3be3c094fa43e8c696962369b7 | [
"Apache-2.0"
] | null | null | null | networking_calico/plugins/ml2/drivers/calico/policy.py | manojcode/networking-calico | db709fb27b492d3be3c094fa43e8c696962369b7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2018 Tigera, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | 39.728643 | 79 | 0.611055 |
40d757b3788e8715de2cff8adf8b1027f7b43c6d | 4,359 | py | Python | 25/main.py | gosha20777/mipt-bioinfo-2021 | ed14975e9f597e7b2427bc589f12ac08d451c509 | [
"MIT"
] | null | null | null | 25/main.py | gosha20777/mipt-bioinfo-2021 | ed14975e9f597e7b2427bc589f12ac08d451c509 | [
"MIT"
] | null | null | null | 25/main.py | gosha20777/mipt-bioinfo-2021 | ed14975e9f597e7b2427bc589f12ac08d451c509 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
with open('input.txt') as f:
seq1 = f.readline().strip()
seq2 = f.readline().strip()
with open('BLOSUM62.txt') as f1:
lines = [line.strip().split() for line in f1.readlines()]
matrix = {(i[0], i[1]): int(i[2]) for i in lines}
penalty = 5
a... | 39.990826 | 115 | 0.532003 |
40d75b3cb34c1d537273d852cc304bd850526e28 | 10,039 | py | Python | utils/visualize_tree.py | moyiming1/Retrosynthesis-pathway-ranking | 380f31189d09395d0de911759b8bcea436b559b2 | [
"MIT"
] | 10 | 2021-02-24T02:31:40.000Z | 2022-02-17T07:58:46.000Z | utils/visualize_tree.py | wangxr0526/Retrosynthesis-pathway-ranking | 380f31189d09395d0de911759b8bcea436b559b2 | [
"MIT"
] | 1 | 2022-02-14T16:13:59.000Z | 2022-02-14T16:13:59.000Z | utils/visualize_tree.py | wangxr0526/Retrosynthesis-pathway-ranking | 380f31189d09395d0de911759b8bcea436b559b2 | [
"MIT"
] | 3 | 2021-01-05T11:43:03.000Z | 2022-02-17T08:52:27.000Z | import os, sys
project_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(project_path)
import pickle
if __name__ == "__main__":
file_name = project_path + '/data/pathway_train_example.pkl'
with open(file_name, 'rb') as f:
data = pickle.load(f)
trees_to_plot = [d[... | 47.131455 | 123 | 0.574858 |
40d7ebe962811bafc69c16d6ae16e6cb4f35d53d | 3,955 | py | Python | python-is-easy/assignments/snowman/main.py | eDyablo/pirple | 08910c7574203f685a0971cba61a54166d805a1c | [
"MIT"
] | null | null | null | python-is-easy/assignments/snowman/main.py | eDyablo/pirple | 08910c7574203f685a0971cba61a54166d805a1c | [
"MIT"
] | null | null | null | python-is-easy/assignments/snowman/main.py | eDyablo/pirple | 08910c7574203f685a0971cba61a54166d805a1c | [
"MIT"
] | null | null | null | '''
Homework assignment for the 'Python is easy' course by Pirple.
Written be Ed Yablonsky.
Snowman(Hangman) game.
'''
from os import (
name as os_name,
system as system_call,
)
from os.path import (
abspath,
dirname,
join as join_path,
)
'''
Screen displays game output
'''
'''
Input represent... | 23.682635 | 81 | 0.551707 |
40d82abf6ddc30ada008f9205fa131b2828d8ba2 | 2,569 | py | Python | src/GenericTsvReader.py | getzlab/ABSOLUTE | cd443ec9370df98778d98227bb9a11c3e24c00cb | [
"BSD-3-Clause"
] | null | null | null | src/GenericTsvReader.py | getzlab/ABSOLUTE | cd443ec9370df98778d98227bb9a11c3e24c00cb | [
"BSD-3-Clause"
] | null | null | null | src/GenericTsvReader.py | getzlab/ABSOLUTE | cd443ec9370df98778d98227bb9a11c3e24c00cb | [
"BSD-3-Clause"
] | null | null | null | """
Created on Jul 5, 2012
@author: lichtens
"""
import csv
import os
| 33.802632 | 124 | 0.652005 |
40db83a1176151c4bc0bdff2477e10a8b1ab20a4 | 12,376 | py | Python | examples/applications/plot_impact_imbalanced_classes.py | cdchushig/imbalanced-learn | f02e7c7c2c021c85823cace405ca2c58ad4ff147 | [
"MIT"
] | 5,678 | 2016-07-19T10:22:35.000Z | 2022-03-31T22:46:41.000Z | examples/applications/plot_impact_imbalanced_classes.py | cdchushig/imbalanced-learn | f02e7c7c2c021c85823cace405ca2c58ad4ff147 | [
"MIT"
] | 759 | 2016-07-19T05:41:59.000Z | 2022-03-28T11:00:10.000Z | examples/applications/plot_impact_imbalanced_classes.py | cdchushig/imbalanced-learn | f02e7c7c2c021c85823cace405ca2c58ad4ff147 | [
"MIT"
] | 1,165 | 2016-07-19T22:56:42.000Z | 2022-03-31T22:46:45.000Z | """
==========================================================
Fitting model on imbalanced datasets and how to fight bias
==========================================================
This example illustrates the problem induced by learning on datasets having
imbalanced classes. Subsequently, we compare different approac... | 33.906849 | 87 | 0.747253 |
40dc4792e5546b69652c162537bffd53c76ae2d8 | 3,949 | py | Python | python/fix-page-breaks.py | utcompling/GeoAnnotate | a864106d9595e8426339f1d34432a54e04cee66a | [
"Apache-2.0"
] | 9 | 2015-11-19T06:03:08.000Z | 2021-02-16T19:14:42.000Z | python/fix-page-breaks.py | utcompling/GeoAnnotate | a864106d9595e8426339f1d34432a54e04cee66a | [
"Apache-2.0"
] | null | null | null | python/fix-page-breaks.py | utcompling/GeoAnnotate | a864106d9595e8426339f1d34432a54e04cee66a | [
"Apache-2.0"
] | 1 | 2018-10-09T23:12:34.000Z | 2018-10-09T23:12:34.000Z | #!/usr/bin/python
import argparse
import re
parser = argparse.ArgumentParser(description='Fix page breaks in War of The Rebellion text')
parser.add_argument('files', nargs='*',
help='Files to process')
args = parser.parse_args()
for file in args.files:
outfile = open(file + ".joined-pagebreak", ... | 36.564815 | 171 | 0.52469 |
40dd78243c51556a2be73588a2b4ac205cbb6f28 | 570 | py | Python | 2021/02/part2.py | FranciscoAT/advent-of-code | 69f20696e4c59ff6dfa010b22dd3593ea3d12208 | [
"MIT"
] | null | null | null | 2021/02/part2.py | FranciscoAT/advent-of-code | 69f20696e4c59ff6dfa010b22dd3593ea3d12208 | [
"MIT"
] | null | null | null | 2021/02/part2.py | FranciscoAT/advent-of-code | 69f20696e4c59ff6dfa010b22dd3593ea3d12208 | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
main("test")
main("puzzle")
| 23.75 | 43 | 0.436842 |
40dd84dd99f72ec266d9a45433b99fd282b94576 | 6,068 | py | Python | tf_seal/python/tensor.py | karlhigley/tf-seal | 74a38e3ff71d29e862881d56bca84aaa23efd710 | [
"Apache-2.0"
] | 94 | 2019-08-06T16:03:27.000Z | 2022-03-24T18:19:07.000Z | tf_seal/python/tensor.py | karlhigley/tf-seal | 74a38e3ff71d29e862881d56bca84aaa23efd710 | [
"Apache-2.0"
] | 23 | 2019-08-19T16:22:12.000Z | 2022-03-31T15:09:58.000Z | tf_seal/python/tensor.py | karlhigley/tf-seal | 74a38e3ff71d29e862881d56bca84aaa23efd710 | [
"Apache-2.0"
] | 17 | 2019-08-08T22:45:46.000Z | 2022-03-22T08:05:16.000Z | import numpy as np
import tensorflow as tf
import tf_seal.python.ops.seal_ops as ops
from tensorflow.python.keras.utils import tf_utils
from tensorflow.python.client import session as tf_session
from tensorflow.python.framework import ops as tf_ops
# def __sub__(self, other):
# other = convert_to_tensor(other... | 30.492462 | 102 | 0.742914 |
40de3e3ad949140a43a1a19f490e5fc039aedb2f | 25,087 | py | Python | program/admin.py | Dumbaz/autoradio-pv | 8aae293e58b2e79a05956c535bb109f74edc89c3 | [
"BSD-3-Clause"
] | null | null | null | program/admin.py | Dumbaz/autoradio-pv | 8aae293e58b2e79a05956c535bb109f74edc89c3 | [
"BSD-3-Clause"
] | null | null | null | program/admin.py | Dumbaz/autoradio-pv | 8aae293e58b2e79a05956c535bb109f74edc89c3 | [
"BSD-3-Clause"
] | null | null | null | from django.core.exceptions import ObjectDoesNotExist
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from django.shortcuts import render
from django.conf import settings
from .models import Language, Type, MusicFocus, Category, Topic, RTRCategory, Host, Note, RRule, Schedule, ... | 42.305228 | 173 | 0.585363 |
40de4834e40d2116182061d040e90ff70baa0986 | 2,177 | py | Python | test/logic/test_block_features.py | Sam-prog-sudo/Sam.github.io | 75f41ec26b4b3aafcb117e467e38fca1e69f5c87 | [
"MIT"
] | 3 | 2020-07-06T21:03:03.000Z | 2020-07-18T07:02:59.000Z | test/logic/test_block_features.py | Sam-prog-sudo/Sam.github.io | 75f41ec26b4b3aafcb117e467e38fca1e69f5c87 | [
"MIT"
] | null | null | null | test/logic/test_block_features.py | Sam-prog-sudo/Sam.github.io | 75f41ec26b4b3aafcb117e467e38fca1e69f5c87 | [
"MIT"
] | 4 | 2020-07-17T11:16:05.000Z | 2020-10-01T08:57:21.000Z | import hashlib
import json
from time import time
import pytest
from app.chaine.blockchain import Blockchain
def test_block_creation(a_valid_block, proof=123, previous_hash='abc'):
bc = Blockchain()
block_a_tester = bc.new_block(proof, previous_hash)
assert block_a_tester['index'] == a_valid_block[... | 23.408602 | 76 | 0.622876 |
40e031fd64128f14855fedd41208af0c66f89410 | 886 | py | Python | urls.py | cartologic/cartoview_graduated_styler | f3dc6b0d48dc95bdd7e68d148a5182a4e259dbf3 | [
"BSD-2-Clause"
] | null | null | null | urls.py | cartologic/cartoview_graduated_styler | f3dc6b0d48dc95bdd7e68d148a5182a4e259dbf3 | [
"BSD-2-Clause"
] | 16 | 2017-08-06T09:49:01.000Z | 2021-09-01T08:40:58.000Z | urls.py | cartologic/cartoview_graduated_styler | f3dc6b0d48dc95bdd7e68d148a5182a4e259dbf3 | [
"BSD-2-Clause"
] | null | null | null | # from django.conf.urls import patterns, url, include
# from django.views.generic import TemplateView
# from . import views, APP_NAME
#
# urlpatterns = patterns('',
# url(r'^$', views.index, name='%s.index' % APP_NAME),
# )
from django.urls import path, re_path, include
from . import views, APP_NAME
from .api impo... | 34.076923 | 110 | 0.705418 |
40e07b3163c543bc0b7215aac128eae673625978 | 1,721 | py | Python | core/rest/wscdn.py | cybert79/Osmedeus | 684d853144e2f85343c3367440120142455f296b | [
"MIT"
] | 1 | 2019-06-13T09:14:11.000Z | 2019-06-13T09:14:11.000Z | core/rest/wscdn.py | KbaHaxor/Osmedeus | 0894d52ad5949e9151b0fd05d9746ecafc8057b5 | [
"MIT"
] | null | null | null | core/rest/wscdn.py | KbaHaxor/Osmedeus | 0894d52ad5949e9151b0fd05d9746ecafc8057b5 | [
"MIT"
] | 2 | 2020-01-09T17:48:23.000Z | 2020-01-09T17:48:24.000Z | import os
import glob
import json
from pathlib import Path
from flask_restful import Api, Resource, reqparse
from flask_jwt_extended import jwt_required
from flask import Flask, request, escape, make_response, send_from_directory
import utils
# incase you can't install ansi2html it's won't break the api
try:
from ... | 30.732143 | 91 | 0.654852 |
40e08ff17bc877d0938f412ad22362a39a6d45db | 13,534 | py | Python | custom_components/hahm/services.py | noxhirsch/custom_homematic | afc03c813f44d342f75477e6fcce85fc78515258 | [
"MIT"
] | null | null | null | custom_components/hahm/services.py | noxhirsch/custom_homematic | afc03c813f44d342f75477e6fcce85fc78515258 | [
"MIT"
] | null | null | null | custom_components/hahm/services.py | noxhirsch/custom_homematic | afc03c813f44d342f75477e6fcce85fc78515258 | [
"MIT"
] | null | null | null | """Module with hahomematic services."""
from __future__ import annotations
from datetime import datetime
import logging
from hahomematic.const import (
ATTR_ADDRESS,
ATTR_INTERFACE_ID,
ATTR_NAME,
ATTR_PARAMETER,
ATTR_VALUE,
HmPlatform,
)
from hahomematic.device import HmDevice
from hahomematic... | 32.455635 | 85 | 0.691813 |
40e0c14f05e9b921525413c2427c2d6661b5419f | 865 | py | Python | app/migrations/0001_initial.py | MariaAlice00/ifpi-tds-projeto-integrador | e2ce73279c9bf31de0b33b105723ae7a24deac54 | [
"MIT"
] | null | null | null | app/migrations/0001_initial.py | MariaAlice00/ifpi-tds-projeto-integrador | e2ce73279c9bf31de0b33b105723ae7a24deac54 | [
"MIT"
] | null | null | null | app/migrations/0001_initial.py | MariaAlice00/ifpi-tds-projeto-integrador | e2ce73279c9bf31de0b33b105723ae7a24deac54 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-06-03 00:35
from django.db import migrations, models
| 30.892857 | 117 | 0.564162 |
40e13f8b874a94920da4e07d42899e93081c3e2f | 4,284 | py | Python | graalpython/com.oracle.graal.python.parser.antlr/postprocess.py | transposit/graalpython | adadf5f211cc67a14bb3aca7c61219513d036b13 | [
"UPL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1 | 2019-05-28T13:04:32.000Z | 2019-05-28T13:04:32.000Z | graalpython/com.oracle.graal.python.parser.antlr/postprocess.py | transposit/graalpython | adadf5f211cc67a14bb3aca7c61219513d036b13 | [
"UPL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | graalpython/com.oracle.graal.python.parser.antlr/postprocess.py | transposit/graalpython | adadf5f211cc67a14bb3aca7c61219513d036b13 | [
"UPL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | # Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# The Universal Permissive License (UPL), Version 1.0
#
# Subject to the condition set forth below, permission is hereby granted to any
# person obtaining a copy of this softw... | 37.911504 | 88 | 0.722222 |
40e2d06c8105c95bcdc7c6b4d3475a48fa240fbc | 6,284 | py | Python | scripts/ape_protocol_deploy.py | coordinape/coordinape-protocol | 8c90de1b1fbc19bab05e1c5848813d022492753a | [
"MIT"
] | 22 | 2021-10-17T23:19:38.000Z | 2022-03-24T05:13:56.000Z | scripts/ape_protocol_deploy.py | coordinape/coordinape-protocol | 8c90de1b1fbc19bab05e1c5848813d022492753a | [
"MIT"
] | 12 | 2021-09-29T16:27:03.000Z | 2022-03-30T17:54:08.000Z | scripts/ape_protocol_deploy.py | coordinape/coordinape-protocol | 8c90de1b1fbc19bab05e1c5848813d022492753a | [
"MIT"
] | 4 | 2021-10-14T19:08:36.000Z | 2022-03-29T16:42:21.000Z | from brownie import accounts, Wei, chain, ApeToken, ApeVaultFactory, ApeDistributor, ApeRegistry, ApeRouter, FeeRegistry, MockRegistry, MockVaultFactory, MockToken, MockVault
| 56.107143 | 174 | 0.732336 |
40e6bbe29a59bd4a98298179d233b2bfddb4c1e0 | 971 | py | Python | groups/views.py | MAKENTNU/web | 7a5b512bf4c087d1561cdb623d7df4b3d04811a2 | [
"MIT"
] | 10 | 2017-11-25T01:47:20.000Z | 2020-03-24T18:28:24.000Z | groups/views.py | MAKENTNU/web | 7a5b512bf4c087d1561cdb623d7df4b3d04811a2 | [
"MIT"
] | 319 | 2017-11-16T09:56:03.000Z | 2022-03-28T00:24:37.000Z | groups/views.py | MAKENTNU/web | 7a5b512bf4c087d1561cdb623d7df4b3d04811a2 | [
"MIT"
] | 6 | 2017-11-12T14:04:08.000Z | 2021-03-10T09:41:18.000Z | from django.contrib.auth.mixins import PermissionRequiredMixin
from django.urls import reverse_lazy
from django.views.generic import DetailView, ListView, UpdateView
from .models import Committee
| 30.34375 | 65 | 0.77137 |